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 () |
| DtElementIDHierarchyNode & | operator= (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::DtElementID & | uniqueId () const |
| const ChildHierarchyNodes & | children () const |
| void | removeAllChildren () |
| void | setParent (DtElementIDHierarchyNode *p) |
| DtElementIDHierarchyNode * | parent () |
| const DtElementIDHierarchyNode * | parent () 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 |
| DtElementIDHierarchyNode * | myParent |
| ChildHierarchyNodes | myChildren |
| DtElementID | myId |
| bool | myCleanupChildren |
| int | myFlags |
| DisplayState | myDisplayState |
The DtElementIDHierarchyNode class will contain information about an element, its children and its parent.