VTK  9.3.0
vtkPTSReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkPTSReader_h
16 #define vtkPTSReader_h
17 
18 #include "vtkBoundingBox.h" // For Bounding Box Data Member
19 #include "vtkIOGeometryModule.h" // For export macro
20 #include "vtkPolyDataAlgorithm.h"
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
24 {
25 public:
26  static vtkPTSReader* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
34  void SetFileName(VTK_FILEPATH const char* filename);
37 
39 
43  vtkBooleanMacro(LimitReadToBounds, bool);
44  vtkSetMacro(LimitReadToBounds, bool);
45  vtkGetMacro(LimitReadToBounds, bool);
47 
49 
52  vtkSetVector6Macro(ReadBounds, double);
53  vtkGetVector6Macro(ReadBounds, double);
55 
57 
60  vtkBooleanMacro(OutputDataTypeIsDouble, bool);
61  vtkSetMacro(OutputDataTypeIsDouble, bool);
62  vtkGetMacro(OutputDataTypeIsDouble, bool);
64 
66 
70  vtkBooleanMacro(LimitToMaxNumberOfPoints, bool);
71  vtkSetMacro(LimitToMaxNumberOfPoints, bool);
72  vtkGetMacro(LimitToMaxNumberOfPoints, bool);
74 
76 
80  vtkSetClampMacro(MaxNumberOfPoints, vtkIdType, 1, VTK_INT_MAX);
81  vtkGetMacro(MaxNumberOfPoints, vtkIdType);
83 
85 
90  vtkBooleanMacro(CreateCells, bool);
91  vtkSetMacro(CreateCells, bool);
92  vtkGetMacro(CreateCells, bool);
94 
96 
101  vtkBooleanMacro(IncludeColorAndLuminance, bool);
102  vtkSetMacro(IncludeColorAndLuminance, bool);
103  vtkGetMacro(IncludeColorAndLuminance, bool);
105 
106 protected:
108  ~vtkPTSReader() override;
109 
112 
113  char* FileName;
115 
117  double ReadBounds[6];
123 
124 private:
125  vtkPTSReader(const vtkPTSReader&) = delete;
126  void operator=(const vtkPTSReader&) = delete;
127 };
128 
129 VTK_ABI_NAMESPACE_END
130 #endif
Fast, simple class for representing and operating on 3D bounds.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read ASCII PTS Files.
Definition: vtkPTSReader.h:24
vtkBoundingBox ReadBBox
Definition: vtkPTSReader.h:118
bool OutputDataTypeIsDouble
Definition: vtkPTSReader.h:114
bool LimitReadToBounds
Definition: vtkPTSReader.h:116
char * FileName
Definition: vtkPTSReader.h:113
bool IncludeColorAndLuminance
Definition: vtkPTSReader.h:122
void SetFileName(VTK_FILEPATH const char *filename)
Specify file name.
vtkIdType MaxNumberOfPoints
Definition: vtkPTSReader.h:120
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPTSReader() override
bool LimitToMaxNumberOfPoints
Definition: vtkPTSReader.h:119
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetFilePathMacro(FileName)
Specify file name.
static vtkPTSReader * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Superclass for algorithms that produce only polydata as output.
int vtkIdType
Definition: vtkType.h:315
#define VTK_INT_MAX
Definition: vtkType.h:144
#define VTK_FILEPATH