#include <vtkSTLReader.h>
Inheritance diagram for vtkSTLReader:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
unsigned long | GetMTime () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetMerging (int) |
virtual int | GetMerging () |
virtual void | MergingOn () |
virtual void | MergingOff () |
void | SetLocator (vtkPointLocator *locator) |
virtual vtkPointLocator * | GetLocator () |
void | CreateDefaultLocator () |
void | SetLocator (vtkPointLocator &locator) |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkSTLReader * | SafeDownCast (vtkObject *o) |
vtkSTLReader * | New () |
Protected Methods | |
vtkSTLReader () | |
~vtkSTLReader () | |
vtkSTLReader (const vtkSTLReader &) | |
void | operator= (const vtkSTLReader &) |
void | Execute () |
int | ReadBinarySTL (FILE *fp, vtkPoints *, vtkCellArray *) |
int | ReadASCIISTL (FILE *fp, vtkPoints *, vtkCellArray *) |
int | GetSTLFileType (FILE *fp) |
Protected Attributes | |
char * | FileName |
int | Merging |
vtkPointLocator * | Locator |
vtkSTLReader is a source object that reads ASCII or binary stereo lithography files (.stl files). The FileName must be specified to vtkSTLReader. The object automatically detects whether the file is ASCII or binary.
.stl files are quite inefficient since they duplicate vertex definitions. By setting the Merging boolean you can control whether the point data is merged after reading. Merging is performed by default, however, merging requires a large amount of temporary storage since a 3D hash table must be constructed.
|
Create default locator. Used to create one when none is specified. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataSource. |
|
Overload standard modified time function. If locator is modified, then this object is modified as well. Reimplemented from vtkObject. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataSource. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataSource. |
|
Construct object with merging set to true. Reimplemented from vtkPolyDataSource. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkSource. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataSource. |
|
Specify file name of stereo lithography file. |
|
For legacy compatibility. Do not use. |
|
Specify a spatial locator for merging points. By default an instance of vtkMergePoints is used. |
|
Turn on/off merging of points/triangles. |