The makVrv::DtVisualizerDefinitionSet is a collection of makVrv::DtVisualizerDefinition instances. A DtElementDefinition has a single visualizer definition set per model set.
| makVrv::DtVisualizerDefinitionSet::DtVisualizerDefinitionSet |
( |
DtModelSetId |
modelSetId | ) |
|
|
protected |
Create a top level definition set.
Create an inherited definition set.
| makVrv::DtVisualizerDefinitionSet::~DtVisualizerDefinitionSet |
( |
| ) |
|
|
protected |
Create a clone of this set using a new parent.
| DtModelSetId makVrv::DtVisualizerDefinitionSet::modelSet |
( |
| ) |
const |
Get the model set this visual definition set is associated with.
check if two visual definition set are equal we don't comapre the parent or children
- Returns
- true is those two visual definition set are identical
| int makVrv::DtVisualizerDefinitionSet::numberOfVisualizerDefinitions |
( |
| ) |
const |
Get the number of definitions. This number includes any local definitions as well as inherited definitions.
Find a definition by index. The index is not constant, and may change should any definitions be added or removed.
- Returns
- 0 if there is no definition at that index.
| DtVisualizerDefinition* makVrv::DtVisualizerDefinitionSet::findVisualizerDefinition |
( |
const std::string & |
uuidString | ) |
|
Find a definition by index. The index is not constant, and may change should any definitions be added or removed. The returned visualizer definition may be local to this set or may be inherited and owned by the set's ancestor[s].
- Returns
- 0 if there is no definition at that index.
| const DtVisualizerDefinition* makVrv::DtVisualizerDefinitionSet::findVisualizerDefinition |
( |
const std::string & |
uuidString | ) |
const |
| void makVrv::DtVisualizerDefinitionSet::findVisualizerDefinitions |
( |
const std::string & |
schemaName, |
|
|
std::vector< const DtVisualizerDefinition * > & |
defs |
|
) |
| const |
Find all of the visualizer definitions which use a particular schema name.
| void makVrv::DtVisualizerDefinitionSet::findVisualizerDefinitions |
( |
const std::string & |
schemaName, |
|
|
std::vector< DtVisualizerDefinition * > & |
defs |
|
) |
| |
Find all of the visualizer definitions which use a particular schema name.
Find the index of a visualizer definition. The index is not constant, and may change should any definitions be added or removed. The returned visualizer definition may be local to this set or may be inherited and owned by the set's ancestor[s].
- Returns
- -1 if the definition can't be found in the index.
| DtVisualizerDefinition* makVrv::DtVisualizerDefinitionSet::createVisualizerDefinition |
( |
const std::string & |
schemaName, |
|
|
bool |
setInheritance = true |
|
) |
| |
Create a new top level visualizer definition. The visualizer definition will be owned by this set. The pointer should not be deleted.
| DtVisualizerDefinition* makVrv::DtVisualizerDefinitionSet::createVisualizerDefinition |
( |
const std::string & |
schemaName, |
|
|
const std::string & |
uuidString, |
|
|
bool |
setInheritance = true |
|
) |
| |
Create a new top level visualizer definition. The visualizer definition will be owned by this set. The pointer should not be deleted.
Create a new visualizer definition which inherits from an existing visualizer definition. The visualizer definition will be owned by this set. The pointer should not be deleted. The new definition will have the same schema as it's parent.
- Returns
- 0 If the parent visualizer definition is not currently inherited into this set.
Creates a new Visualizer Definition, creating a copy of the definition that is passed in, and pasting it in a new location, and if there is already a matching vis def, it replaces it with the new vis def.
Creates a new Visualizer Definition, creating a copy of the definition that is passed in, and pasting it in a new location, localizing its attributes to make it an independent vis def.
When a new visualizer definition is added to a visualizer definition set within the hierarchy, all the child visualizer definition sets get a new empty visualizer definition (NOT a pointer to the new real definition). This 'dummy' effectively establishes the inheritance relationsip. These empty visualizer definitions are not written to a file, and are established on load by the DtElementDefinitionManager.
Remove a visualizer definition by index. If the entireHierarchy is true, then all visualizer definitions which inherit from the visualizer definition at the index as well as it's parents are removed.
- Exceptions
-
| DtInvalidInput | if the definition is not owned by this set. |
Check to is if the visualizer definition is owned by this set.
- Returns
- true if the definition is local to this set.
-
false if it is not local to this set.
Check if the visualizer definition is local and overrides a definition owned by a parent visualizer set.
- Returns
- true if the visualizer definition is local to this definition and overrides a visualizer definition in one of the parent definitions.
-
false if the attribute does not exist, or is inherited.
Find the parent definition which this definition inherits from.
- Returns
- 0 if there is no parent.
Find the parent definition which this definition inherits from.
- Returns
- 0 if there is no parent.
| unsigned int makVrv::DtVisualizerDefinitionSet::numberOfChildren |
( |
| ) |
const |
Get the number of child definitions which inherit from this definition.
Returns the definitions of the set.
Returns the inherited definitions of the set.
Find a child definition set by index.
- Returns
- 0 if there is no child at that index.
Find a child definition set by index.
- Returns
- 0 if there is no child at that index.
Get the index of a child definition set. The index of the child may change if any children are removed.
- Returns
- -1 if the definition passed in is not a child.
Attempt to find the kinematic state definition.
Called internally to add a child.
Called internally to remove a child.
Add a definition to the ownership vector of this set.
Remove a definition to the ownership vector of this set.
- Returns
- true if the definition was removed.
-
false if the definition was not removed as it was not found.
Calculate the inheritenceIndex of a definition. The definition must have previously been added to the set via addOwnership.
Add a definition to the inheritance vector.
Replace one pointer with another pointer in the inheritance vector.
Remove a pointer from the inheritance vector.
Find which visualizer definition set owns the specified visualizer definition.
- Returns
- 0 If the definition is not owned by this set or any of it's parents.
Find which visualizer definition set owns the specified visualizer definition.
- Returns
- 0 If the definition is not owned by this set or any of it's parents.
Find the equivalent definition in a separate hierarchy. This is used to handle finding the parent of definitions when cloning a hierarchy.
| int makVrv::DtVisualizerDefinitionSet::level |
( |
| ) |
const |
|
protected |
Returns the level of the definition set. A set with no parent is level 0, a set which has a parent has a level 1 greater than it's parent's level.
Find the parent definition which this definition inherits which has a given level. See the level() function for a description of level.
- Returns
- 0 if there is not parent.
Replaces definition parents when a new class extends the old class.
| void makVrv::DtVisualizerDefinitionSet::destroyVisualizerDefinitionsWithParent |
( |
DtVisualizerDefinition * |
parent | ) |
|
|
protected |
Destroy all visualizer definitions which have a particular parent.
| static std::string makVrv::DtVisualizerDefinitionSet::generateUuidString |
( |
| ) |
|
|
staticprotected |
Use the element definition interface for creating and deleting visual definition sets.
| std::unordered_map<std::string, DtVisualizerDefinition*> makVrv::DtVisualizerDefinitionSet::myUuidToDefinitionMap |
|
protected |
| DefinitionList makVrv::DtVisualizerDefinitionSet::myInheritedDefinitions |
|
protected |
The documentation for this class was generated from the following file: