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

The DtElementIDHierarchyNode class will contain information about an element, its children and its parent. More...

List of all members.

Public Types

enum  DisplayState {
  Unknown = -1, Collapsed = 0, Shown = 1, Ghosted = 2,
  Expanded = 3, InitiallyShown = 4, InitiallyExpanded = 5, Hidden = 6
}
 Used to keep track of state of item as it should appear visually in the hierarchy. More...
enum  Flags { ShouldHaveChildren = 0x00000001, CollapseIfNoChildren = 0x00000002 }
typedef std::vector
< DtElementIDHierarchyNode * > 
ChildHierarchyNodes

Public Member Functions

 DtElementIDHierarchyNode ()
 DtElementIDHierarchyNode (DtElementID id, const DtElementIDHierarchyState &)
 If created from a change attribute, will allocate and delete children in destructor.
 DtElementIDHierarchyNode (DtElementID)
 DtElementIDHierarchyNode (const DtElementIDHierarchyNode &orig)
virtual ~DtElementIDHierarchyNode ()
DtElementIDHierarchyNodeoperator= (const DtElementIDHierarchyNode &)
bool operator== (const DtElementIDHierarchyNode &) const
bool operator!= (const DtElementIDHierarchyNode &rhs) const
bool hasChild (DtElementID child) const
bool addChild (DtElementIDHierarchyNode *)
void removeChild (DtElementID child)
void copyOriginal (const DtElementIDHierarchyNode &orig)
const makVrv::DtElementIDuniqueId () const
const ChildHierarchyNodeschildren () const
void removeAllChildren ()
void setParent (DtElementIDHierarchyNode *p)
DtElementIDHierarchyNodeparent ()
const DtElementIDHierarchyNodeparent () const
virtual bool childInHierarchy (DtElementID id) const
 Returns true if the child is in the hierarchy node tree.
void setFlags (int flags)
int flags () const
void setDisplayState (DisplayState)
DisplayState displayState () const

Protected Attributes

DtElementIDHierarchyNodemyParent
ChildHierarchyNodes myChildren
DtElementID myId
bool myCleanupChildren
int myFlags
DisplayState myDisplayState

Detailed Description

The DtElementIDHierarchyNode class will contain information about an element, its children and its parent.


Member Typedef Documentation


Member Enumeration Documentation

Used to keep track of state of item as it should appear visually in the hierarchy.

Enumerator:
Unknown 
Collapsed 
Shown 
Ghosted 
Expanded 
InitiallyShown 
InitiallyExpanded 

This will be set in the case of no children or parent.

If this continues to be the case, the item should be shown, else, if this item gets children in the future, it will be changed to expanded

Hidden 

Special state to keep initially expanded first shown.

Enumerator:
ShouldHaveChildren 
CollapseIfNoChildren 

Set this flag if the item should have children, but does not yet.


Constructor & Destructor Documentation

If created from a change attribute, will allocate and delete children in destructor.


Member Function Documentation

DtElementIDHierarchyNode& makVrv::DtElementIDHierarchyNode::operator= ( const DtElementIDHierarchyNode )
bool makVrv::DtElementIDHierarchyNode::operator== ( const DtElementIDHierarchyNode ) const
bool makVrv::DtElementIDHierarchyNode::operator!= ( const DtElementIDHierarchyNode rhs) const [inline]

Returns true if the child is in the hierarchy node tree.


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)