VTK  9.2.6
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 "vtkBoundingBox.h" // For Bounding Box Data Member
31 #include "vtkIOGeometryModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
35 {
36 public:
37  static vtkPTSReader* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
45  void SetFileName(VTK_FILEPATH const char* filename);
46  vtkGetFilePathMacro(FileName);
48 
50 
54  vtkBooleanMacro(LimitReadToBounds, bool);
55  vtkSetMacro(LimitReadToBounds, bool);
56  vtkGetMacro(LimitReadToBounds, bool);
58 
60 
63  vtkSetVector6Macro(ReadBounds, double);
64  vtkGetVector6Macro(ReadBounds, double);
66 
68 
71  vtkBooleanMacro(OutputDataTypeIsDouble, bool);
72  vtkSetMacro(OutputDataTypeIsDouble, bool);
73  vtkGetMacro(OutputDataTypeIsDouble, bool);
75 
77 
81  vtkBooleanMacro(LimitToMaxNumberOfPoints, bool);
82  vtkSetMacro(LimitToMaxNumberOfPoints, bool);
83  vtkGetMacro(LimitToMaxNumberOfPoints, bool);
85 
87 
91  vtkSetClampMacro(MaxNumberOfPoints, vtkIdType, 1, VTK_INT_MAX);
92  vtkGetMacro(MaxNumberOfPoints, vtkIdType);
94 
96 
101  vtkBooleanMacro(CreateCells, bool);
102  vtkSetMacro(CreateCells, bool);
103  vtkGetMacro(CreateCells, bool);
105 
107 
112  vtkBooleanMacro(IncludeColorAndLuminance, bool);
113  vtkSetMacro(IncludeColorAndLuminance, bool);
114  vtkGetMacro(IncludeColorAndLuminance, bool);
116 
117 protected:
118  vtkPTSReader();
119  ~vtkPTSReader() override;
120 
123 
124  char* FileName;
126 
128  double ReadBounds[6];
134 
135 private:
136  vtkPTSReader(const vtkPTSReader&) = delete;
137  void operator=(const vtkPTSReader&) = delete;
138 };
139 
140 #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:155
int vtkIdType
Definition: vtkType.h:332
bool LimitReadToBounds
Definition: vtkPTSReader.h:127
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:125
vtkIdType MaxNumberOfPoints
Definition: vtkPTSReader.h:131
Read ASCII PTS Files.
Definition: vtkPTSReader.h:34
#define VTK_FILEPATH
char * FileName
Definition: vtkPTSReader.h:124
bool LimitToMaxNumberOfPoints
Definition: vtkPTSReader.h:130
vtkBoundingBox ReadBBox
Definition: vtkPTSReader.h:129
Store zero or more vtkInformation instances.
bool IncludeColorAndLuminance
Definition: vtkPTSReader.h:133
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Fast, simple class for representing and operating on 3D bounds.