soma-io
5.1.2
|
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... | |
![]() | |
virtual | ~Transformation () |
virtual bool | isIdentity () const |
Test if the transformation can safely be omitted. More... | |
carto::Object | header () |
const carto::Object | header () const |
void | setHeader (carto::Object ph) |
![]() | |
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 |
![]() | |
Transformation () | |
Additional Inherited Members | |
![]() | |
typedef int | RefCounterType |
![]() | |
carto::Object | _header |
Polymorphic base class for spatial transformations in 3D.
Definition at line 91 of file transformation.h.
|
virtual |
|
inlineprotected |
Definition at line 121 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 116 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 107 of file transformation.h.
Definition at line 161 of file transformation.h.
References transformPoint3d().
Definition at line 154 of file transformation.h.
References transformPoint3dd().
Definition at line 147 of file transformation.h.
References transformPoint3df().
|
inline |
Definition at line 134 of file transformation.h.
References transformDouble().
Referenced by transformFloat(), transformPoint3d(), transformPoint3dd(), and transformPoint3df().
|
inline |
Definition at line 141 of file transformation.h.
References transformFloat().
|
protectedpure virtual |
Implemented in soma::AffineTransformation3dBase.
Referenced by transform().
|
inlineprotectedvirtual |
Reimplemented in soma::AffineTransformation3dBase.
Definition at line 185 of file transformation.h.
References transform().
Referenced by transform().