![]() |
aimsdata 6.0.20
Neuroimaging data handling
|
Container for a composition of multiple transformations. More...
#include <aims/transformation/transformation_chain.h>


Public Types | |
| typedef std::list< carto::const_ref< Transformation3d > > | ListType |
| typedef ListType::iterator | iterator |
| typedef ListType::const_iterator | const_iterator |
| Public Types inherited from carto::RCObject | |
| typedef int | RefCounterType |
Public Member Functions | |
| TransformationChain3d () | |
| virtual | ~TransformationChain3d () |
| void | push_back (const carto::const_ref< Transformation3d > &transformation) |
| Add a transformation to the back of the list (applied last). | |
| void | pop_back () |
| Remove the last transformation from the list. | |
| void | push_front (const carto::const_ref< Transformation3d > &transformation) |
| Add a transformation to the front of the list (applied first). | |
| void | pop_front () |
| Remove the first transformation from the list. | |
| size_t | size () const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| bool | isIdentity () const CARTO_OVERRIDE |
| bool | invertible () const CARTO_OVERRIDE |
| std::unique_ptr< soma::Transformation > | getInverse () const CARTO_OVERRIDE |
| bool | isDirect () const override |
| carto::const_ref< soma::Transformation3d > | simplify (bool allow_ffd=false) const |
| Compute a simpler transformation that is equivalent to the chain. | |
| Public Member Functions inherited from soma::Transformation3d | |
| 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 |
| Point3di | transform (const Point3di &p) const |
| Point3di | transform (int x, int y, int z) const |
| 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 |
| 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 soma::Transformation | |
| virtual | ~Transformation () |
| virtual Transformation & | operator= (const Transformation &other) |
| carto::Object | header () |
| const carto::Object | header () const |
| void | setHeader (carto::Object ph) |
| Public Member Functions inherited from carto::RCObject | |
| RCObject () | |
| RCObject (const RCObject &) | |
| RCObject & | operator= (const RCObject &) |
| virtual | ~RCObject () |
Protected Types | |
| typedef carto::const_ref< soma::Transformation3d >(*) | FFDChainReductorMethod(const carto::rc_ptr< TransformationChain3d > &) |
Protected Member Functions | |
| Point3dd | transformDouble (double x, double y, double z) const CARTO_OVERRIDE |
| Point3df | transformFloat (float x, float y, float z) const CARTO_OVERRIDE |
| Point3dd | transformPoint3dd (const Point3dd &pos) const CARTO_OVERRIDE |
| Point3df | transformPoint3df (const Point3df &dir) const CARTO_OVERRIDE |
| void | setReferentialsInHeader () |
| Protected Member Functions inherited from soma::Transformation3d | |
| Transformation3d () | |
| virtual Point3d | transformPoint3d (const Point3d &p) const |
| virtual Point3di | transformPoint3di (const Point3di &p) const |
| virtual Point3di | transformInt (int x, int y, int z) const |
| Protected Member Functions inherited from soma::Transformation | |
| Transformation () | |
Static Protected Member Functions | |
| static void | registerFFDReductor (FFDChainReductorMethod method) |
| Static Protected Member Functions inherited from carto::DefaultRefConstruction | |
| static const T * | release (const_ref< T > *) |
Protected Attributes | |
| ListType | _transformations |
| Protected Attributes inherited from soma::Transformation | |
| carto::Object | _header |
Static Protected Attributes | |
| static FFDChainReductorMethod | _reductorMethod |
Friends | |
| class | aims::FFDChainReductor |
Additional Inherited Members | |
| Static Public Member Functions inherited from soma::Transformation | |
| static std::vector< T > | vadd (const std::vector< T > &v1, const std::vector< T > &v2) |
| static std::vector< T > | vsub (const std::vector< T > &v1, const std::vector< T > &v2) |
| static std::vector< T > | vadd (const std::vector< T > &v1, const T &v2) |
| static std::vector< T > | vsub (const std::vector< T > &v1, const T &v2) |
| static std::vector< T > | vadd (const T &v1, const std::vector< T > &v2) |
| static std::vector< T > | vsub (const T &v1, const std::vector< T > &v2) |
Container for a composition of multiple transformations.
This container holds a list of transformations, and acts as the composition of all transformations. Transformations are composed from the front to the back of the list:
Definition at line 69 of file transformation_chain.h.
| typedef ListType::const_iterator aims::TransformationChain3d::const_iterator |
Definition at line 74 of file transformation_chain.h.
|
protected |
Definition at line 137 of file transformation_chain.h.
| typedef ListType::iterator aims::TransformationChain3d::iterator |
Definition at line 73 of file transformation_chain.h.
| typedef std::list<carto::const_ref<Transformation3d> > aims::TransformationChain3d::ListType |
Definition at line 72 of file transformation_chain.h.
| aims::TransformationChain3d::TransformationChain3d | ( | ) |
|
virtual |
|
inline |
Definition at line 88 of file transformation_chain.h.
References _transformations.
|
inline |
Definition at line 89 of file transformation_chain.h.
References _transformations.
|
inline |
Definition at line 90 of file transformation_chain.h.
References _transformations.
|
inline |
Definition at line 91 of file transformation_chain.h.
References _transformations.
|
virtual |
Reimplemented from soma::Transformation.
References getInverse(), and soma::Transformation::Transformation().
Referenced by getInverse().
|
virtual |
|
overridevirtual |
Implements soma::Transformation.
References carto::RCObject::const_ref, isDirect(), and soma::Transformation3d::Transformation3d().
Referenced by isDirect().
|
virtual |
Reimplemented from soma::Transformation.
| void aims::TransformationChain3d::pop_back | ( | ) |
Remove the last transformation from the list.
| void aims::TransformationChain3d::pop_front | ( | ) |
Remove the first transformation from the list.
| void aims::TransformationChain3d::push_back | ( | const carto::const_ref< Transformation3d > & | transformation | ) |
Add a transformation to the back of the list (applied last).
| void aims::TransformationChain3d::push_front | ( | const carto::const_ref< Transformation3d > & | transformation | ) |
Add a transformation to the front of the list (applied first).
|
staticprotected |
References registerFFDReductor(), and soma::Transformation3d::Transformation3d().
Referenced by registerFFDReductor().
|
protected |
References setReferentialsInHeader().
Referenced by setReferentialsInHeader().
| carto::const_ref< soma::Transformation3d > aims::TransformationChain3d::simplify | ( | bool | allow_ffd = false | ) | const |
Compute a simpler transformation that is equivalent to the chain.
The transformation chain is simplified by applying the following rules, so that it should provide equivalent results to the original chain, up to numerical precision:
No deep copy is made, so the result can contain pointers to the same transformations as the original chain.
If the parameter allow_ffd is set to true, and if the chain contains at least a FFD deformation field, then the whole chain is reduced to a single FFD field, with the resolution of the first one found in the chain.
References simplify().
Referenced by simplify().
| size_t aims::TransformationChain3d::size | ( | ) | const |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from soma::Transformation3d.
References transformFloat().
Referenced by transformFloat().
|
protectedvirtual |
Reimplemented from soma::Transformation3d.
References transformPoint3dd().
Referenced by transformPoint3dd().
|
protectedvirtual |
Reimplemented from soma::Transformation3d.
References transformPoint3df().
Referenced by transformPoint3df().
|
friend |
Definition at line 134 of file transformation_chain.h.
References aims::FFDChainReductor.
Referenced by aims::FFDChainReductor.
|
staticprotected |
Definition at line 141 of file transformation_chain.h.
|
protected |