Polymorphic base class for spatial transformations.
In Soma-IO 5.1 (2022) the header() has beed added in the base Transformation class, whereas it used to be only in Aims AffineTransformation3d. Now all transformations variants have a header.
Definition at line 57 of file transformation.h.
virtual bool soma::Transformation::isIdentity |
( |
| ) |
const |
|
inlinevirtual |
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).
- Note
- {Implementors of derived classes may choose to always return false if a test would be difficult to implement or expensive to run. As a result, a false result does not guarantee in general that the transformation is different from identity.}
Reimplemented in soma::AffineTransformation3dBase.
Definition at line 73 of file transformation.h.