Base class for Transformer to decouple base functionality that is type independent from type dependent Transformer class template.
More...
#include <transform/Transformer.h>
|
class | Chain |
| Represents a chain or path through the transformation tree from a staring node to the target node containing nodes whose transforms need to be applied inverse and nodes whose transforms need to be applied forward. More...
|
|
Base class for Transformer to decouple base functionality that is type independent from type dependent Transformer class template.
◆ AbstractNodePtr
◆ IDToNodeMap
◆ TransformerBase()
◆ ~TransformerBase()
◆ addLink()
Adds a link between the specified child and its parent.
Both nodes must have been added to this Transformer. If both nodes are connected to each other already this method has no effect. If the child was connected to another parent before it is unlinked from its current parent first and then linked to the new one. Returns true, if the link was new. If the link was already known, false is returned.
◆ removeLink()
Removes an existing link between the specified child node and the given parent node.
If both nodes are not connected, this method does nothing.
◆ getNodes()
Returns all nodes that are known by this transformer.
◆ getLinks()
Returns all links (as parent,child-pairs) that are known by this transformer.
◆ getRootNodes()
Returns a list of all nodes, that have no ancestor, e.g.
that are root nodes of a transform tree.
◆ getTransformChain()
- Exceptions
-
Throws | XTransform, if source and target are not connected or if there is a loop in the transform tree. |
◆ isTransformAvailable()
Checks if a transformation between 'target' and 'source' node is available:
- Is a path between 'target' and 'source' available
- Does every Node along the path contain data
◆ addNode()
An exception that is thrown when errors related to transformations occur.
Adds the specified node to the internal node map
◆ getNode()
Returns the node with the specified id, or nullptr if such a node does not exist.
◆ MAX_TREE_DEPTH
const int MAX_TREE_DEPTH = 1000 |
|
static |
The max.
allowed number of levels within a transformation tree. It is used by collectNodesUpwardsToRoot() that is applied to find the "lowest common ancestor" in getTransformChain() to detect loops within the transformation tree.
◆ mNodes
maps from ids to nodes that were added to us
◆ mMutex
protects the above node map
The documentation for this class was generated from the following file: