|
soma-io 6.0.6
|
#include <soma-io/transformation/affinetransformation3d_base.h>


Classes | |
| class | Table |
Public Member Functions | |
| AffineTransformationBase (int order=3) | |
| AffineTransformationBase (const AffineTransformationBase &other) | |
| AffineTransformationBase (const std::vector< float > &mat) | |
| Create a AffineTransformation3d from a matrix given as a line vector. | |
| AffineTransformationBase (const carto::Object mat) | |
| Create a AffineTransformation from a NxN matrix given as a line vector in an Object. | |
| virtual | ~AffineTransformationBase () |
| virtual AffineTransformationBase & | operator= (const AffineTransformationBase &other) |
| virtual AffineTransformationBase & | operator= (const std::vector< float > &mat) |
| virtual AffineTransformationBase & | operator= (const carto::Object mat) |
| virtual bool | operator== (const AffineTransformationBase &) const |
| AffineTransformationBase & | operator*= (const AffineTransformationBase &trans) |
| AffineTransformationBase | operator- () const |
| void | negate () |
| bool | isIdentity () const CARTO_OVERRIDE |
| Test if the transformation can safely be omitted. | |
| virtual void | setToIdentity () |
| bool | isDirect () const override |
| true if the transformation is direct, false if it changes orientation | |
| bool | invertible () const CARTO_OVERRIDE |
| Test if the transformation can be inverted. | |
| std::unique_ptr< AffineTransformationBase > | inverse () const |
| std::unique_ptr< Transformation > | getInverse () const CARTO_OVERRIDE |
| Obtain the inverse transformation. | |
| int | order () const |
| virtual void | extendOrder (unsigned n) |
| virtual void | squeezeOrder (unsigned n, bool check=true, bool notify_fail=true) |
| virtual std::vector< double > | transform (const std::vector< double > &pos) const |
| virtual std::vector< float > | transform (const std::vector< float > &pos) const |
| virtual std::vector< int > | transform (const std::vector< int > &pos) const |
| Table< float > & | matrix () |
| const Table< float > & | matrix () const |
| std::vector< float > | toVector () const |
| conversions and IO) | |
| std::vector< float > | toColumnVector () const |
| transform AffineTransformation3d to a column vector (useful for conversions to OpenGL matrices) | |
| void | fromColumnVector (const std::vector< float > &vec) |
| transform a column vector to an AffineTransformation3d (useful for conversions from OpenGL matrices) | |
| void | fromColumnVector (const float *vec, unsigned size) |
| transform a column vector to an AffineTransformation3d (useful for conversions from OpenGL matrices) | |
Public Member Functions inherited from soma::Transformation | |
| virtual | ~Transformation () |
| virtual Transformation & | operator= (const Transformation &other) |
| carto::Object | header () |
| const carto::Object | header () const |
| void | setHeader (carto::Object ph) |
| virtual std::vector< double > | transformVector (const std::vector< double > &pos) const |
| virtual std::vector< float > | transformVector (const std::vector< float > &pos) const |
| virtual std::vector< int > | transformVector (const std::vector< int > &pos) const |
Public Member Functions inherited from carto::RCObject | |
| RCObject () | |
| RCObject (const RCObject &) | |
| RCObject & | operator= (const RCObject &) |
| virtual | ~RCObject () |
Static Public Attributes | |
| static float | epsilon |
| used to test equality on elements | |
Protected Attributes | |
| Table< float > | _matrix |
Protected Attributes inherited from soma::Transformation | |
| carto::Object | _header |
Additional Inherited Members | |
Public Types inherited from carto::RCObject | |
| typedef int | RefCounterType |
Static Public Member Functions inherited from soma::Transformation | |
| template<typename T> | |
| static std::vector< T > | vadd (const std::vector< T > &v1, const std::vector< T > &v2) |
| vector arithmetics, as convenience static functions | |
| template<typename T> | |
| static std::vector< T > | vsub (const std::vector< T > &v1, const std::vector< T > &v2) |
| vector arithmetics, as convenience static functions | |
| template<typename T> | |
| static std::vector< T > | vadd (const std::vector< T > &v1, const T &v2) |
| vector arithmetics, as convenience static functions | |
| template<typename T> | |
| static std::vector< T > | vsub (const std::vector< T > &v1, const T &v2) |
| vector arithmetics, as convenience static functions | |
| template<typename T> | |
| static std::vector< T > | vadd (const T &v1, const std::vector< T > &v2) |
| vector arithmetics, as convenience static functions | |
| template<typename T> | |
| static std::vector< T > | vsub (const T &v1, const std::vector< T > &v2) |
| vector arithmetics, as convenience static functions | |
Protected Member Functions inherited from soma::Transformation | |
| Transformation () | |
Definition at line 47 of file affinetransformation3d_base.h.
| soma::AffineTransformationBase::AffineTransformationBase | ( | int | order = 3 | ) |
References order().
Referenced by AffineTransformationBase(), inverse(), operator*=(), operator-(), operator=(), operator=(), operator=(), and operator==().
| soma::AffineTransformationBase::AffineTransformationBase | ( | const AffineTransformationBase & | other | ) |
References AffineTransformationBase().
| soma::AffineTransformationBase::AffineTransformationBase | ( | const std::vector< float > & | mat | ) |
Create a AffineTransformation3d from a matrix given as a line vector.
| soma::AffineTransformationBase::AffineTransformationBase | ( | const carto::Object | mat | ) |
Create a AffineTransformation from a NxN matrix given as a line vector in an Object.
|
virtual |
|
virtual |
Reimplemented in soma::AffineTransformation3dBase.
| void soma::AffineTransformationBase::fromColumnVector | ( | const float * | vec, |
| unsigned | size ) |
transform a column vector to an AffineTransformation3d (useful for conversions from OpenGL matrices)
|
inline |
transform a column vector to an AffineTransformation3d (useful for conversions from OpenGL matrices)
Definition at line 143 of file affinetransformation3d_base.h.
References fromColumnVector().
Referenced by fromColumnVector().
|
virtual |
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 from soma::Transformation.
References getInverse(), and soma::Transformation::Transformation().
Referenced by getInverse().
| std::unique_ptr< AffineTransformationBase > soma::AffineTransformationBase::inverse | ( | ) | const |
References AffineTransformationBase(), and inverse().
Referenced by inverse().
|
virtual |
Test if the transformation can be inverted.
getInverse() can be called if this method returns true, in order to obtain the inverse transformation.
Reimplemented from soma::Transformation.
References invertible().
Referenced by invertible().
|
overridevirtual |
true if the transformation is direct, false if it changes orientation
Implements soma::Transformation.
References isDirect().
Referenced by isDirect().
|
virtual |
Test if the transformation can safely be omitted.
This method returns true only if the transformation behaves exactly like an identity transformation (notably, the transform methods will always return the input coordinates unchanged).
Reimplemented from soma::Transformation.
|
inline |
Definition at line 133 of file affinetransformation3d_base.h.
References _matrix.
|
inline |
Definition at line 134 of file affinetransformation3d_base.h.
References _matrix.
| void soma::AffineTransformationBase::negate | ( | ) |
| AffineTransformationBase & soma::AffineTransformationBase::operator*= | ( | const AffineTransformationBase & | trans | ) |
References AffineTransformationBase().
| AffineTransformationBase soma::AffineTransformationBase::operator- | ( | ) | const |
References AffineTransformationBase().
|
virtual |
References AffineTransformationBase().
|
virtual |
Reimplemented in soma::AffineTransformation3dBase.
References AffineTransformationBase().
|
virtual |
Reimplemented in soma::AffineTransformation3dBase.
References AffineTransformationBase().
|
virtual |
References AffineTransformationBase().
|
inline |
Definition at line 120 of file affinetransformation3d_base.h.
References _matrix, and order().
Referenced by AffineTransformationBase(), and order().
|
virtual |
Reimplemented in soma::AffineTransformation3dBase.
References setToIdentity().
Referenced by setToIdentity().
|
virtual |
| std::vector< float > soma::AffineTransformationBase::toColumnVector | ( | ) | const |
transform AffineTransformation3d to a column vector (useful for conversions to OpenGL matrices)
| std::vector< float > soma::AffineTransformationBase::toVector | ( | ) | const |
conversions and IO)
|
virtual |
Implements soma::Transformation.
Reimplemented in soma::AffineTransformation3dBase.
Referenced by soma::AffineTransformation3dBase::transform().
|
inlinevirtual |
Reimplemented from soma::Transformation.
Reimplemented in soma::AffineTransformation3dBase.
Definition at line 128 of file affinetransformation3d_base.h.
References soma::Transformation::transform().
|
inlinevirtual |
Reimplemented from soma::Transformation.
Reimplemented in soma::AffineTransformation3dBase.
Definition at line 130 of file affinetransformation3d_base.h.
References soma::Transformation::transform().
|
protected |
Definition at line 158 of file affinetransformation3d_base.h.
|
static |
used to test equality on elements
Definition at line 152 of file affinetransformation3d_base.h.