![]() |
anatomist 6.0.4
3D neuroimaging data viewer
|
Transformation between two referentials. More...
#include <anatomist/reference/Transformation.h>

Public Member Functions | |
| Transformation (Referential *, Referential *, bool regist=false, bool generated=false) | |
| Transformation (Referential *, Referential *, const Transformation &trans) | |
| Transformation () | |
| virtual | ~Transformation () |
| Unregister from the TransformSet and other objects. | |
| Transformation & | operator= (const Transformation &trans) |
| Operator = doesn't copy source / dest references. | |
| Transformation & | operator= (const aims::AffineTransformation3d &trans) |
| Transformation & | operator*= (const Transformation &trans) |
| Transformation | operator- () const |
| aims::AffineTransformation3d & | motion () |
| const aims::AffineTransformation3d & | motion () const |
| void | setRotation (float **r) |
| void | setTranslation (float *t) |
| void | setMatrix (float **m) |
| 4x4 matrix | |
| void | setMatrixT (float m[4][3]) |
| 4x3 matrix in Vip/Aims file form (1st line:translation) | |
| void | SetRotation (int, int, float) |
| Set the rotation. | |
| void | SetTranslation (int, float) |
| Set the translation. | |
| float | Rotation (int, int) |
| Get the rotation. | |
| aims::Quaternion | quaternion () const |
| void | setQuaternion (const aims::Quaternion &q) |
| float | Translation (int) |
| Get the translation. | |
| Point3df | translation () const |
| Referential * | source () const |
| Referential * | destination () const |
| void | invert () |
| Inverts the transformation matrix. | |
| void | invertReferentials () |
| Inverts source and destination referentials. | |
| bool | isDirect () const |
| true if the transformation is direct, false if it changes orientation | |
| Point3df | transform (const Point3df &pos) const |
| Transforms a point. | |
| void | transformBoundingBox (const Point3df &pmin1, const Point3df &pmax1, Point3df &pmin2, Point3df &pmax2) |
| void | registerTrans () |
| Registers the transformation to the TransformSet. | |
| void | unregisterTrans () |
| bool | isGenerated () const |
| void | setGenerated (bool x) |
| void | addMotionToHistory (const aims::AffineTransformation3d &) |
| Adds a new AffineTransformation3d to motion history. | |
| void | undo () |
| Undoes last motion. | |
| void | redo () |
| Redoes last motion. | |
| std::size_t | motionHistorySize () const |
| Returns the motion history size. | |
| int | motionHistoryIndex () const |
| Returns the current motion history index. | |
| void | notifyChange () |
Static Public Member Functions | |
| static Point3df | transform (const Point3df &pos, const Transformation *tra, const Point3df &voxSizeOrg, const Point3df &voxSizeDst) |
| Static transform function: with transformation, org and dest geometries. | |
| static Point3df | transform (const Point3df &pos, const Referential *orgRef, const Referential *dstRef, const Point3df &voxSizeOrg, const Point3df &voxSizeDst) |
| slower than above: must find the transformation (not inline) | |
| static Point3df | transform (const Point3df &pos, const Point3df &voxSizeOrg, const Point3df &voxSizeDst) |
| no transformation, only geometries | |
| static Point3df | transform (const Point3df &pos, const Transformation *tra, const Point3df &voxSizeDst) |
| transformation, dest geometry but no org geometry | |
| static Point3df | transform (const Point3df &pos, const Point3df &voxSizeOrg, const Transformation *tra) |
| transformation, org geometry but no dest geometry | |
| static Point3df | transform (const Point3df &pos, const Point3df &voxSizeOrg) |
| no transformation, no dest geometry but org geometry | |
| static Point3df | transformDG (const Point3df &pos, const Point3df &voxSizeDst) |
| no transformation, no org geometry but dest geometry. | |
Protected Attributes | |
| aims::AffineTransformation3d | _motion |
| Referential * | _source |
| Referential * | _dest |
| bool | _generated |
| std::vector< aims::AffineTransformation3d > | _motionHistory |
| int | _motionHistoryIndex |
Transformation between two referentials.
Actually linear transformations up to now, but could be extended. All transformations are registered and stored into the TransformSet singleton object
Definition at line 61 of file Transformation.h.
| anatomist::Transformation::Transformation | ( | Referential * | , |
| Referential * | , | ||
| bool | regist = false, | ||
| bool | generated = false ) |
Referenced by operator*=(), operator-(), operator=(), operator=(), transform(), transform(), transform(), transform(), and Transformation().
| anatomist::Transformation::Transformation | ( | Referential * | , |
| Referential * | , | ||
| const Transformation & | trans ) |
References Transformation().
| anatomist::Transformation::Transformation | ( | ) |
|
virtual |
Unregister from the TransformSet and other objects.
| void anatomist::Transformation::addMotionToHistory | ( | const aims::AffineTransformation3d & | ) |
Adds a new AffineTransformation3d to motion history.
|
inline |
Definition at line 99 of file Transformation.h.
References _dest.
| void anatomist::Transformation::invert | ( | ) |
Inverts the transformation matrix.
| void anatomist::Transformation::invertReferentials | ( | ) |
Inverts source and destination referentials.
| bool anatomist::Transformation::isDirect | ( | ) | const |
true if the transformation is direct, false if it changes orientation
|
inline |
Definition at line 117 of file Transformation.h.
References _generated.
|
inline |
Definition at line 78 of file Transformation.h.
References _motion.
|
inline |
Definition at line 79 of file Transformation.h.
References _motion.
|
inline |
Returns the current motion history index.
Definition at line 132 of file Transformation.h.
References _motionHistoryIndex.
|
inline |
Returns the motion history size.
Definition at line 127 of file Transformation.h.
References _motionHistory.
| void anatomist::Transformation::notifyChange | ( | ) |
| Transformation & anatomist::Transformation::operator*= | ( | const Transformation & | trans | ) |
References Transformation().
| Transformation anatomist::Transformation::operator- | ( | ) | const |
References Transformation().
| Transformation & anatomist::Transformation::operator= | ( | const aims::AffineTransformation3d & | trans | ) |
References Transformation().
| Transformation & anatomist::Transformation::operator= | ( | const Transformation & | trans | ) |
Operator = doesn't copy source / dest references.
References Transformation().
| aims::Quaternion anatomist::Transformation::quaternion | ( | ) | const |
| void anatomist::Transformation::redo | ( | ) |
Redoes last motion.
| void anatomist::Transformation::registerTrans | ( | ) |
Registers the transformation to the TransformSet.
| float anatomist::Transformation::Rotation | ( | int | , |
| int | ) |
Get the rotation.
|
inline |
Definition at line 118 of file Transformation.h.
References _generated.
| void anatomist::Transformation::setMatrix | ( | float ** | m | ) |
4x4 matrix
| void anatomist::Transformation::setMatrixT | ( | float | m[4][3] | ) |
4x3 matrix in Vip/Aims file form (1st line:translation)
| void anatomist::Transformation::setQuaternion | ( | const aims::Quaternion & | q | ) |
| void anatomist::Transformation::SetRotation | ( | int | , |
| int | , | ||
| float | ) |
Set the rotation.
| void anatomist::Transformation::setRotation | ( | float ** | r | ) |
| void anatomist::Transformation::SetTranslation | ( | int | , |
| float | ) |
Set the translation.
| void anatomist::Transformation::setTranslation | ( | float * | t | ) |
|
inline |
Definition at line 98 of file Transformation.h.
References _source.
Transforms a point.
Referenced by transform(), transform(), and transform().
|
inlinestatic |
no transformation, no dest geometry but org geometry
Definition at line 229 of file Transformation.h.
|
inlinestatic |
no transformation, only geometries
Definition at line 198 of file Transformation.h.
|
inlinestatic |
transformation, org geometry but no dest geometry
Definition at line 209 of file Transformation.h.
References transform(), and Transformation().
|
static |
slower than above: must find the transformation (not inline)
References Transformation().
|
inlinestatic |
transformation, dest geometry but no org geometry
Definition at line 219 of file Transformation.h.
References transform(), and Transformation().
|
inlinestatic |
Static transform function: with transformation, org and dest geometries.
These functions are designed to help various situations of transformations and geometry changes. They are as fast as possible (inline, direct, with the fewest required data copying and temporary variables)
Definition at line 185 of file Transformation.h.
References transform(), and Transformation().
| void anatomist::Transformation::transformBoundingBox | ( | const Point3df & | pmin1, |
| const Point3df & | pmax1, | ||
| Point3df & | pmin2, | ||
| Point3df & | pmax2 ) |
|
inlinestatic |
no transformation, no org geometry but dest geometry.
The function name changes here to differ from the one above
Definition at line 238 of file Transformation.h.
| float anatomist::Transformation::Translation | ( | int | ) |
Get the translation.
|
inline |
Definition at line 246 of file Transformation.h.
References _motion.
| void anatomist::Transformation::undo | ( | ) |
Undoes last motion.
| void anatomist::Transformation::unregisterTrans | ( | ) |
|
protected |
Definition at line 174 of file Transformation.h.
Referenced by destination().
|
protected |
Definition at line 175 of file Transformation.h.
Referenced by isGenerated(), and setGenerated().
|
protected |
Definition at line 172 of file Transformation.h.
Referenced by motion(), motion(), and translation().
|
protected |
Definition at line 176 of file Transformation.h.
Referenced by motionHistorySize().
|
protected |
Definition at line 177 of file Transformation.h.
Referenced by motionHistoryIndex().
|
protected |
Definition at line 173 of file Transformation.h.
Referenced by source().