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 
84 
85 protected:
88 
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
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkSTLReader::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
vtkIOGeometryModule.h
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:49
vtkSTLReader
read ASCII or binary stereo lithography files
Definition: vtkSTLReader.h:52
vtkSTLReader::ReadASCIISTL
bool ReadASCIISTL(FILE *fp, vtkPoints *, vtkCellArray *, vtkFloatArray *scalars=0)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSTLReader::New
static vtkSTLReader * New()
VTKIOGEOMETRY_EXPORT
#define VTKIOGEOMETRY_EXPORT
Definition: vtkIOGeometryModule.h:15
vtkSTLReader::~vtkSTLReader
~vtkSTLReader()
vtkAbstractPolyDataReader
Superclass for algorithms that read models from a file.
Definition: vtkAbstractPolyDataReader.h:36
vtkSTLReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSTLReader::Merging
int Merging
Definition: vtkSTLReader.h:92
vtkSTLReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSTLReader::GetSTLFileType
int GetSTLFileType(const char *filename)
vtkSTLReader::vtkSTLReader
vtkSTLReader()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkSTLReader::NewDefaultLocator
vtkIncrementalPointLocator * NewDefaultLocator()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkSTLReader::ReadBinarySTL
bool ReadBinarySTL(FILE *fp, vtkPoints *, vtkCellArray *)
vtkAbstractPolyDataReader.h
vtkSTLReader::ScalarTags
int ScalarTags
Definition: vtkSTLReader.h:93
vtkSTLReader::GetMTime
unsigned long GetMTime()
vtkSTLReader::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkSTLReader.h:94