CustusX  15.4.0-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::FrameForest Class Reference

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< DataPtrgetDataFromDescendantsAndSelf (QDomNode node)
 
QDomDocument getDocument ()
 

Detailed Description

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.

Date
Sep 23, 2010
Author
christiana

Definition at line 85 of file cxFrameForest.h.

Constructor & Destructor Documentation

cx::FrameForest::FrameForest ( const std::map< QString, DataPtr > &  source)
explicit

Create a forest representing all Data objects and their spatial relationships.

Definition at line 43 of file cxFrameForest.cpp.

Member Function Documentation

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.


The documentation for this class was generated from the following files: