ITK  4.1.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
itk::Statistics::PointSetToListSampleAdaptor< TPointSet > Class Template Reference

#include <itkPointSetToListSampleAdaptor.h>

+ Inheritance diagram for itk::Statistics::PointSetToListSampleAdaptor< TPointSet >:
+ Collaboration diagram for itk::Statistics::PointSetToListSampleAdaptor< TPointSet >:

List of all members.

Classes

class  ConstIterator
class  Iterator

Public Types

typedef
Superclass::AbsoluteFrequencyType 
AbsoluteFrequencyType
typedef SmartPointer< const SelfConstPointer
typedef
Superclass::InstanceIdentifier 
InstanceIdentifier
typedef Superclass::MeasurementType MeasurementType
typedef
Superclass::MeasurementVectorSizeType 
MeasurementVectorSizeType
typedef
Superclass::MeasurementVectorType 
MeasurementVectorType
typedef SmartPointer< SelfPointer
typedef TPointSet::PointsContainer PointsContainer
typedef
TPointSet::PointsContainerConstIterator 
PointsContainerConstIteratorType
typedef
TPointSet::PointsContainerConstPointer 
PointsContainerConstPointer
typedef
TPointSet::PointsContainerIterator 
PointsContainerIteratorType
typedef
TPointSet::PointsContainerPointer 
PointsContainerPointer
typedef TPointSet::ConstPointer PointSetConstPointer
typedef TPointSet::Pointer PointSetPointer
typedef TPointSet PointSetType
typedef TPointSet::PointType PointType
typedef PointSetToListSampleAdaptor Self
typedef ListSample< typename
TPointSet::PointType > 
Superclass
typedef
Superclass::TotalAbsoluteFrequencyType 
TotalAbsoluteFrequencyType
typedef MeasurementVectorType ValueType

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
AbsoluteFrequencyType GetFrequency (InstanceIdentifier id) const
const MeasurementVectorTypeGetMeasurementVector (InstanceIdentifier id) const
virtual const char * GetNameOfClass () const
const TPointSet * GetPointSet ()
TotalAbsoluteFrequencyType GetTotalFrequency () const
void SetPointSet (const TPointSet *pointSet)
InstanceIdentifier Size () const

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int MeasurementVectorSize = TPointSet::PointDimension
PointSetConstPointer m_PointSet
PointsContainerConstPointer m_PointsContainer
PointType m_TempPoint
Iterator Begin ()
Iterator End ()
ConstIterator Begin () const
ConstIterator End () const
 PointSetToListSampleAdaptor ()
virtual ~PointSetToListSampleAdaptor ()
void PrintSelf (std::ostream &os, Indent indent) const
 PointSetToListSampleAdaptor (const Self &)
void operator= (const Self &)

Detailed Description

template<class TPointSet>
class itk::Statistics::PointSetToListSampleAdaptor< TPointSet >

This class provides ListSample interface to ITK PointSet.

After calling SetPointSet(PointSet*) method to plug-in the PointSet object, users can use Sample interfaces to access PointSet data. This adaptor assumes that the PointsContainer is actual storage for measurment vectors. In other words, PointSet's dimension equals to the measurement vectors size. This class totally ignores PointsDataContainer.

See also:
Sample, ListSample, PointSet

Definition at line 46 of file itkPointSetToListSampleAdaptor.h.


Member Typedef Documentation

Frequency value type

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 81 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef SmartPointer< const Self > itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::ConstPointer

InstanceIdentifier typedef. This identifier is a unique sequential id for each measurement vector in a Sample subclass.

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 84 of file itkPointSetToListSampleAdaptor.h.

Superclass typedefs for Measurement vector, measurement, Instance Identifier, frequency, size, size element value

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 79 of file itkPointSetToListSampleAdaptor.h.

Typedef for the length of each measurement vector

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 83 of file itkPointSetToListSampleAdaptor.h.

Typedefs inherited from the superclass

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 80 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef SmartPointer< Self > itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Pointer
template<class TPointSet >
typedef TPointSet::PointsContainer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainer

Definition at line 70 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef TPointSet::PointsContainerConstIterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainerConstIteratorType

Definition at line 74 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef TPointSet::PointsContainerConstPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainerConstPointer

Definition at line 72 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef TPointSet::PointsContainerIterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainerIteratorType

Definition at line 73 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef TPointSet::PointsContainerPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainerPointer

Definition at line 71 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef TPointSet::ConstPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointSetConstPointer

Definition at line 69 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef TPointSet::Pointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointSetPointer

Definition at line 68 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef TPointSet itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointSetType

PointSet typedefs

Definition at line 67 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef TPointSet::PointType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointType

Definition at line 75 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef PointSetToListSampleAdaptor itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Self

Standard class typedefs

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 51 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef ListSample< typename TPointSet::PointType > itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Superclass

Total frequency type

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 82 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
typedef MeasurementVectorType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::ValueType

Value type of a measurement (component of the measurement vector)

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 86 of file itkPointSetToListSampleAdaptor.h.


Constructor & Destructor Documentation

template<class TPointSet >
itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointSetToListSampleAdaptor ( ) [protected]

the PointSet data source pointer

template<class TPointSet >
virtual itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::~PointSetToListSampleAdaptor ( ) [inline, protected, virtual]

the PointSet data source pointer

Definition at line 260 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointSetToListSampleAdaptor ( const Self ) [private]

the PointSet data source pointer


Member Function Documentation

template<class TPointSet >
Iterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Begin ( void  ) [inline]

returns an iterator that points to the beginning of the container

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 220 of file itkPointSetToListSampleAdaptor.h.

Referenced by itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::ConstIterator::ConstIterator().

template<class TPointSet >
ConstIterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Begin ( void  ) const [inline]

returns an iterator that points to the beginning of the container

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 242 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
virtual::itk::LightObject::Pointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

template<class TPointSet >
Iterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::End ( void  ) [inline]

returns an iterator that points to the end of the container

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 231 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
ConstIterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::End ( void  ) const [inline]

returns an iterator that points to the end of the container

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

Definition at line 250 of file itkPointSetToListSampleAdaptor.h.

returns 1 as other subclasses of ListSampleBase does

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

returns the measurement vector that is specified by the instance identifier argument.

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

template<class TPointSet >
virtual const char* itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

template<class TPointSet >
const TPointSet* itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetPointSet ( )

Method to get the point set

template<class TPointSet >
TotalAbsoluteFrequencyType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetTotalFrequency ( ) const [virtual]

returns the size of this container

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

template<class TPointSet >
static Pointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

template<class TPointSet >
void itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::operator= ( const Self ) [private]

the PointSet data source pointer

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

template<class TPointSet >
void itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

the PointSet data source pointer

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

template<class TPointSet >
void itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::SetPointSet ( const TPointSet *  pointSet)

Method to set the point set

template<class TPointSet >
InstanceIdentifier itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Size ( ) const [virtual]

returns the number of measurement vectors in this container

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.


Member Data Documentation

the points container which will be actually used for storing measurement vectors

Definition at line 272 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
PointSetConstPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::m_PointSet [private]

the PointSet data source pointer

Definition at line 268 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
PointType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::m_TempPoint [mutable, private]

temporary points for conversions

Definition at line 275 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
const unsigned int itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::MeasurementVectorSize = TPointSet::PointDimension [static]

the number of components in a measurement vector

Definition at line 64 of file itkPointSetToListSampleAdaptor.h.


The documentation for this class was generated from the following file: