VTK  9.0.1
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
29 #include "vtkPolyDataAlgorithm.h"
30 
31 class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
32 {
33 public:
34  static vtkPTSReader* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  void SetFileName(const char* filename);
43  vtkGetStringMacro(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 
114 protected:
115  vtkPTSReader();
116  ~vtkPTSReader() override;
117 
120 
121  char* FileName;
123 
125  double ReadBounds[6];
131 
132 private:
133  vtkPTSReader(const vtkPTSReader&) = delete;
134  void operator=(const vtkPTSReader&) = delete;
135 };
136 
137 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkPTSReader::IncludeColorAndLuminance
bool IncludeColorAndLuminance
Definition: vtkPTSReader.h:130
vtkPTSReader::LimitReadToBounds
bool LimitReadToBounds
Definition: vtkPTSReader.h:124
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkBoundingBox
Fast, simple class for dealing with 3D bounds.
Definition: vtkBoundingBox.h:34
vtkPTSReader::MaxNumberOfPoints
vtkIdType MaxNumberOfPoints
Definition: vtkPTSReader.h:128
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkPTSReader::LimitToMaxNumberOfPoints
bool LimitToMaxNumberOfPoints
Definition: vtkPTSReader.h:127
vtkBoundingBox.h
vtkPTSReader::ReadBBox
vtkBoundingBox ReadBBox
Definition: vtkPTSReader.h:126
vtkPTSReader::CreateCells
bool CreateCells
Definition: vtkPTSReader.h:129
vtkPTSReader
Read ASCII PTS Files.
Definition: vtkPTSReader.h:31
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPTSReader::OutputDataTypeIsDouble
bool OutputDataTypeIsDouble
Definition: vtkPTSReader.h:122
vtkPTSReader::FileName
char * FileName
Definition: vtkPTSReader.h:121
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41