ITK  4.2.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 Types inherited from itk::Statistics::ListSample< TPointSet::PointType >
typedef std::vector
< MeasurementVectorType
InternalDataContainerType
- Public Types inherited from itk::Statistics::Sample< TPointSet::PointType >
- Public Types inherited from itk::DataObject
typedef std::string DataObjectIdentifierType
typedef std::vector< Pointer >
::size_type 
DataObjectPointerArraySizeType
- Public Types inherited from itk::Object
- Public Types inherited from itk::LightObject

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
- Public Member Functions inherited from itk::Statistics::ListSample< TPointSet::PointType >
void Clear ()
virtual void Graft (const DataObject *thatObject)
void PushBack (const MeasurementVectorType &mv)
void Resize (InstanceIdentifier newsize)
void SetMeasurement (InstanceIdentifier id, unsigned int dim, const MeasurementType &value)
void SetMeasurementVector (InstanceIdentifier id, const MeasurementVectorType &mv)
- Public Member Functions inherited from itk::Statistics::Sample< TPointSet::PointType >
virtual AbsoluteFrequencyType GetFrequency (InstanceIdentifier id) const =0
virtual const
MeasurementVectorType
GetMeasurementVector (InstanceIdentifier id) const =0
virtual MeasurementVectorSizeType GetMeasurementVectorSize () const
virtual void SetMeasurementVectorSize (MeasurementVectorSizeType s)
- Public Member Functions inherited from itk::DataObject
virtual void CopyInformation (const DataObject *)
virtual void DataHasBeenGenerated ()
void DisconnectPipeline ()
bool GetDataReleased () const
virtual const bool & GetReleaseDataFlag ()
SmartPointerForwardReference
< ProcessObject
GetSource () const
DataObjectPointerArraySizeType GetSourceOutputIndex () const
const DataObjectIdentifierTypeGetSourceOutputName () const
virtual unsigned long GetUpdateMTime () const
virtual void Initialize ()
virtual void PrepareForNewData ()
virtual void PropagateRequestedRegion ()
void ReleaseData ()
virtual void ReleaseDataFlagOff ()
virtual void ReleaseDataFlagOn ()
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion ()
virtual void ResetPipeline ()
void SetReleaseDataFlag (bool flag)
virtual void SetRequestedRegion (const DataObject *)
virtual void SetRequestedRegionToLargestPossibleRegion ()
bool ShouldIReleaseData () const
virtual void Update ()
virtual void UpdateOutputData ()
virtual void UpdateOutputInformation ()
virtual bool VerifyRequestedRegion ()
void SetPipelineMTime (unsigned long time)
virtual const unsigned long & GetPipelineMTime ()
virtual void SetRealTimeStamp (RealTimeStamp _arg)
virtual const RealTimeStampGetRealTimeStamp ()
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
unsigned long AddObserver (const EventObject &event, Command *) const
virtual void DebugOff () const
virtual void DebugOn () const
CommandGetCommand (unsigned long tag)
bool GetDebug () const
MetaDataDictionaryGetMetaDataDictionary (void)
const MetaDataDictionaryGetMetaDataDictionary (void) const
virtual unsigned long GetMTime () const
virtual const TimeStampGetTimeStamp () const
bool HasObserver (const EventObject &event) const
void InvokeEvent (const EventObject &)
void InvokeEvent (const EventObject &) const
virtual void Modified () const
virtual void Register () const
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
void SetDebug (bool debugFlag) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void SetReferenceCount (int)
virtual void UnRegister () const
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
virtual int GetReferenceCount () const
 itkCloneMacro (Self)
void Print (std::ostream &os, Indent indent=0) const

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int MeasurementVectorSize = TPointSet::PointDimension
- Protected Member Functions inherited from itk::Statistics::ListSample< TPointSet::PointType >
 ListSample ()
virtual ~ListSample ()
- Protected Member Functions inherited from itk::Statistics::Sample< TPointSet::PointType >
 Sample ()
virtual ~Sample ()
- Protected Member Functions inherited from itk::DataObject
virtual void PropagateResetPipeline ()
 DataObject ()
 ~DataObject ()
- Protected Member Functions inherited from itk::Object
 Object ()
bool PrintObservers (std::ostream &os, Indent indent) const
virtual void SetTimeStamp (const TimeStamp &time)
virtual ~Object ()
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 LightObject ()
virtual void PrintHeader (std::ostream &os, Indent indent) const
virtual void PrintTrailer (std::ostream &os, Indent indent) const
virtual ~LightObject ()
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 &)

Additional Inherited Members


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

template<class TPointSet >
typedef Superclass::AbsoluteFrequencyType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::AbsoluteFrequencyType

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
template<class TPointSet >
typedef Superclass::InstanceIdentifier itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::InstanceIdentifier

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.

template<class TPointSet >
typedef Superclass::MeasurementType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::MeasurementType

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.

template<class TPointSet >
typedef Superclass::MeasurementVectorSizeType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::MeasurementVectorSizeType

Typedef for the length of each measurement vector

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

Definition at line 83 of file itkPointSetToListSampleAdaptor.h.

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

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
template<class TPointSet >
typedef Superclass::TotalAbsoluteFrequencyType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::TotalAbsoluteFrequencyType

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 ( )
inlineprotectedvirtual

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.

template<class TPointSet >
AbsoluteFrequencyType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetFrequency ( InstanceIdentifier  id) const

returns 1 as other subclasses of ListSampleBase does

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

template<class TPointSet >
const MeasurementVectorType& itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetMeasurementVector ( InstanceIdentifier  id) const

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
protectedvirtual

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

template<class TPointSet >
PointsContainerConstPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::m_PointsContainer
private

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
mutableprivate

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: