NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
niftk::VTK4PointsReader Class Reference

Reads points to a polydata object. More...

Inheritance diagram for niftk::VTK4PointsReader:
Inheritance graph
[legend]
Collaboration diagram for niftk::VTK4PointsReader:
Collaboration graph
[legend]

Public Member Functions

 vtkTypeMacro (VTK4PointsReader, vtkPolyDataAlgorithm)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
 vtkSetStringMacro (FileName)
 Set/Get the name of the file from which to read points. More...
 
 vtkGetStringMacro (FileName)
 
void SetClippingOn (int direction, double min, double max)
 turn on range clipping (discards points that fall outside the set range) More...
 
void SetClippingOff (int direction)
 turn off range clipping (discards points that fall outside the set range) More...
 
 vtkSetMacro (m_ReadWeights, bool)
 Set/Get whether to read the weights (4th) column. Set to false if the file only has three columns. More...
 
 vtkGetMacro (m_ReadWeights, bool)
 

Static Public Member Functions

static VTK4PointsReaderNew ()
 

Protected Member Functions

 VTK4PointsReader ()
 
 ~VTK4PointsReader ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
 

Protected Attributes

char * FileName
 
bool m_Clipping [4]
 
double m_Min [4]
 
double m_Max [4]
 
bool m_ReadWeights
 

Detailed Description

Reads points to a polydata object.

Reads a text file where each line represents a point. The first 3 columns being the coordinates and the 4th column being a weighting. At present the weighting is discarded, though may be used to clip points. Now has option to not read weights, so should work for a file with 3 columns defining the point data.

Constructor & Destructor Documentation

niftk::VTK4PointsReader::VTK4PointsReader ( )
protected
niftk::VTK4PointsReader::~VTK4PointsReader ( )
protected

Member Function Documentation

static VTK4PointsReader* niftk::VTK4PointsReader::New ( )
static
void niftk::VTK4PointsReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override
int niftk::VTK4PointsReader::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *  outputVector 
)
overrideprotected
void niftk::VTK4PointsReader::SetClippingOff ( int  direction)

turn off range clipping (discards points that fall outside the set range)

Parameters
directionDirection to clip in (0 = x, 1 = y , 2 = z, 3 = weight)
void niftk::VTK4PointsReader::SetClippingOn ( int  direction,
double  min,
double  max 
)

turn on range clipping (discards points that fall outside the set range)

Parameters
directionto clip in (0 = x, 1 = y , 2 = z, 3 = weight)
minThe minimum clipping value
maxThe maximum clipping value
niftk::VTK4PointsReader::vtkGetMacro ( m_ReadWeights  ,
bool   
)
niftk::VTK4PointsReader::vtkGetStringMacro ( FileName  )
niftk::VTK4PointsReader::vtkSetMacro ( m_ReadWeights  ,
bool   
)

Set/Get whether to read the weights (4th) column. Set to false if the file only has three columns.

niftk::VTK4PointsReader::vtkSetStringMacro ( FileName  )

Set/Get the name of the file from which to read points.

niftk::VTK4PointsReader::vtkTypeMacro ( VTK4PointsReader  ,
vtkPolyDataAlgorithm   
)

Member Data Documentation

char* niftk::VTK4PointsReader::FileName
protected
bool niftk::VTK4PointsReader::m_Clipping[4]
protected
double niftk::VTK4PointsReader::m_Max[4]
protected
double niftk::VTK4PointsReader::m_Min[4]
protected
bool niftk::VTK4PointsReader::m_ReadWeights
protected

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