VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes | Private Member Functions
vrvControlToolkit::DtAttributeGroupTemplateObject Class Reference

An Attribute Group Template. More...

Inheritance diagram for vrvControlToolkit::DtAttributeGroupTemplateObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtAttributeGroupTemplateObject (DtExerciseConn *exConn, unsigned id, const DtString &name)
 Construct the Attribute Group Template.
virtual ~DtAttributeGroupTemplateObject ()
virtual const DtStringname () const
 name accessor
virtual DtAttributeTemplateObjectcreateAttributeTemplate (const DtString &name, DtAttributeTemplateObject::DtVdcAttributeType attType)
 Create an Attribute Template.
virtual DtAttributeTemplateObjectcreateAttributeTemplate (const DtString &name, double minRange, double maxRange)
 Create a Bar Value Attribute Template.
virtual
DtVdcAttributeTemplateList
attributeTemplates ()
 Attribute template list accessor.
virtual DtAttributeTemplateObjectattributeTemplate (const DtString &name)
 Attribute Template Accessor.
virtual void update ()
 update the internal pdu

Protected Attributes

DtString myName
DtVdcAttributeTemplateMap myAttributeTemplateMap
DtVdcAttributeTemplateList myAttributeTemplateList

Private Member Functions

 DtAttributeGroupTemplateObject ()
 Default constructor.
 DtAttributeGroupTemplateObject (const DtAttributeGroupTemplateObject &orig)
 Copy constructor.
DtAttributeGroupTemplateObjectoperator= (const DtAttributeGroupTemplateObject &rhs)
 Assignment operator.

Detailed Description

An Attribute Group Template.

DtAttributeGroupTemplateObject represents a template that defines a type of Attribute Group: Specifically the name that will be used for all attribute groups based on the template and the list of associated attribute templates that make up a group instance.


Constructor & Destructor Documentation

vrvControlToolkit::DtAttributeGroupTemplateObject::DtAttributeGroupTemplateObject ( DtExerciseConn *  exConn,
unsigned  id,
const DtString name 
)

Construct the Attribute Group Template.

Parameters:
idPassed to DtDrawControlObject base (see)
nameThe name of the attribute group template (this is displayed at the top of each attribute group instance)

Default constructor.

Private and not implemented - you must supply id and name parameters to construct the attribute group template

Copy constructor.

Private and not implemented - not copyable.


Member Function Documentation

DtAttributeGroupTemplateObject& vrvControlToolkit::DtAttributeGroupTemplateObject::operator= ( const DtAttributeGroupTemplateObject rhs) [private]

Assignment operator.

Private and not implemented - not copyable.

name accessor

Get the attribute group template's name

Returns:
DtString name

Create an Attribute Template.

Parameters:
idPassed to DtDrawControlObject base (see)
nameThe name of the attribute template (this is displayed on the left-hand side of the attribute when displaying the attribute group instance)
typeThe type of attribute this template represents. This method should NOT be used to create ValueBar attribute templates; use the alternate method that takes min and max range values instead.
virtual DtAttributeTemplateObject* vrvControlToolkit::DtAttributeGroupTemplateObject::createAttributeTemplate ( const DtString name,
double  minRange,
double  maxRange 
) [virtual]

Create a Bar Value Attribute Template.

Parameters:
idPassed to DtDrawControlObject base (see)
nameThe name of the attribute template (this is displayed on the left-hand side of the attribute when displaying the attribute group instance)
minRangeThe minimum value for the range this attribute represents
maxRangeThe maximum value for the range this attribute represents

Attribute template list accessor.

Get the list of attribute templates created for this template

Returns:
List of attribute templates

Attribute Template Accessor.

Find the attribute template with the specified it

Parameters:
attributetemplate id
Returns:
pointer to attribute template

update the internal pdu

This function is a no-op for the attribute group template, as all fields of the pdu are set at construction time and can't be changed.

Implements vrvControlToolkit::DtDrawControlObject.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)