The element definition class contains the element definition information.
More...
Detailed Description
The element definition class contains the element definition information.
The makVrv::DtElementDefinitionManager is responsible for create and destroying instances of the element definitions.
Member Typedef Documentation
Constructor & Destructor Documentation
| makVrv::DtElementDefinitionNew::DtElementDefinitionNew |
( |
const DtUnicode & |
name | ) |
|
|
protected |
Create a top level element definition.
Create an element definition which inherits from another definition.
| makVrv::DtElementDefinitionNew::~DtElementDefinitionNew |
( |
| ) |
|
|
protected |
Member Function Documentation
| const DtUnicode& makVrv::DtElementDefinitionNew::name |
( |
| ) |
const |
Get the name of the element definition.
The name of an element is unique.
check if two element definitions are equal we don't comapre the parent or children
- Returns
- true is those two element Definitions are identical
| int makVrv::DtElementDefinitionNew::numberOfVisualizerDefinitionSets |
( |
| ) |
const |
Get the number of visualizer definition sets the definition has.
Get the visualizer set for the model set.
If visualizer definition set for the definition does not exist yet one will be created.
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.
Find the element definition that his inherits from.
- Returns
- 0 if this is a top level definition.
Find the element definition that his inherits from.
- Returns
- 0 if this is a top level definition.
| unsigned int makVrv::DtElementDefinitionNew::numberOfChildren |
( |
| ) |
const |
Get the number of element definitions which inherit from this definition.
Find a child at a given index.
- Returns
- 0 if the child does not exist at the provided index.
Find a child at a given index.
- Returns
- 0 if the child does not exist at the provided index.
Get the index of a child definition.
The index of the child may change if any children are removed.
- Returns
- -1 if the definition passed in is not a child.
Finds or creates a local visualizer, there must be a visualizer at the visualizerIndex, either a local visualizer or an inherited visualizer.
- Returns
- 0 if the Visualizer definition index is invalid.
| 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.
- Returns
- 0 if the Visualizer definition index is invalid. See findOrCreateLocalVisualizer function.
| 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.
Create a clone of this element definition.
Create a clone of this element definition with a new name and a new parent.
| void makVrv::DtElementDefinitionNew::setName |
( |
const DtUnicode & |
name | ) |
|
|
protected |
Set the name of the element definition.
Friends And Related Function Documentation
Use the element definition manager to create, copy and destroy element definitions.
Member Data Documentation
| DtUnicode makVrv::DtElementDefinitionNew::myName |
|
protected |
| bool makVrv::DtElementDefinitionNew::myIsHier |
|
protected |
The documentation for this class was generated from the following file: