soma-io
5.0.5
|
Polymorphic base class for spatial transformations in 3D. More...
#include <soma-io/transformation/transformation.h>
Public Member Functions | |
virtual | ~Transformation3d () |
Point3dd | transform (double x, double y, double z) const |
Point3dd | transform (const Point3dd &pos) const |
Point3df | transform (const Point3df &dir) const |
Point3df | transform (float x, float y, float z) const |
Point3d | transform (const Point3d &p) const |
virtual bool | invertible () const |
Test if the transformation can be inverted. More... | |
virtual std::unique_ptr< Transformation3d > | getInverse () const |
Obtain the inverse transformation. More... | |
Public Member Functions inherited from soma::Transformation | |
virtual | ~Transformation () |
virtual bool | isIdentity () const |
Test if the transformation can safely be omitted. More... | |
Public Member Functions inherited from carto::RCObject | |
RCObject () | |
RCObject (const RCObject &) | |
RCObject & | operator= (const RCObject &) |
virtual | ~RCObject () |
Protected Member Functions | |
Transformation3d () | |
virtual Point3dd | transformDouble (double x, double y, double z) const =0 |
virtual Point3dd | transformPoint3dd (const Point3dd &pos) const |
virtual Point3df | transformPoint3df (const Point3df &dir) const |
virtual Point3d | transformPoint3d (const Point3d &p) const |
virtual Point3df | transformFloat (float x, float y, float z) const |
Protected Member Functions inherited from soma::Transformation | |
Transformation () | |
Additional Inherited Members | |
Public Types inherited from carto::RCObject | |
typedef int | RefCounterType |
Polymorphic base class for spatial transformations in 3D.
Definition at line 80 of file transformation.h.
|
virtual |
|
inlineprotected |
Definition at line 110 of file transformation.h.
|
inlinevirtual |
Obtain the inverse transformation.
This method should only be called if invertible() returns true. Otherwise, it will throw an exception if the transformation is not actually invertible.
Reimplemented in soma::AffineTransformation3dBase.
Definition at line 105 of file transformation.h.
|
inlinevirtual |
Test if the transformation can be inverted.
getInverse() can be called if this method returns true, in order to obtain the inverse transformation.
Reimplemented in soma::AffineTransformation3dBase.
Definition at line 96 of file transformation.h.
|
inline |
Definition at line 123 of file transformation.h.
Definition at line 143 of file transformation.h.
Definition at line 136 of file transformation.h.
|
inline |
Definition at line 130 of file transformation.h.
Definition at line 150 of file transformation.h.
|
protectedpure virtual |
Implemented in soma::AffineTransformation3dBase.
|
inlineprotectedvirtual |
Reimplemented in soma::AffineTransformation3dBase.
Definition at line 174 of file transformation.h.
Definition at line 182 of file transformation.h.
|
inlineprotectedvirtual |
Definition at line 167 of file transformation.h.
|
inlineprotectedvirtual |
Definition at line 157 of file transformation.h.