VTK
vtkPTSReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPTSReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef vtkPTSReader_h
28 #define vtkPTSReader_h
29 
30 #include "vtkIOGeometryModule.h" // For export macro
31 #include "vtkPolyDataAlgorithm.h"
32 #include "vtkBoundingBox.h" // For Bounding Box Data Member
33 
34 
35 class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
36 {
37 public:
38  static vtkPTSReader *New();
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
46  void SetFileName(const char *filename);
47  vtkGetStringMacro(FileName);
49 
51 
55  vtkBooleanMacro(LimitReadToBounds, bool);
56  vtkSetMacro(LimitReadToBounds, bool);
57  vtkGetMacro(LimitReadToBounds, bool);
59 
61 
64  vtkSetVector6Macro(ReadBounds, double);
65  vtkGetVector6Macro(ReadBounds, double);
67 
69 
72  vtkBooleanMacro(OutputDataTypeIsDouble, bool);
73  vtkSetMacro(OutputDataTypeIsDouble, bool);
74  vtkGetMacro(OutputDataTypeIsDouble, bool);
76 
78 
82  vtkBooleanMacro(LimitToMaxNumberOfPoints, bool);
83  vtkSetMacro(LimitToMaxNumberOfPoints, bool);
84  vtkGetMacro(LimitToMaxNumberOfPoints, bool);
86 
88 
92  vtkSetClampMacro(MaxNumberOfPoints,vtkIdType,1,VTK_INT_MAX);
93  vtkGetMacro(MaxNumberOfPoints,vtkIdType);
95 
97 
102  vtkBooleanMacro(CreateCells, bool);
103  vtkSetMacro(CreateCells, bool);
104  vtkGetMacro(CreateCells, bool);
106 
108 
113  vtkBooleanMacro(IncludeColorAndLuminance, bool);
114  vtkSetMacro(IncludeColorAndLuminance, bool);
115  vtkGetMacro(IncludeColorAndLuminance, bool);
117 
118 protected:
119  vtkPTSReader();
120  ~vtkPTSReader();
121 
124 
125  char *FileName;
127 
129  double ReadBounds[6];
135 
136 private:
137  vtkPTSReader(const vtkPTSReader&) VTK_DELETE_FUNCTION;
138  void operator=(const vtkPTSReader&) VTK_DELETE_FUNCTION;
139 };
140 
141 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:153
int vtkIdType
Definition: vtkType.h:287
bool LimitReadToBounds
Definition: vtkPTSReader.h:128
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
bool OutputDataTypeIsDouble
Definition: vtkPTSReader.h:126
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkIdType MaxNumberOfPoints
Definition: vtkPTSReader.h:132
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Read ASCII PTS Files.
Definition: vtkPTSReader.h:35
char * FileName
Definition: vtkPTSReader.h:125
bool LimitToMaxNumberOfPoints
Definition: vtkPTSReader.h:131
vtkBoundingBox ReadBBox
Definition: vtkPTSReader.h:130
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
bool IncludeColorAndLuminance
Definition: vtkPTSReader.h:134
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Fast Simple Class for dealing with 3D bounds.