ITK  4.2.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer > Class Template Reference

#include <itkVectorContainerToListSampleAdaptor.h>

+ Inheritance diagram for itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >:
+ Collaboration diagram for itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >:

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
VectorContainerToListSampleAdaptor 
Self
typedef ListSample< typename
TVectorContainer::Element > 
Superclass
typedef
Superclass::TotalAbsoluteFrequencyType 
TotalAbsoluteFrequencyType
typedef MeasurementVectorType ValueType
typedef
TVectorContainer::ConstIterator 
VectorContainerConstIterator
typedef
TVectorContainer::ConstPointer 
VectorContainerConstPointer
typedef TVectorContainer::Iterator VectorContainerIterator
typedef TVectorContainer::Pointer VectorContainerPointer
typedef TVectorContainer VectorContainerType
- Public Types inherited from itk::Statistics::ListSample< TVectorContainer::Element >
typedef std::vector
< MeasurementVectorType
InternalDataContainerType
- Public Types inherited from itk::Statistics::Sample< TVectorContainer::Element >
- 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) const
const MeasurementVectorTypeGetMeasurementVector (InstanceIdentifier) const
virtual const char * GetNameOfClass () const
TotalAbsoluteFrequencyType GetTotalFrequency () const
virtual const VectorContainerTypeGetVectorContainer ()
virtual void SetVectorContainer (VectorContainerType *_arg)
InstanceIdentifier Size () const
Iterator Begin ()
Iterator End ()
ConstIterator Begin () const
ConstIterator End () const
- Public Member Functions inherited from itk::Statistics::ListSample< TVectorContainer::Element >
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< TVectorContainer::Element >
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 = TVectorContainer::Element::Dimension

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const
 VectorContainerToListSampleAdaptor ()
virtual ~VectorContainerToListSampleAdaptor ()
- Protected Member Functions inherited from itk::Statistics::ListSample< TVectorContainer::Element >
 ListSample ()
virtual ~ListSample ()
- Protected Member Functions inherited from itk::Statistics::Sample< TVectorContainer::Element >
 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 ()

Private Member Functions

void operator= (const Self &)
 VectorContainerToListSampleAdaptor (const Self &)

Private Attributes

VectorContainerType::Element m_TempPoint
VectorContainerConstPointer m_VectorContainer

Detailed Description

template<class TVectorContainer>
class itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >

This class provides ListSample interface to ITK VectorContainer.

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

See also:
Sample, ListSample, VectorContainer

Definition at line 46 of file itkVectorContainerToListSampleAdaptor.h.


Member Typedef Documentation

template<class TVectorContainer >
typedef Superclass::AbsoluteFrequencyType itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::AbsoluteFrequencyType

Frequency value type

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 77 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef SmartPointer< const Self > itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::ConstPointer
template<class TVectorContainer >
typedef Superclass::InstanceIdentifier itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::InstanceIdentifier

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

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 80 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef Superclass::MeasurementType itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::MeasurementType

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

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 75 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef Superclass::MeasurementVectorSizeType itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::MeasurementVectorSizeType

Typedef for the length of each measurement vector

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 79 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef Superclass::MeasurementVectorType itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::MeasurementVectorType

Typedefs inherited from the superclass

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 76 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef SmartPointer< Self > itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::Pointer
template<class TVectorContainer >
typedef VectorContainerToListSampleAdaptor itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::Self

Standard class typedefs

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 51 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef ListSample<typename TVectorContainer::Element> itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::Superclass
template<class TVectorContainer >
typedef Superclass::TotalAbsoluteFrequencyType itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::TotalAbsoluteFrequencyType

Total frequency type

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 78 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef MeasurementVectorType itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::ValueType

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

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 82 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef TVectorContainer::ConstIterator itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::VectorContainerConstIterator

Definition at line 71 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef TVectorContainer::ConstPointer itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::VectorContainerConstPointer

Definition at line 69 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef TVectorContainer::Iterator itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::VectorContainerIterator

Definition at line 70 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef TVectorContainer::Pointer itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::VectorContainerPointer

Definition at line 68 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
typedef TVectorContainer itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::VectorContainerType

VectorContainer typedefs

Definition at line 67 of file itkVectorContainerToListSampleAdaptor.h.


Constructor & Destructor Documentation

template<class TVectorContainer >
itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::VectorContainerToListSampleAdaptor ( )
protected
template<class TVectorContainer >
virtual itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::~VectorContainerToListSampleAdaptor ( )
inlineprotectedvirtual

Definition at line 256 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::VectorContainerToListSampleAdaptor ( const Self )
private

Member Function Documentation

template<class TVectorContainer >
Iterator itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::Begin ( void  )
inline

returns an iterator that points to the beginning of the container

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 214 of file itkVectorContainerToListSampleAdaptor.h.

Referenced by itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::ConstIterator::ConstIterator().

template<class TVectorContainer >
ConstIterator itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::Begin ( void  ) const
inline

returns an iterator that points to the beginning of the container

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 237 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
virtual::itk::LightObject::Pointer itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::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< TVectorContainer::Element >.

template<class TVectorContainer >
Iterator itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::End ( void  )
inline

returns an iterator that points to the end of the container

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 225 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
ConstIterator itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::End ( void  ) const
inline

returns an iterator that points to the end of the container

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

Definition at line 245 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
AbsoluteFrequencyType itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::GetFrequency ( InstanceIdentifier  ) const

returns 1 as other subclasses of ListSampleBase does

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

template<class TVectorContainer >
const MeasurementVectorType& itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::GetMeasurementVector ( InstanceIdentifier  ) const

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

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

template<class TVectorContainer >
virtual const char* itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

template<class TVectorContainer >
TotalAbsoluteFrequencyType itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::GetTotalFrequency ( ) const
virtual

returns the size of this container

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

template<class TVectorContainer >
virtual const VectorContainerType* itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::GetVectorContainer ( )
virtual

Method to get the point set

template<class TVectorContainer >
static Pointer itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::New ( )
static

Method for creation through the object factory.

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

template<class TVectorContainer >
void itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::operator= ( const Self )
private
template<class TVectorContainer >
void itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

Method for grafting the content of one data object into another one. This method is intended to be overloaded by derived classes. Each one of them should use dynamic_casting in order to verify that the grafted object is actually of the same type as the class on which the Graft() method was invoked.

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.

template<class TVectorContainer >
virtual void itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::SetVectorContainer ( VectorContainerType _arg)
virtual

Method to set the point set

template<class TVectorContainer >
InstanceIdentifier itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::Size ( ) const
virtual

returns the number of measurement vectors in this container

Reimplemented from itk::Statistics::ListSample< TVectorContainer::Element >.


Member Data Documentation

template<class TVectorContainer >
VectorContainerType::Element itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::m_TempPoint
mutableprivate

temporary points for conversions

Definition at line 268 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
VectorContainerConstPointer itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::m_VectorContainer
private

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

Definition at line 265 of file itkVectorContainerToListSampleAdaptor.h.

template<class TVectorContainer >
const unsigned int itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >::MeasurementVectorSize = TVectorContainer::Element::Dimension
static

the number of components in a measurement vector

Definition at line 64 of file itkVectorContainerToListSampleAdaptor.h.


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