Public Types | Public Member Functions | Private Attributes

cmtk::XformList Class Reference
[cmtkBase Library]

A transformation list. More...

#include <cmtkXformList.h>

Inheritance diagram for cmtk::XformList:
Inheritance graph
[legend]
Collaboration diagram for cmtk::XformList:
Collaboration graph
[legend]

List of all members.

Public Types

typedef XformList Self
 This class.
typedef SmartPointer< SelfSmartPtr
 Smart pointer.
typedef SmartConstPointer< SelfSmartConstPtr
 Smart pointer to const.

Public Member Functions

 XformList (const Types::Coordinate epsilon=0.0)
 Constructor.
void SetEpsilon (const Types::Coordinate epsilon)
 Set epsilon.
void Add (const Xform::SmartConstPtr &xform, const bool inverse=false, const Types::Coordinate globalScale=1.0)
 Add a transformation the the end of the list, i.e., to be applied after the current list of transformations.
void AddToFront (const Xform::SmartConstPtr &xform, const bool inverse=false, const Types::Coordinate globalScale=1.0)
 Add a transformation the the end of the list, i.e., to be applied before the current list of transformations.
bool ApplyInPlace (Xform::SpaceVectorType &v) const
 Apply a sequence of (inverse) transformations.
bool GetJacobian (const Xform::SpaceVectorType &v, Types::DataItem &jacobian, const bool correctGlobalScale=true) const
 Get the Jacobian determinant of a sequence of transformations.
bool AllAffine () const
 Is this transformation list all affine?
Self MakeAllAffine () const
 Make all-affine copy of this transformation list.

Private Attributes

Types::Coordinate m_Epsilon
 Error threshold for inverse approximation.

Detailed Description

A transformation list.

Definition at line 51 of file cmtkXformList.h.


Member Typedef Documentation

This class.

Definition at line 61 of file cmtkXformList.h.

Smart pointer to const.

Definition at line 67 of file cmtkXformList.h.

Smart pointer.

Definition at line 64 of file cmtkXformList.h.


Constructor & Destructor Documentation

cmtk::XformList::XformList ( const Types::Coordinate  epsilon = 0.0 ) [inline]

Constructor.

Definition at line 70 of file cmtkXformList.h.


Member Function Documentation

void cmtk::XformList::Add ( const Xform::SmartConstPtr xform,
const bool  inverse = false,
const Types::Coordinate  globalScale = 1.0 
)

Add a transformation the the end of the list, i.e., to be applied after the current list of transformations.

Definition at line 37 of file cmtkXformList.cxx.

Referenced by cmtk::XformListIO::MakeFromStringList().

void cmtk::XformList::AddToFront ( const Xform::SmartConstPtr xform,
const bool  inverse = false,
const Types::Coordinate  globalScale = 1.0 
)

Add a transformation the the end of the list, i.e., to be applied before the current list of transformations.

Definition at line 44 of file cmtkXformList.cxx.

bool cmtk::XformList::AllAffine (  ) const

Is this transformation list all affine?

Definition at line 137 of file cmtkXformList.cxx.

bool cmtk::XformList::ApplyInPlace ( Xform::SpaceVectorType v ) const

Apply a sequence of (inverse) transformations.

Definition at line 50 of file cmtkXformList.cxx.

Referenced by cmtk::ReformatVolume::ReformatMasked(), and cmtk::ReformatVolume::ReformatUnmasked().

bool cmtk::XformList::GetJacobian ( const Xform::SpaceVectorType v,
Types::DataItem jacobian,
const bool  correctGlobalScale = true 
) const

Get the Jacobian determinant of a sequence of transformations.

Definition at line 88 of file cmtkXformList.cxx.

Referenced by cmtk::ReformatVolume::Jacobian::operator()().

cmtk::XformList cmtk::XformList::MakeAllAffine (  ) const

Make all-affine copy of this transformation list.

Definition at line 148 of file cmtkXformList.cxx.

void cmtk::XformList::SetEpsilon ( const Types::Coordinate  epsilon ) [inline]

Set epsilon.

Definition at line 73 of file cmtkXformList.h.


Member Data Documentation

Error threshold for inverse approximation.

Definition at line 57 of file cmtkXformList.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines