VTK  9.6.20260202
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
16
17#ifndef vtkPTSReader_h
18#define vtkPTSReader_h
19
20#include "vtkBoundingBox.h" // For Bounding Box Data Member
21#include "vtkIOGeometryModule.h" // For export macro
23#include "vtkSmartPointer.h" // for vtkSmartPointer
24
25VTK_ABI_NAMESPACE_BEGIN
27class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
28{
29public:
30 static vtkPTSReader* New();
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35
38 void SetFileName(VTK_FILEPATH const char* filename);
41
43
50
52
58 static bool CanReadFile(VTK_FILEPATH const char* name);
59 static bool CanReadFile(vtkResourceStream* stream);
61
63
67 vtkBooleanMacro(LimitReadToBounds, bool);
68 vtkSetMacro(LimitReadToBounds, bool);
69 vtkGetMacro(LimitReadToBounds, bool);
71
73
76 vtkSetVector6Macro(ReadBounds, double);
77 vtkGetVector6Macro(ReadBounds, double);
79
81
84 vtkBooleanMacro(OutputDataTypeIsDouble, bool);
85 vtkSetMacro(OutputDataTypeIsDouble, bool);
86 vtkGetMacro(OutputDataTypeIsDouble, bool);
88
90
94 vtkBooleanMacro(LimitToMaxNumberOfPoints, bool);
95 vtkSetMacro(LimitToMaxNumberOfPoints, bool);
96 vtkGetMacro(LimitToMaxNumberOfPoints, bool);
98
100
107
109
114 vtkBooleanMacro(CreateCells, bool);
115 vtkSetMacro(CreateCells, bool);
116 vtkGetMacro(CreateCells, bool);
118
120
125 vtkBooleanMacro(IncludeColorAndLuminance, bool);
126 vtkSetMacro(IncludeColorAndLuminance, bool);
127 vtkGetMacro(IncludeColorAndLuminance, bool);
129
134
135protected:
137 ~vtkPTSReader() override;
138
141
142 char* FileName = nullptr;
144 bool LimitReadToBounds = false;
145 double ReadBounds[6];
148 bool CreateCells = true;
150
152
153private:
154 vtkPTSReader(const vtkPTSReader&) = delete;
155 void operator=(const vtkPTSReader&) = delete;
156
158};
159
160VTK_ABI_NAMESPACE_END
161#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.
static bool CanReadFile(vtkResourceStream *stream)
Return true if, after a quick check of file header, it looks like the provided file or stream can be ...
vtkBoundingBox ReadBBox
bool OutputDataTypeIsDouble
bool LimitReadToBounds
void SetFileName(const char *filename)
Specify file name.
double ReadBounds[6]
vtkResourceStream * GetStream()
Specify stream to read from When both Stream and Filename are set, stream is used.
static bool CanReadFile(const char *name)
Return true if, after a quick check of file header, it looks like the provided file or stream can be ...
bool IncludeColorAndLuminance
vtkIdType MaxNumberOfPoints
static vtkPTSReader * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMTimeType GetMTime() override
Overridden to take into account mtime from the internal vtkResourceStream.
~vtkPTSReader() override
void SetStream(vtkResourceStream *stream)
Specify stream to read from When both Stream and Filename are set, stream is used.
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
Abstract class used for custom streams.
Hold a reference to a vtkObjectBase instance.
int vtkIdType
Definition vtkType.h:354
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:309
#define VTK_INT_MAX
Definition vtkType.h:183
#define VTK_FILEPATH