class DtEchelonHierarchy:
More...
Detailed Description
class DtEchelonHierarchy:
An instance DtEchelonHierarchy maintians a hierarchical tree of the echelon structure. It is derived from QObject so that it can use the Qt signal/slot callback mechanism.
Constructor & Destructor Documentation
| DtEchelonHierarchy::DtEchelonHierarchy |
( |
QObject * |
parent = NULL | ) |
|
| virtual DtEchelonHierarchy::~DtEchelonHierarchy |
( |
| ) |
|
|
virtual |
Member Function Documentation
Connects to the model data dictionary.
Returns the node which corresponds to the key.
| virtual void DtEchelonHierarchy::allDecendentsOf |
( |
const DtModelKey & |
key, |
|
|
QVector< DtModelKey > & |
resultList |
|
) |
| const |
|
virtual |
Returns the list of ModelKeys which are the decendents of node key in the resultList argument.
| virtual void DtEchelonHierarchy::allImmediateDecendentsOf |
( |
const DtModelKey & |
key, |
|
|
QVector< DtModelKey > & |
resultList |
|
) |
| const |
|
virtual |
Returns a list of top level decendents of specified item.
Returns true only if the superior is either a direct or indirect superior of the subordinant.
| virtual void DtEchelonHierarchy::setAlwaysReconnectAllNodes |
( |
bool |
value | ) |
|
|
virtual |
If set, all nodes will be reconnected each time a node is added.
This may be necessary, depending on the implementation of connectNode() by the derived class.
| virtual bool DtEchelonHierarchy::alwaysReconnectAllNodes |
( |
| ) |
const |
|
virtual |
| virtual void DtEchelonHierarchy::tick |
( |
| ) |
|
|
virtual |
Sends queued node reparented signals.
| virtual void DtEchelonHierarchy::addModelData |
( |
const DtModelKey & |
key | ) |
|
|
virtualslot |
Checks to see if this model data should be added, and adds if so.
| virtual void DtEchelonHierarchy::removeModelData |
( |
const DtModelKey & |
key | ) |
|
|
virtualslot |
Removes this model data from the hierarchy if it exists.
| virtual void DtEchelonHierarchy::updateModelData |
( |
const DtModelKey & |
key, |
|
|
int |
changed |
|
) |
| |
|
virtualslot |
| virtual void DtEchelonHierarchy::reconnectAllNodes |
( |
| ) |
|
|
virtualslot |
Dissconnects the entire hierarchy, and then calls connectNode() for each node in the hierarchy.
| void DtEchelonHierarchy::nodeAdded |
( |
const DtModelKey & |
| ) |
|
|
signal |
Emitted when a new echelon node is added to the hierarchy.
| void DtEchelonHierarchy::nodeAboutToBeRemoved |
( |
const DtModelKey & |
| ) |
|
|
signal |
Emitted immediadly before an echelon node is removed from the hierarchy.
| void DtEchelonHierarchy::nodeReparented |
( |
const DtModelKey & |
| ) |
|
|
signal |
Emitted whenever a node's parent changes.
| virtual bool DtEchelonHierarchy::shouldBeAdded |
( |
const DtModelKey & |
key | ) |
|
|
protectedvirtual |
Returs true if the model data referenced by this key should be added to the hierarchy.
Override this function to allow your models to be added.
Adds a new node to the hierarchy with this key, calls connectNode() to connect the child/parent relationships appropriatly, emits nodeAdded() and returns a pointer to the new node.
| virtual void DtEchelonHierarchy::removeModelNode |
( |
const DtModelKey & |
key | ) |
|
|
protectedvirtual |
| virtual void DtEchelonHierarchy::updateModelNode |
( |
const DtModelKey & |
key | ) |
|
|
protectedvirtual |
Removes all children and reconnects node.
Connects the childNode to the parentNode.
Disconnects the childNode from its current parent if it is not a root node.
Disconnects this node from the rest of the hierarchy.
The default implementation sets the parent pointer of any child nodes to NULL (i.e. they become roots) and removes this node from the child lists of its parent. Override this function if you require different actions.
Calculates the node level for all nodes below, and including node.
Returns the level of node.
| virtual void DtEchelonHierarchy::calculateAllLevels |
( |
| ) |
|
|
protectedvirtual |
Calculates the node level for all nodes in the hierarchy.
| virtual void DtEchelonHierarchy::queueNodeReparentedSignal |
( |
const DtModelKey & |
key | ) |
|
|
protectedvirtualslot |
This queues the key value, for a nodeReparentedSignal.
This is needed so that the nodeReparented() signals are send AFTER the nodeAdded() signal if a node addition caused some of the other nodes to get reparented under it.
| virtual void DtEchelonHierarchy::sendQueuedNodeReparentedSignals |
( |
| ) |
|
|
protectedvirtual |
Member Data Documentation
| bool DtEchelonHierarchy::myAlwaysReconnectAllNodes |
|
protected |
| QVector<DtModelKey> DtEchelonHierarchy::myNodeReparentedQueue |
|
protected |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.tot/include/tmqt/echHierarchy.h