![]() |
VR-Forces Developer's Guide
|
A definition of a visualizer. Visualizer definition are always members of a visualizer definition set, and are create and destroyed using the DtVisualizerDefinitionSet functions.
Public Types | |
| typedef std::map< std::string, DtVisualizerAttribute * > | SortedAttributeMap |
Public Member Functions | |
| bool | isEqual (const DtVisualizerDefinition &) const |
| const std::string & | schemaName () const |
| virtual void | setUuidString (const std::string &visDefId) |
| virtual const std::string & | uuidString () const |
| virtual void | setPreUuidIndex (int index) |
| virtual int | preUuidIndex () const |
| int | numberOfAttributes () const |
| int | numberOfLocalAttributes () const |
| const DtVisualizerAttribute * | findAttribute (int index) const |
| void | getAttributes (SortedAttributeMap &map) const |
| std::map< std::string, DtVisualizerAttribute * > | getAllAttributes () |
| DtVisualizerAttribute * | findAttribute (const std::string &name) |
| const DtVisualizerAttribute * | findAttribute (const std::string &name) const |
| const DtVisualizerAttribute * | findAttributeLowercase (const std::string &name) const |
| DtVisualizerAttribute * | findOrCreateLocalAttribute (const std::string &name) |
| void | setAttribute (const std::string &name, std::unique_ptr< DtVisualizerAttribute > attribute) |
| void | removeAttribute (const std::string &name, bool localOnly) |
| virtual void | clearAttributes () |
| bool | attributeLocal (const std::string &name) const |
| bool | attributeInherited (const std::string &name) const |
| bool | attributeInheritedLowercase (const std::string &name) const |
| bool | attributeOverridden (const std::string &name) const |
| bool | attributeOverriddenLowercase (const std::string &name) const |
| DtVisualizerDefinition * | findParent () |
| const DtVisualizerDefinition * | findParent () const |
| unsigned int | numberOfChildren () const |
| DtVisualizerDefinition * | findChild (unsigned int index) |
| const DtVisualizerDefinition * | findChild (unsigned int index) const |
| int | findChildIndex (const DtVisualizerDefinition *child) const |
Static Public Member Functions | |
| static DtVector | toVector (const std::string ¶m) |
| static DtTaitBryan | toTaitBryan (const std::string ¶m) |
Protected Types | |
| typedef std::map< std::string, DtVisualizerAttribute * > | AttributeMap |
| typedef std::vector < DtVisualizerDefinition * > | DefinitionList |
Protected Member Functions | |
| DtVisualizerDefinition (const std::string &schemaName) | |
| DtVisualizerDefinition (const std::string &schemaName, DtVisualizerDefinition *parent) | |
| DtVisualizerDefinition * | clone (DtVisualizerDefinition *parent) const |
| ~DtVisualizerDefinition () | |
| void | setParent (DtVisualizerDefinition *parent) |
| void | addChild (DtVisualizerDefinition *) |
| void | removeChild (DtVisualizerDefinition *) |
Protected Attributes | |
| DefinitionList | myChildren |
| std::string | myUuidString |
| DtVisualizerDefinition * | myParent |
| std::string | mySchemaName |
| AttributeMap | myAttributes |
| int | myPreUuidIndex |
Friends | |
| class | DtVisualizerDefinitionSet |
| typedef std::map<std::string, DtVisualizerAttribute*> makVrv::DtVisualizerDefinition::SortedAttributeMap |
A map of sorted visualizer attributes.
|
protected |
|
protected |
|
protected |
Create a top level definition.
|
protected |
Create an inherited definition.
|
protected |
Delete a definition.
| bool makVrv::DtVisualizerDefinition::isEqual | ( | const DtVisualizerDefinition & | ) | const |
check if two visualizer definitions are equal we don't comapre the parent or children
| const std::string& makVrv::DtVisualizerDefinition::schemaName | ( | ) | const |
Get the schema name the visualizer definition was created for.
|
virtual |
Set a UUID string that uniquely identifies a LOGICAL visual definition (which may be made up of multiple inherited ones). So the base definition gets a UUID, and subsequent visual definitions that add or override attributes to the visualizer definition use the same UUID.
|
virtual |
Get the UUID string for the visualizer definition (and all it's ancestors and descendants)
|
virtual |
Get the position in the list of visual definitions within it's visual definition set that this visualizer definition was in when it was converted to use UUIDs. This value may be helpful in converting customer leaf files not available during the initial conversion.
|
virtual |
Set the position in the list of visual definitions within it's visual definition set that this visualizer definition was in when it was converted to use UUIDs. If this visual definition was created after said conversion, this returns -1.
| int makVrv::DtVisualizerDefinition::numberOfAttributes | ( | ) | const |
Get the number of attributes. This includes inherited attributes.
| int makVrv::DtVisualizerDefinition::numberOfLocalAttributes | ( | ) | const |
Get the number of attributes. This does NOT include inherited attributes.
| const DtVisualizerAttribute* makVrv::DtVisualizerDefinition::findAttribute | ( | int | index | ) | const |
Find an attribute by index. This attribute may be from an inherited definition. This index may not be constant if attributes are added or removed. This attribute should not be deleted and may be invalid if any other call on a definition is made.
| void makVrv::DtVisualizerDefinition::getAttributes | ( | SortedAttributeMap & | map | ) | const |
Get all the attributes for this definition, filling them into a single map. The intent of this map is for quicker iteration over all attributes.
| std::map<std::string, DtVisualizerAttribute*> makVrv::DtVisualizerDefinition::getAllAttributes | ( | ) |
Returns all attributes of the current Visual Definition.
| DtVisualizerAttribute* makVrv::DtVisualizerDefinition::findAttribute | ( | const std::string & | name | ) |
Find an attribute by name. This attribute may be from an inherited definition.
| const DtVisualizerAttribute* makVrv::DtVisualizerDefinition::findAttribute | ( | const std::string & | name | ) | const |
Find an attribute by name. This attribute may be from an inherited definition.
| const DtVisualizerAttribute* makVrv::DtVisualizerDefinition::findAttributeLowercase | ( | const std::string & | name | ) | const |
Find an attribute by name without converting to lowercase (assume string is already lowercase) This attribute may be from an inherited definition.
| DtVisualizerAttribute* makVrv::DtVisualizerDefinition::findOrCreateLocalAttribute | ( | const std::string & | name | ) |
Find an attribute by name, If this attribute exists and it local it is returned. If the attribute is found and it is inherited a local copy will be created. If the attribute is not found.
| void makVrv::DtVisualizerDefinition::setAttribute | ( | const std::string & | name, |
| std::unique_ptr< DtVisualizerAttribute > | attribute | ||
| ) |
At an attribute by name. If the attribute does not already.
| void makVrv::DtVisualizerDefinition::removeAttribute | ( | const std::string & | name, |
| bool | localOnly | ||
| ) |
Remove an attribute, if localOnly, then it will only remove the attribute if it is local to this definition.
|
virtual |
Remove all (local) attributes (clear myAttributes list)
| bool makVrv::DtVisualizerDefinition::attributeLocal | ( | const std::string & | name | ) | const |
Check if an attributes value is local to this definition.
| bool makVrv::DtVisualizerDefinition::attributeInherited | ( | const std::string & | name | ) | const |
Check if an attributes value is inherited.
| bool makVrv::DtVisualizerDefinition::attributeInheritedLowercase | ( | const std::string & | name | ) | const |
Check if an attributes value is inherited assuming name is already lowercase.
| bool makVrv::DtVisualizerDefinition::attributeOverridden | ( | const std::string & | name | ) | const |
Check if an attribute value is overriding another value.
| bool makVrv::DtVisualizerDefinition::attributeOverriddenLowercase | ( | const std::string & | name | ) | const |
Check if an attribute value is overriding another value but assume name is already lowercase.
| DtVisualizerDefinition* makVrv::DtVisualizerDefinition::findParent | ( | ) |
Find the parent definition which this definition inherits from.
| const DtVisualizerDefinition* makVrv::DtVisualizerDefinition::findParent | ( | ) | const |
Find the parent definition which this definition inherits from.
Get the number of child definitions which inherit from this definition.
| DtVisualizerDefinition* makVrv::DtVisualizerDefinition::findChild | ( | unsigned int | index | ) |
Find a child definition by index.
| const DtVisualizerDefinition* makVrv::DtVisualizerDefinition::findChild | ( | unsigned int | index | ) | const |
Find a child definition by index.
| int makVrv::DtVisualizerDefinition::findChildIndex | ( | const DtVisualizerDefinition * | child | ) | const |
Get the index of a child definition. The index of the child may change if any children are removed.
|
static |
Convert a visualizer definition vector string parameter (e.g. "0.1,0.2,0.3") to a DtVector.
|
static |
Convert a visualizer definition tait bryan string parameter (e.g. "0.1,0.2,0.3") to a DtTaitBryan.
|
protected |
Create a clone of this visualizer definition with a new parent.
|
protected |
Called internally to change the parent.
|
protected |
Called internally to add a child.
|
protected |
Called internally to remove a child.
|
friend |
Use the DtVisualizerDefinitionSet interface to create and destroy visualizer definitions.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |