MIRA
|
Basic reference implementation of an AbstractTransformerNode that stores the transformation data internally in a StampedDataQueue that allows to query the transformation at specific time stamps. More...
#include <transform/TransformerNode.h>
Public Types | |
typedef AbstractTransformerNode * | AbstractNodePtr |
Pointer type for this AbstractTransformerNode. More... | |
Public Member Functions | |
Storage & | storage () |
Grants access to the internal storage for transformations. More... | |
void | setTransform (const StorageTransform &transform, const Time &time) |
Inserts the specified transform with the specified time stamp into the internal storage. More... | |
virtual bool | isEmpty () const |
Implementation of AbstractTransformerNode::isEmpty() More... | |
template<typename Transform , typename Filter > | |
Transform | getTransform (const Time &time, Filter &&filter) |
Implementation of AbstractTransformerNode::getTransform() More... | |
template<typename Transform > | |
Transform | getTransform (const Time &time, NearestNeighborInterpolator &) |
const std::string & | getID () const |
Returns the id of this node. More... | |
const std::list< AbstractNodePtr > & | getChildren () const |
Returns a list with all children of this node. More... | |
const AbstractNodePtr & | getParent () const |
Returns the parent of the node. More... | |
uint32 | getDescendantCount () const |
Returns the number of descendants of this node (children, grandchildren, etc.) More... | |
bool | isAncestorOf (const AbstractNodePtr other) const |
Returns true, if the this node is an ancestor of the given 'other' node. More... | |
Protected Member Functions | |
TransformerNode (const std::string &id) | |
Creates a new node of the transform tree, that can be added to the corresponding Transformer using addNode(). More... | |
Protected Attributes | |
Storage | mTransformStorage |
storage that takes all transforms with their timestamps that were added. More... | |
std::string | mID |
The id of this node. More... | |
AbstractNodePtr | mParent |
Pointer to the parent node within the tree. More... | |
std::list< AbstractNodePtr > | mChildren |
List with pointers to the children within the transformation tree. More... | |
Friends | |
template<typename T , int D, template< typename T_, int D_ > class TTransform_> | |
class | Transformer |
Basic reference implementation of an AbstractTransformerNode that stores the transformation data internally in a StampedDataQueue that allows to query the transformation at specific time stamps.
Transforms can be added to the internal storage using the setTransform() method.
As template parameter the type of the transformation needs to be specified, e.g. RigidTransform3f. This is the type that is internally stored within the storage.
|
inherited |
Pointer type for this AbstractTransformerNode.
|
inlineprotected |
Creates a new node of the transform tree, that can be added to the corresponding Transformer using addNode().
|
inline |
Grants access to the internal storage for transformations.
This allows to change the parameters of the storage like the max storage time, the capacity, etc.
|
inline |
Inserts the specified transform with the specified time stamp into the internal storage.
|
inlinevirtual |
Implementation of AbstractTransformerNode::isEmpty()
Implements AbstractTransformerNode.
|
inline |
Implementation of AbstractTransformerNode::getTransform()
|
inline |
|
inlineinherited |
Returns the id of this node.
|
inlineinherited |
Returns a list with all children of this node.
|
inlineinherited |
Returns the parent of the node.
|
inherited |
Returns the number of descendants of this node (children, grandchildren, etc.)
|
inherited |
Returns true, if the this node is an ancestor of the given 'other' node.
|
friend |
|
protected |
storage that takes all transforms with their timestamps that were added.
|
protectedinherited |
The id of this node.
|
protectedinherited |
Pointer to the parent node within the tree.
|
protectedinherited |
List with pointers to the children within the transformation tree.