NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Reads points to a polydata object. More...
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 VTK4PointsReader * | New () |
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 |
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.
|
protected |
|
protected |
|
static |
|
override |
|
overrideprotected |
turn off range clipping (discards points that fall outside the set range)
direction | Direction to clip in (0 = x, 1 = y , 2 = z, 3 = weight) |
turn on range clipping (discards points that fall outside the set range)
direction | to clip in (0 = x, 1 = y , 2 = z, 3 = weight) |
min | The minimum clipping value |
max | The 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 | |||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |