VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
makVrv::DtElementDefinitionNew Class Reference

The element definition class contains the element definition information. More...

List of all members.

Public Member Functions

const DtUnicodename () const
 Get the name of the element definition.
int numberOfVisualizerDefinitionSets () const
 Get the number of visualizer definition sets the definition has.
DtVisualizerDefinitionSetvisualizerDefinitionSet (int modelSet)
 Get the visualizer set for the model set.
const DtVisualizerDefinitionSetvisualizerDefinitionSet (int modelSet) const
 Get the visualizer set for the model set.
DtElementDefinitionNewfindParent ()
 Find the element definition that his inherits from.
const DtElementDefinitionNewfindParent () const
 Find the element definition that his inherits from.
unsigned int numberOfChildren () const
 Get the number of element definitions which inherit from this definition.
DtElementDefinitionNewfindChild (unsigned int index)
 Find a child at a given index.
const DtElementDefinitionNewfindChild (unsigned int index) const
 Find a child at a given index.
int findChildIndex (const DtElementDefinitionNew *child) const
 Get the index of a child definition.
DtVisualizerDefinitionfindOrCreateLocalVisualizer (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.
DtVisualizerAttributefindOrCreateLocalAttribute (int modelSet, int visualizerIndex, const std::string &attributeName)
 Utility function for finding or creating a local visualizer and local attribute.

Protected Types

typedef std::vector
< DtElementDefinitionNew * > 
DefinitionList
typedef std::vector
< DtVisualizerDefinitionSet * > 
DefinitionSetList

Protected Member Functions

 DtElementDefinitionNew (const DtUnicode &name)
 Create a top level element definition.
 DtElementDefinitionNew (const DtUnicode &name, DtElementDefinitionNew *parent)
 Create an element definition which inherits from another definition.
 ~DtElementDefinitionNew ()
 DTOR.
DtElementDefinitionNewclone (const DtUnicode &name, DtElementDefinitionNew *newParent) const
 Create a clone of this element definition with a new name and a new parent.
void setName (const DtUnicode &name)
 Set the name of the element definition.
void addChild (DtElementDefinitionNew *child)
 Internal function.
void removeChild (DtElementDefinitionNew *child)
 Internal function.

Protected Attributes

DtUnicode myName
DefinitionSetList mySets
DtElementDefinitionNewmyParent
DefinitionList myChildren

Friends

class DtElementDefinitionManager
 Use the element definition manager to create, copy and destroy element definitions.

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

Create a top level element definition.

Create an element definition which inherits from another definition.

DTOR.


Member Function Documentation

Get the name of the element definition.

The name of an element is unique.

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.

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.
DtElementDefinitionNew* makVrv::DtElementDefinitionNew::clone ( const DtUnicode name,
DtElementDefinitionNew newParent 
) const [protected]

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.

Internal function.

Internal function.


Friends And Related Function Documentation

friend class DtElementDefinitionManager [friend]

Use the element definition manager to create, copy and destroy element definitions.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)