DtUpdateRepositoryOutputPortGroup is a data port group of a data consumer that contains methods and port to set input to be received by a DtUpdateRepositoryInputPortGroup. This group will create the ports necessary to update a VRF state repository. Note that all information MUST be supplied in local coordinates.
- Related Examples
-
| DtUpdateRepositoryOutputPortGroup::DtUpdateRepositoryOutputPortGroup |
( |
const DtString & |
name, |
|
|
DtLocalObject * |
owner |
|
) |
| |
Constructor. Creates and adds all ports.
| virtual DtUpdateRepositoryOutputPortGroup::~DtUpdateRepositoryOutputPortGroup |
( |
| ) |
|
|
overridevirtual |
| virtual void DtUpdateRepositoryOutputPortGroup::setEmbarkedOn |
( |
const DtSimObject * |
| ) |
|
|
virtual |
Sets myEmbarkedOnEntity (the entity that this entity is embarked on) and sets the boolean port myParentRelativePort (if the object is null, then the port is set to false). The parent-relative port indicates whether the location and orientation are relative to the parent (embarked-on) entity. This lets the updateRepositoryActuator know how to interpret the location and orientation.
| const DtSimObject* DtUpdateRepositoryOutputPortGroup::embarkedOn |
( |
| ) |
const |
| virtual void DtUpdateRepositoryOutputPortGroup::setParentRelative |
( |
bool |
| ) |
|
|
virtual |
Sets/tests a flag in the port group (not on port). If the flag is true, values on the location and orientation ports are taken to be relative to the parent.
| virtual bool DtUpdateRepositoryOutputPortGroup::parentRelative |
( |
| ) |
const |
|
virtual |
| virtual void DtUpdateRepositoryOutputPortGroup::setLocation |
( |
const DtVector & |
, |
|
|
bool |
debug = false |
|
) |
| |
|
virtual |
Position accessors. If myParentRelative is false, and myEmbarkedOnEntity is not null, then the input location is assumed to be local coordinates; it is transformed to parent-relative coordinates before setting the port.
| virtual void DtUpdateRepositoryOutputPortGroup::setAcceleration |
( |
const DtVector & |
| ) |
|
|
virtual |
!}
Acceleration accessors.
| virtual void DtUpdateRepositoryOutputPortGroup::setVelocity |
( |
const DtVector & |
| ) |
|
|
virtual |
| virtual void DtUpdateRepositoryOutputPortGroup::setOrientation |
( |
const DtTaitBryan & |
| ) |
|
|
virtual |
!}
Orientation accessors. If myParentRelative is true, and myEmbarkedOnEntity is not null, then the input orientation is assumed to be local coordinates; it is transformed to parent-relative coordinates before setting the port.
| virtual void DtUpdateRepositoryOutputPortGroup::setRotationalVelocity |
( |
const DtVector & |
| ) |
|
|
virtual |
!}
Rotational Velocity accessors.
Output Port Name: location
Output Port Description: Local location to set into VRF state repository
Output Port Range:
Output Port Default Value: 0
Output Group Parent:
Output Port Name: acceleration
Output Port Description: Local acceleration to set into VRF state repository
Output Port Range:
Output Port Default Value: 0
Output Group Parent:
Output Port Name: velocity
Output Port Description: Local velocity to set into VRF state repository
Output Port Range:
Output Port Default Value: 0
Output Group Parent:
Output Port Name: rotational-velocity
Output Port Description: Local rotational location to set into VRF state repository
Output Port Range:
Output Port Default Value: 0
Output Group Parent:
Output Port Name: orientation
Output Port Description: Local orientation to set into VRF state repository
Output Port Range:
Output Port Default Value: 0
Output Group Parent:
Output Port Name: parent-relative
Output Port Description: Boolean port, that, if true, will mean that information in
port group is relative to some parent
Output Port Range:
Output Port Default Value: false
Output Group Parent:
Owner of this port group (set in constructor)
| bool DtUpdateRepositoryOutputPortGroup::myParentRelative |
|
protected |
If true, and myEmbarkedOnEntity is not null, take the arguments passed to setLocation and setOrientation and treat as local coordinates; transform to parent-relative coordinates before setting ports. This is useful because the vrfKinematicState does not have a concept of relativePosition, similar to relativeVelocity.
| const DtSimObject* DtUpdateRepositoryOutputPortGroup::myEmbarkedOnEntity |
|
protected |
The parent object of the entity.
The documentation for this class was generated from the following file: