NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkVTK4PointsReader.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkVTK4PointsReader_h
16 #define niftkVTK4PointsReader_h
17 
19 
20 #include <vtkPolyDataAlgorithm.h>
21 
22 namespace niftk
23 {
24 
36 class NIFTKVTK_WINEXPORT VTK4PointsReader : public vtkPolyDataAlgorithm
37 {
38 public:
39 
40  static VTK4PointsReader* New();
41  vtkTypeMacro(VTK4PointsReader, vtkPolyDataAlgorithm);
42 
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
48  vtkSetStringMacro(FileName);
49  vtkGetStringMacro(FileName);
50 
57  void SetClippingOn ( int direction, double min, double max );
58 
63  void SetClippingOff ( int direction );
64 
68  vtkSetMacro(m_ReadWeights,bool);
69  vtkGetMacro(m_ReadWeights,bool);
70 
71 protected:
72 
75 
76  char* FileName;
77 
78  int RequestData(vtkInformation*,
79  vtkInformationVector**,
80  vtkInformationVector*) override;
81 
82  bool m_Clipping[4];
83  double m_Min[4];
84  double m_Max[4];
86 };
87 
88 } // end namespace
89 
90 #endif
bool m_ReadWeights
Definition: niftkVTK4PointsReader.h:85
#define NIFTKVTK_WINEXPORT
Definition: niftkVTKWin32ExportHeader.h:28
Reads points to a polydata object.
Definition: niftkVTK4PointsReader.h:36
char * FileName
Definition: niftkVTK4PointsReader.h:76
Definition: niftkExceptionObject.h:21