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

#include <itkParticlePositionWriter.h>

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

Public Types

typedef ParticlePositionWriter 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 (ParticlePositionWriter, DataObject)
 
void SetInput (const std::vector< PointType > &p)
 
 itkSetStringMacro (FileName)
 
 itkGetStringMacro (FileName)
 
void Write ()
 
void Update ()
 

Protected Member Functions

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

Detailed Description

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

This class writes a set of Points to disk. Its input is a std::vector of points. 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 itkParticlePositionWriter.h.

Member Typedef Documentation

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

The point type that this class reads.

Definition at line 53 of file itkParticlePositionWriter.h.

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

Standard class typedefs

Definition at line 46 of file itkParticlePositionWriter.h.

Member Function Documentation

template<unsigned int VDimension>
itk::ParticlePositionWriter< VDimension >::itkNewMacro ( Self  )

Method for creation through the object factory.

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

Set/Get the filename.

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

Run-time type information (and related methods).

template<unsigned int VDimension>
void itk::ParticlePositionWriter< VDimension >::SetInput ( const std::vector< PointType > &  p)
inline

Set the input vector. The input is a reference to a std::vector of PointType.

Definition at line 62 of file itkParticlePositionWriter.h.

63  {
64  m_Input = p;
65  }
template<unsigned int VDimension>
void itk::ParticlePositionWriter< VDimension >::Write ( )
inline

Write the file.

Definition at line 72 of file itkParticlePositionWriter.h.

73  { this->Update(); }

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