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 =========================================================================*/
24 #ifndef vtkPTSReader_h
25 #define vtkPTSReader_h
26 
27 #include "vtkIOGeometryModule.h" // For export macro
28 #include "vtkPolyDataAlgorithm.h"
29 #include "vtkBoundingBox.h" // For Bounding Box Data Member
30 
31 
32 class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
33 {
34 public:
35  static vtkPTSReader *New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  void SetFileName(const char *filename);
44  vtkGetStringMacro(FileName);
46 
48 
52  vtkBooleanMacro(LimitReadToBounds, bool);
53  vtkSetMacro(LimitReadToBounds, bool);
54  vtkGetMacro(LimitReadToBounds, bool);
56 
58 
61  vtkSetVector6Macro(ReadBounds, double);
62  vtkGetVector6Macro(ReadBounds, double);
64 
66 
69  vtkBooleanMacro(OutputDataTypeIsDouble, bool);
70  vtkSetMacro(OutputDataTypeIsDouble, bool);
71  vtkGetMacro(OutputDataTypeIsDouble, bool);
73 
75 
79  vtkBooleanMacro(LimitToMaxNumberOfPoints, bool);
80  vtkSetMacro(LimitToMaxNumberOfPoints, bool);
81  vtkGetMacro(LimitToMaxNumberOfPoints, bool);
83 
85 
89  vtkSetClampMacro(MaxNumberOfPoints,vtkIdType,1,VTK_INT_MAX);
90  vtkGetMacro(MaxNumberOfPoints,vtkIdType);
92 
94 
99  vtkBooleanMacro(CreateCells, bool);
100  vtkSetMacro(CreateCells, bool);
101  vtkGetMacro(CreateCells, bool);
103 
105 
110  vtkBooleanMacro(IncludeColorAndLuminance, bool);
111  vtkSetMacro(IncludeColorAndLuminance, bool);
112  vtkGetMacro(IncludeColorAndLuminance, bool);
114 
115 protected:
116  vtkPTSReader();
117  ~vtkPTSReader() override;
118 
121 
122  char *FileName;
124 
126  double ReadBounds[6];
132 
133 private:
134  vtkPTSReader(const vtkPTSReader&) = delete;
135  void operator=(const vtkPTSReader&) = delete;
136 };
137 
138 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:157
int vtkIdType
Definition: vtkType.h:345
bool LimitReadToBounds
Definition: vtkPTSReader.h:125
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
bool OutputDataTypeIsDouble
Definition: vtkPTSReader.h:123
vtkIdType MaxNumberOfPoints
Definition: vtkPTSReader.h:129
Read ASCII PTS Files.
Definition: vtkPTSReader.h:32
char * FileName
Definition: vtkPTSReader.h:122
bool LimitToMaxNumberOfPoints
Definition: vtkPTSReader.h:128
vtkBoundingBox ReadBBox
Definition: vtkPTSReader.h:127
Store zero or more vtkInformation instances.
bool IncludeColorAndLuminance
Definition: vtkPTSReader.h:131
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Fast Simple Class for dealing with 3D bounds.