MeVisLab Scripting Reference
MLStandardTransformationProviderWrapper Class Reference
Inheritance diagram for MLStandardTransformationProviderWrapper:
MLTransformationProviderWrapper

Public Slots

void clear ()
 
void registerTransformation (const QVariantMap &fromRef, const QVariantMap &toRef, const MLAbstractTransformationWrapper *transformation, bool setInverseToo)
 
- Public Slots inherited from MLTransformationProviderWrapper
TransformationProviderMappingPathWrappercreateEmptyMappingPath ()
 
MLAbstractTransformationWrappergetTransformation (const QVariantMap &fromRef, const QVariantMap &toRef, TransformationProviderMappingPathWrapper *mappingPath=nullptr)
 
bool isSameImage (const QVariantMap &ref1, const QVariantMap &ref2)
 

Additional Inherited Members

- Signals inherited from MLTransformationProviderWrapper
void transformationsChanged (TransformationChangedEventWrapper *changeEvent)
 

Detailed Description

This class wraps the class ml::StandardTransformationProvider.

This is the wrapper for an implementation of ml::TransformationProvider that stores a graph of transformations betweens coordinate system nodes and on request looks for a path between coordinate systems.

This implementation performs an exhaustive search in the graph and returns the first path found in the graph through a transformation combining the single transformations of the path. If no exact path can be found, None is returned instead.

An object of this class can be generated from scripting with

MLAB.createMLBaseObject("StandardTransformationProvider")
Access to all global functions and objects of MLAB.
Definition: mlabGlobalScriptAccess.h:81
QObject * createMLBaseObject(const QString &baseClassName, const QVariantList &arguments=QVariantList())
Creates a new reference-counted ml::Base object, conveniently wrapped for scripting; which arguments ...

Member Function Documentation

◆ clear

void MLStandardTransformationProviderWrapper::clear ( )
slot

Clear all previously registered transformations.

◆ registerTransformation

void MLStandardTransformationProviderWrapper::registerTransformation ( const QVariantMap &  fromRef,
const QVariantMap &  toRef,
const MLAbstractTransformationWrapper transformation,
bool  setInverseToo 
)
slot

Register a new transformation between coordinate systems fromRef and toRef.

(For a description of these parameters see the class description of MLTransformationProviderWrapper).

Parameters
fromRefsource coordinate system.
toReftarget coordinate system.
transformationcan be None, in this case any previous transformation between fromRef and toRef will be removed.
setInverseTooif set, the transformation is also set in the counter direction, i.e. between toRef and fromRef (but only if transformation is not None and transformation.getInverse() returns a valid transformation, otherwise any previous transformation is just removed)