#include <prmTransformationBase.h>
Inheritance diagram for prmTransformationBase:


The frame base class contains all the methods required to manage the relations between the different frames. Each frame corresponds to a node in the transformation tree and contains a pointer to its reference frame (edge of the tree).
The derived classes prmTransformationFixed and prmTransformationDynamic implement two different ways to compute the transformation between this frame and its reference, i.e. either a static transformation or a user provided command.
Please see the Frame Manager architecture discussion to see why this does not derive from a vctFrm3
Definition at line 71 of file prmTransformationBase.h.
| prmTransformationBase::prmTransformationBase | ( | void | ) | [inline] |
Default constructor. Set the frame name as "Undefined" and uses the world frame as reference. The frame is automatically added to the frame manager.
Definition at line 119 of file prmTransformationBase.h.
| prmTransformationBase::prmTransformationBase | ( | const std::string & | name | ) | [inline] |
Constructor with a name only.
Definition at line 129 of file prmTransformationBase.h.
| virtual prmTransformationBase::~prmTransformationBase | ( | ) | [virtual] |
Destructor. The frame is also removed from the frame manager.
Any frame using this frame as a reference will be modified to use its pparent as reference. If you need to change the reference frame of all depending frames, use prmTransformationManager::ReplaceReference.
| bool prmTransformationBase::SetReferenceFrame | ( | const prmTransformationBasePtr & | newReference | ) |
Set the reference frame. This method uses the prmTransformationManager to make sure there is no cyclic dependency. If a cycle is found, returns false and doesn't update the reference frame.
| newReference | prmTransformationBasePtr ptr to new location in the tree |
Referenced by prmTransformationDynamic::prmTransformationDynamic(), and prmTransformationFixed::prmTransformationFixed().
| prmTransformationBasePtr prmTransformationBase::GetReferenceFrame | ( | void | ) | const [inline] |
Get a pointer to the reference frame.
Definition at line 158 of file prmTransformationBase.h.
| const std::string& prmTransformationBase::GetName | ( | void | ) | const [inline] |
Set/Get name
Definition at line 165 of file prmTransformationBase.h.
| void prmTransformationBase::SetName | ( | const std::string & | name | ) | [inline] |
Set/Get name
Definition at line 170 of file prmTransformationBase.h.
| virtual vctFrm3 prmTransformationBase::WRTReference | ( | void | ) | const [pure virtual] |
Get the transformation between the reference frame and this frame.
std::string prmTransformationBase::Name [protected] |
a describable name
Definition at line 105 of file prmTransformationBase.h.
a reference to its parent and immediate reference frame, obtained during prmTransformationManager::Attach
Definition at line 108 of file prmTransformationBase.h.
NodeListType prmTransformationBase::Children [protected] |
frames that attach and refer to this frame
Definition at line 111 of file prmTransformationBase.h.