![]() |
VR-Forces 5.0.1 Developer's Guide
|
The element definition class contains the element definition information. The makVrv::DtElementDefinitionManager is responsible for create and destroying instances of the element definitions.
Protected Types | |
| typedef std::vector < DtElementDefinitionNew * > | DefinitionList |
| typedef std::vector < DtVisualizerDefinitionSet * > | DefinitionSetList |
Protected Member Functions | |
| DtElementDefinitionNew (const DtUnicode &name) | |
| DtElementDefinitionNew (const DtUnicode &name, DtElementDefinitionNew *parent) | |
Protected Attributes | |
| DtUnicode | myName |
| std::string | myFileName |
| DefinitionSetList | mySets |
| std::vector< std::string > | myDuplicateNames |
| bool | myIsHier |
| bool | myDuplicateFlag |
| DtElementDefinitionNew * | myParent |
| DefinitionList | myChildren |
Private Member Functions | |
| DtElementDefinitionNew () | |
| DtElementDefinitionNew (const DtElementDefinitionNew ©) | |
| DtElementDefinitionNew & | operator= (const DtElementDefinitionNew &) |
Friends | |
| class | DtElementDefinitionManager |
|
protected |
|
protected |
|
protected |
Create a top level element definition.
|
protected |
Create an element definition which inherits from another definition.
| makVrv::DtElementDefinitionNew::~DtElementDefinitionNew | ( | ) |
DTOR.
|
private |
CTOR.
|
private |
Copy Constructor Not implemented.
| const DtUnicode& makVrv::DtElementDefinitionNew::name | ( | ) | const |
Get the name of the element definition. The name of an element is unique.
| const std::string& makVrv::DtElementDefinitionNew::fileName | ( | ) | const |
Get the file name of the element definition. Each fileName links to a corresponding file.
| const std::vector<std::string>& makVrv::DtElementDefinitionNew::duplicateNames | ( | ) | const |
Gets the list of all file names saved to show duplicates.
| void makVrv::DtElementDefinitionNew::setFileName | ( | const std::string & | ) |
Assigns the file name to the model definition.
| bool makVrv::DtElementDefinitionNew::isEqual | ( | const DtElementDefinitionNew & | ) | const |
check if two element definitions are equal we don't comapre the parent or children
| int makVrv::DtElementDefinitionNew::numberOfVisualizerDefinitionSets | ( | ) | const |
Get the number of visualizer definition sets the definition has.
| DtVisualizerDefinitionSet& makVrv::DtElementDefinitionNew::visualizerDefinitionSet | ( | int | modelSet | ) |
Get the visualizer set for the model set. If visualizer definition set for the definition does not exist yet one will be created.
| const DtVisualizerDefinitionSet& makVrv::DtElementDefinitionNew::visualizerDefinitionSet | ( | int | modelSet | ) | const |
Get the visualizer set for the model set. If the visualizer definition set does not exist for the model set an exception (DtInvalidInput) will be thrown.
| DtElementDefinitionNew* makVrv::DtElementDefinitionNew::findParent | ( | ) |
Find the element definition that his inherits from.
| const DtElementDefinitionNew* makVrv::DtElementDefinitionNew::findParent | ( | ) | const |
Find the element definition that his inherits from.
Get the number of element definitions which inherit from this definition.
| DtElementDefinitionNew* makVrv::DtElementDefinitionNew::findChild | ( | unsigned int | index | ) |
Find a child at a given index.
| const DtElementDefinitionNew* makVrv::DtElementDefinitionNew::findChild | ( | unsigned int | index | ) | const |
Find a child at a given index.
| int makVrv::DtElementDefinitionNew::findChildIndex | ( | const DtElementDefinitionNew * | child | ) | const |
Get the index of a child definition. The index of the child may change if any children are removed.
| std::vector<DtElementDefinitionNew*> makVrv::DtElementDefinitionNew::getChildren | ( | ) |
Gets the list of children of the element definition.
| DtVisualizerDefinition* makVrv::DtElementDefinitionNew::findOrCreateLocalVisualizer | ( | int | modelSet, |
| int | visualizerIndex | ||
| ) |
Finds or creates a local visualizer, there must be a visualizer at the visualizerIndex, either a local visualizer or an inherited visualizer.
| DtVisualizerAttribute* makVrv::DtElementDefinitionNew::findOrCreateLocalAttribute | ( | int | modelSet, |
| int | visualizerIndex, | ||
| const std::string & | attributeName | ||
| ) |
Utility function for finding or creating a local visualizer and local attribute. A local visualizer is owned by this element.
| bool makVrv::DtElementDefinitionNew::isHier | ( | ) | const |
Is this element definition a hierarchy node?
| void makVrv::DtElementDefinitionNew::setIsHier | ( | bool | isHier | ) |
Set the name of the element definition.
| bool makVrv::DtElementDefinitionNew::isDuplicate | ( | ) | const |
Whether or not the element definition is in another file as well.
| void makVrv::DtElementDefinitionNew::addDuplicateName | ( | const std::string & | duplicateName | ) |
Adds file locations where duplicates of file are found.
| void makVrv::DtElementDefinitionNew::setDuplicateFlag | ( | bool | duplicate | ) |
Set whether or not this def is a duplicate.
| DtElementDefinitionNew* makVrv::DtElementDefinitionNew::clone | ( | ) | const |
Create a clone of this element definition.
|
private |
Assignment Operator Not implemented.
| DtElementDefinitionNew* makVrv::DtElementDefinitionNew::clone | ( | const DtUnicode & | name, |
| DtElementDefinitionNew * | newParent | ||
| ) | const |
Create a clone of this element definition with a new name and a new parent.
| void makVrv::DtElementDefinitionNew::setName | ( | const DtUnicode & | name | ) |
Set the name of the element definition.
| void makVrv::DtElementDefinitionNew::addChild | ( | DtElementDefinitionNew * | child | ) |
Internal function.
| void makVrv::DtElementDefinitionNew::removeChild | ( | DtElementDefinitionNew * | child | ) |
Internal function.
|
friend |
Use the element definition manager to create, copy and destroy element definitions.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |