ITK  4.1.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 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

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

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

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.

Typedef for the length of each measurement vector

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

Definition at line 79 of file itkVectorContainerToListSampleAdaptor.h.

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

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 ( ) [inline, protected, virtual]

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 [protected, virtual]

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 [mutable, private]

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: