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

#include <itkPointSetToListSampleAdaptor.h>

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

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.

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
Superclass::AbsoluteFrequencyType 
AbsoluteFrequencyType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::InstanceIdentifier 
InstanceIdentifier
 
typedef std::vector
< MeasurementVectorType
InternalDataContainerType
 
typedef Superclass::MeasurementType MeasurementType
 
typedef
Superclass::MeasurementVectorSizeType 
MeasurementVectorSizeType
 
typedef
Superclass::MeasurementVectorType 
MeasurementVectorType
 
typedef SmartPointer< SelfPointer
 
typedef ListSample Self
 
typedef Sample
< TPointSet::PointType > 
Superclass
 
typedef
Superclass::TotalAbsoluteFrequencyType 
TotalAbsoluteFrequencyType
 
typedef MeasurementVectorType ValueType
 
- Public Types inherited from itk::Statistics::Sample< TPointSet::PointType >
typedef
MeasurementVectorTraits::AbsoluteFrequencyType 
AbsoluteFrequencyType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
MeasurementVectorTraits::InstanceIdentifier 
InstanceIdentifier
 
typedef
MeasurementVectorTraitsTypes
< MeasurementVectorType >
::ValueType 
MeasurementType
 
typedef unsigned int MeasurementVectorSizeType
 
typedef TPointSet::PointType MeasurementVectorType
 
typedef SmartPointer< SelfPointer
 
typedef Sample Self
 
typedef DataObject Superclass
 
typedef NumericTraits
< AbsoluteFrequencyType >
::AccumulateType 
TotalAbsoluteFrequencyType
 
- Public Types inherited from itk::DataObject
typedef SmartPointer< const SelfConstPointer
 
typedef std::string DataObjectIdentifierType
 
typedef std::vector< Pointer >
::size_type 
DataObjectPointerArraySizeType
 
typedef SmartPointer< SelfPointer
 
typedef DataObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

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 >
Iterator Begin ()
 
ConstIterator Begin () const
 
void Clear ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
Iterator End ()
 
ConstIterator End () const
 
AbsoluteFrequencyType GetFrequency (InstanceIdentifier id) const
 
const MeasurementVectorTypeGetMeasurementVector (InstanceIdentifier id) const
 
TotalAbsoluteFrequencyType GetTotalFrequency () const
 
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)
 
InstanceIdentifier Size () const
 
- 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 ModifiedTimeType 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 (ModifiedTimeType time)
 
virtual const ModifiedTimeTypeGetPipelineMTime ()
 
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 ModifiedTimeType 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 Member Functions inherited from itk::Statistics::ListSample< TPointSet::PointType >
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 &)
 

Additional Inherited Members

- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Member Functions inherited from itk::Statistics::ListSample< TPointSet::PointType >
 ListSample ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~ListSample ()
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

Member Typedef Documentation

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

Definition at line 81 of file itkPointSetToListSampleAdaptor.h.

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

Definition at line 54 of file itkPointSetToListSampleAdaptor.h.

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

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

Definition at line 79 of file itkPointSetToListSampleAdaptor.h.

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

Definition at line 83 of file itkPointSetToListSampleAdaptor.h.

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

Definition at line 80 of file itkPointSetToListSampleAdaptor.h.

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

Definition at line 53 of file itkPointSetToListSampleAdaptor.h.

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

Definition at line 51 of file itkPointSetToListSampleAdaptor.h.

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

Definition at line 52 of file itkPointSetToListSampleAdaptor.h.

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

Definition at line 82 of file itkPointSetToListSampleAdaptor.h.

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

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 263 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

Definition at line 223 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

Definition at line 245 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::Object.

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

returns an iterator that points to the end of the container

Definition at line 234 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

Definition at line 253 of file itkPointSetToListSampleAdaptor.h.

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

returns 1 as other subclasses of ListSampleBase does

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.

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

Implements itk::Statistics::Sample< TPointSet::PointType >.

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

Method for creation through the object factory.

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

the PointSet data source pointer

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

the PointSet data source pointer

Reimplemented from itk::DataObject.

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

Implements itk::Statistics::Sample< 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 275 of file itkPointSetToListSampleAdaptor.h.

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

the PointSet data source pointer

Definition at line 271 of file itkPointSetToListSampleAdaptor.h.

template<class TPointSet >
PointType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::m_TempPoint
mutableprivate

temporary points for conversions

Definition at line 278 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: