Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
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 64 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 22 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 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.


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