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 =========================================================================*/
26 #ifndef vtkPTSReader_h
27 #define vtkPTSReader_h
28 
29 #include "vtkIOGeometryModule.h" // For export macro
30 #include "vtkPolyDataAlgorithm.h"
31 #include "vtkBoundingBox.h" // For Bounding Box Data Member
32 
33 
35 {
36 public:
37  static vtkPTSReader *New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  void SetFileName(const char *filename);
44  vtkGetStringMacro(FileName);
46 
48 
50  vtkBooleanMacro(LimitReadToBounds, bool);
51  vtkSetMacro(LimitReadToBounds, bool);
52  vtkGetMacro(LimitReadToBounds, bool);
54 
56 
57  vtkSetVector6Macro(ReadBounds, double);
58  vtkGetVector6Macro(ReadBounds, double);
60 
62 
63  vtkBooleanMacro(OutputDataTypeIsDouble, bool);
64  vtkSetMacro(OutputDataTypeIsDouble, bool);
65  vtkGetMacro(OutputDataTypeIsDouble, bool);
67 
69 
71  vtkBooleanMacro(LimitToMaxNumberOfPoints, bool);
72  vtkSetMacro(LimitToMaxNumberOfPoints, bool);
73  vtkGetMacro(LimitToMaxNumberOfPoints, bool);
75 
77 
79  vtkSetClampMacro(MaxNumberOfPoints,vtkIdType,1,VTK_INT_MAX);
80  vtkGetMacro(MaxNumberOfPoints,vtkIdType);
82 
83 protected:
84  vtkPTSReader();
85  ~vtkPTSReader();
86 
89 
90  char *FileName;
92 
94  double ReadBounds[6];
98 
99 private:
100  vtkPTSReader(const vtkPTSReader&); // Not implemented.
101  void operator=(const vtkPTSReader&); // Not implemented.
102 };
103 
104 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:130
int vtkIdType
Definition: vtkType.h:247
bool LimitReadToBounds
Definition: vtkPTSReader.h:93
#define VTKIOGEOMETRY_EXPORT
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
bool OutputDataTypeIsDouble
Definition: vtkPTSReader.h:91
vtkIdType MaxNumberOfPoints
Definition: vtkPTSReader.h:97
Read ASCII PTS Files.
Definition: vtkPTSReader.h:34
char * FileName
Definition: vtkPTSReader.h:90
bool LimitToMaxNumberOfPoints
Definition: vtkPTSReader.h:96
vtkBoundingBox ReadBBox
Definition: vtkPTSReader.h:95
Store zero or more vtkInformation instances.
Fast Simple Class for dealing with 3D bounds.