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 =========================================================================*/
40 #ifndef vtkSTLReader_h
41 #define vtkSTLReader_h
42 
43 #include "vtkIOGeometryModule.h" // For export macro
45 
46 class vtkCellArray;
47 class vtkFloatArray;
49 class vtkPoints;
50 
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58  static vtkSTLReader *New();
59 
62  unsigned long GetMTime();
63 
65 
66  vtkSetMacro(Merging,int);
67  vtkGetMacro(Merging,int);
68  vtkBooleanMacro(Merging,int);
70 
72 
73  vtkSetMacro(ScalarTags,int);
74  vtkGetMacro(ScalarTags,int);
75  vtkBooleanMacro(ScalarTags,int);
77 
79 
81  void SetLocator(vtkIncrementalPointLocator *locator);
82  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
84 
85 protected:
86  vtkSTLReader();
87  ~vtkSTLReader();
88 
90  vtkIncrementalPointLocator* NewDefaultLocator();
91 
92  int Merging;
95 
97  bool ReadBinarySTL(FILE *fp, vtkPoints*, vtkCellArray*);
98  bool ReadASCIISTL(FILE *fp, vtkPoints*, vtkCellArray*,
99  vtkFloatArray* scalars=0);
100  int GetSTLFileType(const char *filename);
101 private:
102  vtkSTLReader(const vtkSTLReader&); // Not implemented.
103  void operator=(const vtkSTLReader&); // Not implemented.
104 };
105 
106 #endif
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
read ASCII or binary stereo lithography files
Definition: vtkSTLReader.h:51
Abstract class in support of both point location and point insertion.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
#define VTKIOGEOMETRY_EXPORT
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that read models from a file.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkIncrementalPointLocator * Locator
Definition: vtkSTLReader.h:94
object to represent cell connectivity
Definition: vtkCellArray.h:49
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38