OpenFrames
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenFrames::FramePathVerifier Class Reference

This class determines whether a FramePath is valid. More...

#include <FramePathVerifier.hpp>

Inheritance diagram for OpenFrames::FramePathVerifier:
OpenFrames::FrameTracker

Public Member Functions

virtual void childAdded (ReferenceFrame *child, ReferenceFrame *parent)
 
virtual void childRemoved (ReferenceFrame *child, ReferenceFrame *parent)
 
virtual void setRoot (ReferenceFrame *frame)
 
void setFramePath (const FramePath &path)
 
bool isFramePathValid ()
 
- Public Member Functions inherited from OpenFrames::FrameTracker
 FrameTracker (ReferenceFrame *frame)
 
ReferenceFramegetRoot ()
 

Protected Member Functions

void _clearPath ()
 

Protected Attributes

FramePath _framePath
 
bool _valid
 
- Protected Attributes inherited from OpenFrames::FrameTracker
osg::ref_ptr< ReferenceFrame_root
 

Detailed Description

This class determines whether a FramePath is valid.

This class keeps track of whether a given FramePath is valid, meaning that all the frames in the FramePath occur in that order in the actual ReferenceFrame tree. For example, if the FramePath is [A, B, C], then this class verifies that C is a direct child of B, which is a direct child of A. This class can be seen as a variation of the OpenFrames::DescendantTracker class, the difference being that this class does not keep a ref_ptr to any root node and does not try to reform the FramePath if it is broken. This class simply keeps track of whether the given FramePath is valid or not.


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