VTK  9.1.0
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=========================================================================*/
24#ifndef vtkPTSReader_h
25#define vtkPTSReader_h
26
27#include "vtkBoundingBox.h" // For Bounding Box Data Member
28#include "vtkIOGeometryModule.h" // For export macro
30
31class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
32{
33public:
34 static vtkPTSReader* New();
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
42 void SetFileName(VTK_FILEPATH const char* filename);
45
47
51 vtkBooleanMacro(LimitReadToBounds, bool);
52 vtkSetMacro(LimitReadToBounds, bool);
53 vtkGetMacro(LimitReadToBounds, bool);
55
57
60 vtkSetVector6Macro(ReadBounds, double);
61 vtkGetVector6Macro(ReadBounds, double);
63
65
68 vtkBooleanMacro(OutputDataTypeIsDouble, bool);
69 vtkSetMacro(OutputDataTypeIsDouble, bool);
70 vtkGetMacro(OutputDataTypeIsDouble, bool);
72
74
78 vtkBooleanMacro(LimitToMaxNumberOfPoints, bool);
79 vtkSetMacro(LimitToMaxNumberOfPoints, bool);
80 vtkGetMacro(LimitToMaxNumberOfPoints, bool);
82
84
88 vtkSetClampMacro(MaxNumberOfPoints, vtkIdType, 1, VTK_INT_MAX);
89 vtkGetMacro(MaxNumberOfPoints, vtkIdType);
91
93
98 vtkBooleanMacro(CreateCells, bool);
99 vtkSetMacro(CreateCells, bool);
100 vtkGetMacro(CreateCells, bool);
102
104
109 vtkBooleanMacro(IncludeColorAndLuminance, bool);
110 vtkSetMacro(IncludeColorAndLuminance, bool);
111 vtkGetMacro(IncludeColorAndLuminance, bool);
113
114protected:
116 ~vtkPTSReader() override;
117
120
121 char* FileName;
123
125 double ReadBounds[6];
131
132private:
133 vtkPTSReader(const vtkPTSReader&) = delete;
134 void operator=(const vtkPTSReader&) = delete;
135};
136
137#endif
Fast, simple class for representing and operating on 3D bounds.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read ASCII PTS Files.
Definition: vtkPTSReader.h:32
vtkBoundingBox ReadBBox
Definition: vtkPTSReader.h:126
bool OutputDataTypeIsDouble
Definition: vtkPTSReader.h:122
bool LimitReadToBounds
Definition: vtkPTSReader.h:124
char * FileName
Definition: vtkPTSReader.h:121
bool IncludeColorAndLuminance
Definition: vtkPTSReader.h:130
void SetFileName(VTK_FILEPATH const char *filename)
Specify file name.
vtkIdType MaxNumberOfPoints
Definition: vtkPTSReader.h:128
static vtkPTSReader * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPTSReader() override
bool LimitToMaxNumberOfPoints
Definition: vtkPTSReader.h:127
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:332
#define VTK_INT_MAX
Definition: vtkType.h:155
#define VTK_FILEPATH