VTK  9.2.6
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 "vtkBoundingBox.h" // For Bounding Box Data Member
31#include "vtkIOGeometryModule.h" // For export macro
33
34class VTKIOGEOMETRY_EXPORT vtkPTSReader : public vtkPolyDataAlgorithm
35{
36public:
37 static vtkPTSReader* New();
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
45 void SetFileName(VTK_FILEPATH const char* filename);
48
50
54 vtkBooleanMacro(LimitReadToBounds, bool);
55 vtkSetMacro(LimitReadToBounds, bool);
56 vtkGetMacro(LimitReadToBounds, bool);
58
60
63 vtkSetVector6Macro(ReadBounds, double);
64 vtkGetVector6Macro(ReadBounds, double);
66
68
71 vtkBooleanMacro(OutputDataTypeIsDouble, bool);
72 vtkSetMacro(OutputDataTypeIsDouble, bool);
73 vtkGetMacro(OutputDataTypeIsDouble, bool);
75
77
81 vtkBooleanMacro(LimitToMaxNumberOfPoints, bool);
82 vtkSetMacro(LimitToMaxNumberOfPoints, bool);
83 vtkGetMacro(LimitToMaxNumberOfPoints, bool);
85
87
91 vtkSetClampMacro(MaxNumberOfPoints, vtkIdType, 1, VTK_INT_MAX);
92 vtkGetMacro(MaxNumberOfPoints, vtkIdType);
94
96
101 vtkBooleanMacro(CreateCells, bool);
102 vtkSetMacro(CreateCells, bool);
103 vtkGetMacro(CreateCells, bool);
105
107
112 vtkBooleanMacro(IncludeColorAndLuminance, bool);
113 vtkSetMacro(IncludeColorAndLuminance, bool);
114 vtkGetMacro(IncludeColorAndLuminance, bool);
116
117protected:
119 ~vtkPTSReader() override;
120
123
124 char* FileName;
126
128 double ReadBounds[6];
134
135private:
136 vtkPTSReader(const vtkPTSReader&) = delete;
137 void operator=(const vtkPTSReader&) = delete;
138};
139
140#endif
Fast, simple class for representing and operating on 3D bounds.
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read ASCII PTS Files.
vtkBoundingBox ReadBBox
bool OutputDataTypeIsDouble
bool LimitReadToBounds
bool IncludeColorAndLuminance
void SetFileName(VTK_FILEPATH const char *filename)
Specify file name.
vtkIdType MaxNumberOfPoints
static vtkPTSReader * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPTSReader() override
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
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