VTK
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 =========================================================================*/
27 #ifndef vtkPTSReader_h
28 #define vtkPTSReader_h
29 
30 #include "vtkIOGeometryModule.h" // For export macro
31 #include "vtkPolyDataAlgorithm.h"
32 #include "vtkBoundingBox.h" // For Bounding Box Data Member
33 
34 
35 class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
36 {
37 public:
38  static vtkPTSReader *New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  void SetFileName(const char *filename);
47  vtkGetStringMacro(FileName);
49 
51 
55  vtkBooleanMacro(LimitReadToBounds, bool);
56  vtkSetMacro(LimitReadToBounds, bool);
57  vtkGetMacro(LimitReadToBounds, bool);
59 
61 
64  vtkSetVector6Macro(ReadBounds, double);
65  vtkGetVector6Macro(ReadBounds, double);
67 
69 
72  vtkBooleanMacro(OutputDataTypeIsDouble, bool);
73  vtkSetMacro(OutputDataTypeIsDouble, bool);
74  vtkGetMacro(OutputDataTypeIsDouble, bool);
76 
78 
82  vtkBooleanMacro(LimitToMaxNumberOfPoints, bool);
83  vtkSetMacro(LimitToMaxNumberOfPoints, bool);
84  vtkGetMacro(LimitToMaxNumberOfPoints, bool);
86 
88 
92  vtkSetClampMacro(MaxNumberOfPoints,vtkIdType,1,VTK_INT_MAX);
93  vtkGetMacro(MaxNumberOfPoints,vtkIdType);
95 
97 
102  vtkBooleanMacro(CreateCells, bool);
103  vtkSetMacro(CreateCells, bool);
104  vtkGetMacro(CreateCells, bool);
106 
108 
113  vtkBooleanMacro(IncludeColorAndLuminance, bool);
114  vtkSetMacro(IncludeColorAndLuminance, bool);
115  vtkGetMacro(IncludeColorAndLuminance, bool);
117 
118 protected:
119  vtkPTSReader();
120  ~vtkPTSReader() override;
121 
124 
125  char *FileName;
127 
129  double ReadBounds[6];
135 
136 private:
137  vtkPTSReader(const vtkPTSReader&) = delete;
138  void operator=(const vtkPTSReader&) = delete;
139 };
140 
141 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:159
vtkPTSReader::IncludeColorAndLuminance
bool IncludeColorAndLuminance
Definition: vtkPTSReader.h:134
vtkPTSReader::LimitReadToBounds
bool LimitReadToBounds
Definition: vtkPTSReader.h:128
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
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:35
vtkPTSReader::MaxNumberOfPoints
vtkIdType MaxNumberOfPoints
Definition: vtkPTSReader.h:132
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:39
vtkPTSReader::LimitToMaxNumberOfPoints
bool LimitToMaxNumberOfPoints
Definition: vtkPTSReader.h:131
vtkBoundingBox.h
vtkPTSReader::ReadBBox
vtkBoundingBox ReadBBox
Definition: vtkPTSReader.h:130
vtkPTSReader::CreateCells
bool CreateCells
Definition: vtkPTSReader.h:133
vtkPTSReader
Read ASCII PTS Files.
Definition: vtkPTSReader.h:35
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkPTSReader::OutputDataTypeIsDouble
bool OutputDataTypeIsDouble
Definition: vtkPTSReader.h:126
vtkPTSReader::FileName
char * FileName
Definition: vtkPTSReader.h:125
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:44