OpenFrames
|
This class determines whether a FramePath is valid. More...
#include <FramePathVerifier.hpp>
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 () |
![]() | |
FrameTracker (ReferenceFrame *frame) | |
ReferenceFrame * | getRoot () |
Protected Member Functions | |
void | _clearPath () |
Protected Attributes | |
FramePath | _framePath |
bool | _valid |
![]() | |
osg::ref_ptr< ReferenceFrame > | _root |
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.