Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Types | Public Member Functions | Protected Member Functions
itk::ParticlePositionReader< VDimension > Class Template Reference

#include <itkParticlePositionReader.h>

+ Inheritance diagram for itk::ParticlePositionReader< VDimension >:
+ Collaboration diagram for itk::ParticlePositionReader< VDimension >:

Public Types

typedef ParticlePositionReader Self
 
typedef DataObject Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef WeakPointer< const SelfConstWeakPointer
 
typedef Point< double, VDimension > PointType
 

Public Member Functions

 itkNewMacro (Self)
 
 itkTypeMacro (ParticlePositionReader, DataObject)
 
const std::vector< PointType > & GetOutput () const
 
 itkSetStringMacro (FileName)
 
 itkGetStringMacro (FileName)
 
void Read ()
 
void Update ()
 

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const
 

Detailed Description

template<unsigned int VDimension>
class itk::ParticlePositionReader< VDimension >

This class reads a set of Points from disk and stores them in a vector. The file format is simple an ascii list of VDimension-tuples stored one per line (delimited by std::endl). There is no header required for the file, but the file should not contain leading or trailing empty lines.

In 3D, for example, a fragment of a points file looks like this:

1.0 2.0 5.4 2.3 8.7 33.0 4.0 8.21 4.44

etc..

Definition at line 42 of file itkParticlePositionReader.h.

Member Typedef Documentation

template<unsigned int VDimension>
typedef Point<double, VDimension> itk::ParticlePositionReader< VDimension >::PointType

The point type that this class reads.

Definition at line 53 of file itkParticlePositionReader.h.

template<unsigned int VDimension>
typedef ParticlePositionReader itk::ParticlePositionReader< VDimension >::Self

Standard class typedefs

Definition at line 46 of file itkParticlePositionReader.h.

Member Function Documentation

template<unsigned int VDimension>
const std::vector<PointType>& itk::ParticlePositionReader< VDimension >::GetOutput ( ) const
inline

Get the output of the reader. The output is a std::vector of PointType.

Definition at line 62 of file itkParticlePositionReader.h.

63  {
64  return m_Output;
65  }
template<unsigned int VDimension>
itk::ParticlePositionReader< VDimension >::itkNewMacro ( Self  )

Method for creation through the object factory.

template<unsigned int VDimension>
itk::ParticlePositionReader< VDimension >::itkSetStringMacro ( FileName  )

Set/Get the filename.

template<unsigned int VDimension>
itk::ParticlePositionReader< VDimension >::itkTypeMacro ( ParticlePositionReader< VDimension >  ,
DataObject   
)

Run-time type information (and related methods).

template<unsigned int VDimension>
void itk::ParticlePositionReader< VDimension >::Read ( )
inline

Read the file.

Definition at line 72 of file itkParticlePositionReader.h.

73  { this->Update(); }

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