VTK
vtkSTLReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSTLReader.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 =========================================================================*/
41 #ifndef vtkSTLReader_h
42 #define vtkSTLReader_h
43 
44 #include "vtkIOGeometryModule.h" // For export macro
46 
47 class vtkCellArray;
48 class vtkFloatArray;
50 class vtkPoints;
51 
52 class VTKIOGEOMETRY_EXPORT vtkSTLReader : public vtkAbstractPolyDataReader
53 {
54 public:
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
61  static vtkSTLReader *New();
62 
68 
70 
73  vtkSetMacro(Merging,int);
74  vtkGetMacro(Merging,int);
75  vtkBooleanMacro(Merging,int);
77 
79 
82  vtkSetMacro(ScalarTags,int);
83  vtkGetMacro(ScalarTags,int);
84  vtkBooleanMacro(ScalarTags,int);
86 
88 
93  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
95 
96 protected:
99 
104 
105  int Merging;
108 
112  vtkFloatArray* scalars=0);
113  int GetSTLFileType(const char *filename);
114 private:
115  vtkSTLReader(const vtkSTLReader&) VTK_DELETE_FUNCTION;
116  void operator=(const vtkSTLReader&) VTK_DELETE_FUNCTION;
117 };
118 
119 #endif
Superclass for algorithms that read models from a file.
object to represent cell connectivity
Definition: vtkCellArray.h:51
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:40
read ASCII or binary stereo lithography files
Definition: vtkSTLReader.h:53
vtkMTimeType GetMTime()
Overload standard modified time function.
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
bool ReadASCIISTL(FILE *fp, vtkPoints *, vtkCellArray *, vtkFloatArray *scalars=0)
vtkIncrementalPointLocator * Locator
Definition: vtkSTLReader.h:107
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkSTLReader * New()
Construct object with merging set to true.
int GetSTLFileType(const char *filename)
vtkIncrementalPointLocator * NewDefaultLocator()
Create default locator.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool ReadBinarySTL(FILE *fp, vtkPoints *, vtkCellArray *)
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248