VTK  9.3.20240425
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
21
22VTK_ABI_NAMESPACE_BEGIN
23class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
24{
25public:
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
106protected:
108 ~vtkPTSReader() override;
109
112
113 char* FileName;
115
117 double ReadBounds[6];
123
124private:
125 vtkPTSReader(const vtkPTSReader&) = delete;
126 void operator=(const vtkPTSReader&) = delete;
127};
128
129VTK_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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read ASCII PTS Files.
vtkBoundingBox ReadBBox
bool OutputDataTypeIsDouble
bool LimitReadToBounds
bool IncludeColorAndLuminance
void SetFileName(VTK_FILEPATH const char *filename)
Specify file name.
vtkIdType MaxNumberOfPoints
static vtkPTSReader * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPTSReader() override
bool LimitToMaxNumberOfPoints
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetFilePathMacro(FileName)
Specify file name.
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