![]() |
CustusX
22.09
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 64 of file cxFrameForest.h.
|
explicit |
Create a forest representing all Data objects and their spatial relationships.
Definition at line 22 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 160 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 144 of file cxFrameForest.cpp.
QDomDocument cx::FrameForest::getDocument | ( | ) |
Definition at line 37 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 66 of file cxFrameForest.cpp.
QDomNode cx::FrameForest::getOldestAncestor | ( | QDomNode | node | ) |
Find the oldest ancestor of node.
Definition at line 113 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 124 of file cxFrameForest.cpp.