Fraxinus
16.5.0-fx-rc1
An IGT application
|
A graph combining Space dependencies between all Data.Relations between coordinate spaces among Data are created by this class. More...
#include <cxFrameForest.h>
Public Member Functions | |
FrameForest (const std::map< QString, DataPtr > &source) | |
QDomNode | getNode (QString frame) |
QDomNode | getOldestAncestor (QDomNode node) |
QDomNode | getOldestAncestorNotCommonToRef (QDomNode child, QDomNode ref) |
std::vector< QDomNode > | getDescendantsAndSelf (QDomNode node) |
std::vector< DataPtr > | getDataFromDescendantsAndSelf (QDomNode node) |
QDomDocument | getDocument () |
A graph combining Space dependencies between all Data.
Relations between coordinate spaces among Data are created by this class.
The graph consists of several directed acyclic graphs.
Definition at line 85 of file cxFrameForest.h.
|
explicit |
Create a forest representing all Data objects and their spatial relationships.
Definition at line 43 of file cxFrameForest.cpp.
std::vector< DataPtr > cx::FrameForest::getDataFromDescendantsAndSelf | ( | QDomNode | node | ) |
As getAllNodesFor(QDomNode), but return the nodes as data objects. Those frames not representing data are discarded.
Definition at line 181 of file cxFrameForest.cpp.
std::vector< QDomNode > cx::FrameForest::getDescendantsAndSelf | ( | QDomNode | node | ) |
Return the node and all its children recursively in one flat vector.
Definition at line 165 of file cxFrameForest.cpp.
QDomDocument cx::FrameForest::getDocument | ( | ) |
Definition at line 58 of file cxFrameForest.cpp.
QDomNode cx::FrameForest::getNode | ( | QString | frame | ) |
Given a frame uid, return the QDomNode representing that frame. Note: Lifetime of retval is controlled by the FrameForest object!
Definition at line 87 of file cxFrameForest.cpp.
QDomNode cx::FrameForest::getOldestAncestor | ( | QDomNode | node | ) |
Find the oldest ancestor of node.
Definition at line 134 of file cxFrameForest.cpp.
QDomNode cx::FrameForest::getOldestAncestorNotCommonToRef | ( | QDomNode | node, |
QDomNode | ref | ||
) |
Find the oldest ancestor of child, that is not also an ancestor of ref.
Definition at line 145 of file cxFrameForest.cpp.