![]() |
VR-Forces 4.6.1 Class Documentation
|
A definition of a visualizer. More...
Public Types | |
| typedef std::map< std::string, DtVisualizerAttribute * > | SortedAttributeMap |
| A map of sorted visualizer attributes. | |
Public Member Functions | |
| bool | isEqual (const DtVisualizerDefinition &) const |
| check if two visualizer definitions are equal we don't comapre the parent or children | |
| const std::string & | schemaName () const |
| Get the schema name the visualizer definition was created for. | |
| int | numberOfAttributes () const |
| Get the number of attributes. | |
| const DtVisualizerAttribute * | findAttribute (int index) const |
| Find an attribute by index. | |
| void | getAttributes (SortedAttributeMap &map) const |
| Get all the attributes for this definition, filling them into a single map. | |
| DtVisualizerAttribute * | findAttribute (const std::string &name) |
| Find an attribute by name. | |
| const DtVisualizerAttribute * | findAttribute (const std::string &name) const |
| Find an attribute by name. | |
| const DtVisualizerAttribute * | 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 * | findOrCreateLocalAttribute (const std::string &name) |
| Find an attribute by name, If this attribute exists and it local it is returned. | |
| void | setAttribute (const std::string &name, std::auto_ptr< DtVisualizerAttribute > attribute) |
| At an attribute by name. If the attribute does not already. | |
| void | 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. | |
| bool | attributeLocal (const std::string &name) const |
| Check if an attributes value is local to this definition. | |
| bool | attributeInherited (const std::string &name) const |
| Check if an attributes value is inherited. | |
| bool | attributeInheritedLowercase (const std::string &name) const |
| Check if an attributes value is inherited assuming name is already lowercase. | |
| bool | attributeOverridden (const std::string &name) const |
| Check if an attribute value is overriding another value. | |
| bool | attributeOverriddenLowercase (const std::string &name) const |
| Check if an attribute value is overriding another value but assume name is already lowercase. | |
| DtVisualizerDefinition * | findParent () |
| Find the parent definition which this definition inherits from. | |
| const DtVisualizerDefinition * | findParent () const |
| Find the parent definition which this definition inherits from. | |
| unsigned int | numberOfChildren () const |
| Get the number of child definitions which inherit from this definition. | |
| DtVisualizerDefinition * | findChild (unsigned int index) |
| Find a child definition by index. | |
| const DtVisualizerDefinition * | findChild (unsigned int index) const |
| Find a child definition by index. | |
| int | findChildIndex (const DtVisualizerDefinition *child) const |
| Get the index of a child definition. | |
Protected Member Functions | |
| DtVisualizerDefinition (const std::string &schemaName) | |
| Create a top level definition. | |
| DtVisualizerDefinition (const std::string &schemaName, DtVisualizerDefinition *parent) | |
| Create an inherited definition. | |
| DtVisualizerDefinition * | clone (DtVisualizerDefinition *parent) const |
| Create a clone of this visualizer definition with a new parent. | |
| ~DtVisualizerDefinition () | |
| Delete a definition. | |
| void | setParent (DtVisualizerDefinition *parent) |
| Called internally to change the parent. | |
| void | addChild (DtVisualizerDefinition *) |
| Called internally to add a child. | |
| void | removeChild (DtVisualizerDefinition *) |
| Called internally to remove a child. | |
Private Types | |
| typedef std::map< std::string, DtVisualizerAttribute * > | AttributeMap |
| typedef std::vector < DtVisualizerDefinition * > | DefinitionList |
Private Attributes | |
| DtVisualizerDefinition * | myParent |
| DefinitionList | myChildren |
| std::string | mySchemaName |
| AttributeMap | myAttributes |
Friends | |
| class | DtVisualizerDefinitionSet |
| Use the DtVisualizerDefinitionSet interface to create and destroy visualizer definitions. | |
A definition of a visualizer.
Visualizer definition are always members of a visualizer definition set, and are create and destroyed using the DtVisualizerDefinitionSet functions.
| typedef std::map<std::string,DtVisualizerAttribute*> makVrv::DtVisualizerDefinition::SortedAttributeMap |
A map of sorted visualizer attributes.
|
private |
|
private |
|
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.
| int makVrv::DtVisualizerDefinition::numberOfAttributes | ( | ) | const |
Get the number of attributes.
This includes 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.
| 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::auto_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.
| 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.
|
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.
|
private |
|
private |
|
private |
|
private |