![]() |
VR-Vantage API Documentation
|
An instance of an attribute group (and corresponding attribute values) More...

Public Member Functions | |
| DtSdcAttributeGroupObject (DtExerciseConn *exConn, unsigned id, DtSdcAttributeGroupTemplateObject *pTemplate, const DtSdc3DAttachPoint &attachment, const DtVector &enuOffset=DtVector::zero(), DtSdcColor color=DtSdcColor::DtSdcWhite, bool flashing=false) | |
| Construct the attribute group Draw Control Object. | |
| virtual | ~DtSdcAttributeGroupObject () |
| virtual DtSdcAttributeGroupTemplateObject * | attributeGroupTemplate () const |
| attribute group template accessor | |
| virtual const DtSdc3DAttachPoint & | attachment () const |
| attachment accessor | |
| virtual void | setAttachment (const DtSdc3DAttachPoint &attachment) |
| attachment mutator | |
| virtual const DtVector & | offset () const |
| offset accessor | |
| virtual void | setOffset (const DtVector &enuOffset) |
| enuOffset mutator | |
| virtual const DtSdcColor & | color () const |
| color accessor | |
| virtual void | setColor (const DtSdcColor &color) |
| color mutator | |
| virtual bool | flashing () const |
| flashing accessor | |
| virtual void | setFlashing (bool flashing) |
| flashing mutator | |
| virtual DtString | bmpAttributeValue (const DtString &attName) const |
| bmp attribute value accessor | |
| virtual void | setBmpAttributeValue (const DtString &attName, const DtString &filename) |
| bmp attribute value mutator | |
| virtual double | numericAttributeValue (const DtString &attName) const |
| numeric attribute value accessor | |
| virtual void | setNumericAttributeValue (const DtString &attName, double xVal) |
| numeric attribute value mutator | |
| virtual double | valueBarAttributeValue (const DtString &attName) const |
| value bar attribute value accessor | |
| virtual void | setValueBarAttributeValue (const DtString &attName, double xVal) |
| value bar attribute value mutator | |
| virtual double | graphAttributeValueX (const DtString &attName) const |
| graph attribute x-value accessor | |
| virtual void | setGraphAttributeValueX (const DtString &attName, double xVal) |
| graph attribute x-value mutator | |
| virtual double | graphAttributeValueY (const DtString &attName) const |
| graph attribute y-value accessor | |
| virtual void | setGraphAttributeValueY (const DtString &attName, double yVal) |
| graph attribute y-value mutator | |
| virtual DtSdcAttributeValueMap & | attributeValueMap () |
| atribute value map accessor | |
| virtual void | setRemoteGraphicSet (const std::string &setName) |
| virtual void | update () |
| update the internal attribute group pdu | |
Public Member Functions inherited from DtSdcObject | |
| DtSdcObject (DtExerciseConn *exConn, unsigned id, const DtString &objName) | |
| Parameterized constructor. | |
| virtual | ~DtSdcObject () |
| Virtual destructor. | |
| virtual unsigned | id () const |
| id accessor | |
| virtual void | setId (unsigned id) |
| id mutator | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| virtual void | setVisible (bool yesNo) |
| virtual bool | visible () const |
Protected Member Functions | |
| virtual void | createAttributes () |
| virtual void | destroyAttributes () |
| virtual void | copyAttributes (const DtSdcAttributeValueMap &valueMap) |
Protected Attributes | |
| DtEnvironmentalPointRecord | myPointRecord |
| Dt3DGraphicalObjectStateRecord | myGraphicObjectStateRecord |
| DtAttributeStateRecord | myAttributeStateRecord |
| DtSdc3DAttachPoint | myAttachment |
| DtVector | myEnuOffset |
| DtSdcColor | myColor |
| bool | myFlashing |
| DtSdcAttributeGroupTemplateObject * | myAttributeGroupTemplate |
| DtSdcAttributeValueMap | myValueMap |
Protected Attributes inherited from DtSdcObject | |
| unsigned | myId |
| DtEnvironmentProcessPublisher | myPublisher |
| bool | myVisible |
| DtSdcColor | myEmptyColor |
Private Member Functions | |
| DtSdcAttributeGroupObject () | |
| Default constructor. | |
| DtSdcAttributeGroupObject (const DtSdcAttributeGroupObject &orig) | |
| Copy constructor. | |
| DtSdcAttributeGroupObject & | operator= (const DtSdcAttributeGroupObject &rhs) |
| Assignment operator. | |
An instance of an attribute group (and corresponding attribute values)
DtSdcAttributeGroupObject represents an attribute group that can be positioned and displayed in the 3D scene. A color can be specified; and the group can flash, if desired.
| DtSdcAttributeGroupObject::DtSdcAttributeGroupObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| DtSdcAttributeGroupTemplateObject * | pTemplate, | ||
| const DtSdc3DAttachPoint & | attachment, | ||
| const DtVector & | enuOffset = DtVector::zero(), |
||
| DtSdcColor | color = DtSdcColor::DtSdcWhite, |
||
| bool | flashing = false |
||
| ) |
Construct the attribute group Draw Control Object.
| id | Passed to DtSdcObject base (see) |
| template | A pointer to the attribute group template that this group is based on |
| attachment | DtSdc3DAttachPoint indicating how the group object is positioned in 3D |
| enuOffset | a 3D vector indicating an east/north/up offset (in meters) from the base attachment |
| color | The color of the group object |
| flashing | A boolean parameter indicating whether or not the group object should be flashing |
References createAttributes(), Dt3DGraphicalObjectCategoryAttributeGroup, Dt3DGraphicalObjectKind, DtSdcObject::id(), DtSdcObject::myPublisher, setAttachment(), setColor(), setFlashing(), and setOffset().
|
virtual |
References destroyAttributes().
|
private |
Default constructor.
Private and not implemented - you must supply an id, template, and attachment parameters to construct the attribute group
|
private |
Copy constructor.
Private and not implemented - not copyable.
|
private |
Assignment operator.
Private and not implemented - not copyable.
|
virtual |
attribute group template accessor
Get the attribute group template that this group is using
References myAttributeGroupTemplate.
|
virtual |
attachment accessor
Get the attribute group's attachment information
References myAttachment.
Referenced by setAttachment().
|
virtual |
attachment mutator
Set the attribute group's attachment information
| attachment |
References DtSdc3DAttachPoint::attachedId(), attachment(), DtSdc3DAttachPoint::attachmentType(), DtSdc3DAttachPoint::attachmentTypeScene, DtSdc3DAttachPoint::isAttached(), DtSdc3DAttachPoint::location(), myAttachment, myGraphicObjectStateRecord, myPointRecord, DtSdc3DAttachPoint::relativePosition(), Dt3DGraphicalObjectStateRecord::setAttachment(), and Dt3DGraphicalObjectStateRecord::setNumberOfAttachments().
Referenced by DtSdcAttributeGroupObject().
|
virtual |
offset accessor
Get the attribute group's east/north/up offset from the attach point
References myEnuOffset.
Referenced by setOffset().
|
virtual |
enuOffset mutator
Set the attribute group's east/north/up offset from the attach point
| enuOffset | [X, Y, Z] |
References myEnuOffset, myGraphicObjectStateRecord, offset(), and Dt3DGraphicalObjectStateRecord::setOffset().
Referenced by DtSdcAttributeGroupObject().
|
virtual |
color accessor
Get the color assigned to the attribute group
Reimplemented from DtSdcObject.
References myColor.
Referenced by setColor().
|
virtual |
color mutator
Set the color to use when drawing the attribute group
| color | The DtSdcColor to use |
Reimplemented from DtSdcObject.
References DtSdcColor::alpha(), DtSdcColor::blue(), color(), DtSdcColor::green(), myColor, myGraphicObjectStateRecord, DtSdcColor::red(), and Dt3DGraphicalObjectStateRecord::setColor().
Referenced by DtSdcAttributeGroupObject().
|
virtual |
flashing accessor
Get the boolean that indicates whether or not the attribute group should flash
Reimplemented from DtSdcObject.
References myFlashing.
Referenced by setFlashing().
|
virtual |
flashing mutator
Set the boolean that indicates whether or not the attribute group should flash
| flashing | true or false |
Reimplemented from DtSdcObject.
References flashing(), myFlashing, myGraphicObjectStateRecord, and Dt3DGraphicalObjectStateRecord::setFlashing().
Referenced by DtSdcAttributeGroupObject().
|
virtual |
bmp attribute value accessor
Get the filename of the bitmap to use for the specified attribute in this attribute group
References myValueMap, and DtSdcAttributeValue::textValue().
|
virtual |
bmp attribute value mutator
Set the filename of the bitmap to display for the specified attribute in this attribute group. If the attribute is not a bmp attribute, this call has no effect
| attId | Id of the attribute template that the attribute corresponds to |
| filename | Filename of the bitmap to display |
References myValueMap, DtSdcAttributeValue::setDirty(), and DtSdcAttributeValue::setTextValue().
|
virtual |
numeric attribute value accessor
Get the numeric value used for the specified attribute in this attribute group
References myValueMap, and DtSdcAttributeValue::xValue().
|
virtual |
numeric attribute value mutator
Set the numeric value to display for the specified attribute in this attribute group. If the attribute is not a numeric attribute, this call has no effect
| attId | Id of the attribute template that the attribute corresponds to |
| xVal | The numeric value to display |
References myValueMap, DtSdcAttributeValue::setDirty(), and DtSdcAttributeValue::setXValue().
|
virtual |
value bar attribute value accessor
Get the value bar value used for the specified attribute in this attribute group
References myValueMap, and DtSdcAttributeValue::xValue().
|
virtual |
value bar attribute value mutator
Set the value bar value to display for the specified attribute in this attribute group. The value specified will be used to determine how much of the value bar displayed as part of the attribute for this attribute group will be filled in. Note that this is actually just a pseudonym for setNumericAttributeValue(), as each attribute type uses the same internal value field
| attId | Id of the attribute template that the attribute corresponds to |
| xVal | The numeric value that determines the value bar appearance |
References myValueMap, DtSdcAttributeValue::setDirty(), and DtSdcAttributeValue::setXValue().
|
virtual |
graph attribute x-value accessor
Get the last x-coordinate given for the specified attribute in this attribute group. A graph attribute actually displays a line graph using the last 10 x and y values given; only the last of each is available from the sending side of the API.
References myValueMap, and DtSdcAttributeValue::xValue().
|
virtual |
graph attribute x-value mutator
Set the x-coordinate on the next point displayed in the specified attribute in this attribute group. A graph attribute actually displays a line graph using the last 10 x and y values given. Note that this is actually just a pseudonym for setNumericAttributeValue(), as each attribute type uses the same internal value field
| attId | Id of the attribute template that the attribute corresponds to |
| xVal | The x-coordinate of the next x,y point in the graph |
References myValueMap, DtSdcAttributeValue::setDirty(), and DtSdcAttributeValue::setXValue().
|
virtual |
graph attribute y-value accessor
Get the last y-coordinate given for the specified attribute in this attribute group. A graph attribute actually displays a line graph using the last 10 x and y values given; only the last of each is available from the sending side of the API.
References myValueMap, and DtSdcAttributeValue::yValue().
|
virtual |
graph attribute y-value mutator
Set the y-coordinate on the next point displayed in the specified attribute in this attribute group. A graph attribute actually displays a line graph using the last 10 x and y values given.
| attId | Id of the attribute template that the attribute corresponds to |
| yVal | The y-coordinate of the next x,y point in the graph |
References myValueMap, DtSdcAttributeValue::setDirty(), and DtSdcAttributeValue::setYValue().
|
virtual |
atribute value map accessor
Get the attrbute value map. This is an std::map, indexed by attribute template id and containing DtSdcAttributeValue*s; so you can access the attribute value directly (and the DtSdcAttributeUpdatePdu used to update it) directly (but this is not normally needed if you use the specific attribute value mutators provided.
References myValueMap.
|
virtual |
Reimplemented from DtSdcObject.
References myGraphicObjectStateRecord, Dt3DGraphicalObjectStateRecord::setNumberOfParentOverlays(), and Dt3DGraphicalObjectStateRecord::setParentOverlay().
|
virtual |
update the internal attribute group pdu
Make sure the internal pdu reflects the actual state of the attribute group object's members. This is necessary because some members can be modified directly (which make the interface easier to use). DtStealthRemoteDrawer::update() calls this, so the user doesn't need to; but if the user is accessing the pdu directly (via the pdu() accessor) this should be called before using the pdu.
Implements DtSdcObject.
References myAttributeStateRecord, myGraphicObjectStateRecord, myPointRecord, DtSdcObject::myPublisher, myValueMap, DtAttributeStateRecord::setNumberOfValueUpdates(), and DtAttributeStateRecord::setValueUpdate().
|
protectedvirtual |
References DtSdcAttributeGroupTemplateObject::attributeTemplates(), DtSdcAttributeTemplateObject::attributeType(), DtSdcAttributeValue::attributeValueUpdate(), DtSdcAttributeTemplateObject::DtSdcAttributeTypeNoValue, DtSdcObject::globalId(), myAttributeGroupTemplate, myAttributeStateRecord, myValueMap, DtSdcAttributeTemplateObject::name(), DtSdcAttributeValue::setDirty(), DtAttributeStateRecord::setGroupId(), and DtAttributeValueUpdate::setTemplateId().
Referenced by DtSdcAttributeGroupObject().
|
protectedvirtual |
References myValueMap.
Referenced by copyAttributes(), and ~DtSdcAttributeGroupObject().
|
protectedvirtual |
References destroyAttributes(), and myValueMap.
|
protected |
Referenced by setAttachment(), and update().
|
protected |
Referenced by setAttachment(), setColor(), setFlashing(), setOffset(), setRemoteGraphicSet(), and update().
|
protected |
Referenced by createAttributes(), and update().
|
protected |
Referenced by attachment(), and setAttachment().
|
protected |
Referenced by offset(), and setOffset().
|
protected |
Referenced by color(), and setColor().
|
protected |
Referenced by flashing(), and setFlashing().
|
protected |
Referenced by attributeGroupTemplate(), and createAttributes().
|
protected |
Referenced by attributeValueMap(), bmpAttributeValue(), copyAttributes(), createAttributes(), destroyAttributes(), graphAttributeValueX(), graphAttributeValueY(), numericAttributeValue(), setBmpAttributeValue(), setGraphAttributeValueX(), setGraphAttributeValueY(), setNumericAttributeValue(), setValueBarAttributeValue(), update(), and valueBarAttributeValue().