vtkSTLReader Class Reference
#include <vtkSTLReader.h>
Inheritance diagram for vtkSTLReader:
[legend]Collaboration diagram for vtkSTLReader:
[legend]List of all members.
Detailed Description
read ASCII or binary stereo lithography files
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.
- Warning:
- Binary files written on one system may not be readable on other systems. vtkSTLWriter uses VAX or PC byte ordering and swaps bytes on other systems.
- Examples:
- vtkSTLReader (Examples)
- Tests:
- vtkSTLReader (Tests)
Definition at line 50 of file vtkSTLReader.h.
Member Typedef Documentation
Constructor & Destructor Documentation
vtkSTLReader::vtkSTLReader |
( |
|
) |
[protected] |
|
vtkSTLReader::~vtkSTLReader |
( |
|
) |
[protected] |
|
Member Function Documentation
virtual const char* vtkSTLReader::GetClassName |
( |
|
) |
[virtual] |
|
static int vtkSTLReader::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm. |
virtual int vtkSTLReader::IsA |
( |
const char * |
type |
) |
[virtual] |
|
|
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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm. |
void vtkSTLReader::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
|
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 vtkPolyDataAlgorithm. |
unsigned long vtkSTLReader::GetMTime |
( |
|
) |
[virtual] |
|
|
Overload standard modified time function. If locator is modified, then this object is modified as well.
Reimplemented from vtkObject. |
virtual void vtkSTLReader::SetFileName |
( |
const char * |
|
) |
[virtual] |
|
|
Specify file name of stereo lithography file. |
virtual char* vtkSTLReader::GetFileName |
( |
|
) |
[virtual] |
|
|
Overload standard modified time function. If locator is modified, then this object is modified as well. |
virtual void vtkSTLReader::SetMerging |
( |
int |
|
) |
[virtual] |
|
|
Turn on/off merging of points/triangles. |
virtual int vtkSTLReader::GetMerging |
( |
|
) |
[virtual] |
|
|
Turn on/off merging of points/triangles. |
virtual void vtkSTLReader::MergingOn |
( |
|
) |
[virtual] |
|
|
Turn on/off merging of points/triangles. |
virtual void vtkSTLReader::MergingOff |
( |
|
) |
[virtual] |
|
|
Turn on/off merging of points/triangles. |
virtual void vtkSTLReader::SetScalarTags |
( |
int |
|
) |
[virtual] |
|
|
Turn on/off tagging of solids with scalars. |
virtual int vtkSTLReader::GetScalarTags |
( |
|
) |
[virtual] |
|
|
Turn on/off tagging of solids with scalars. |
virtual void vtkSTLReader::ScalarTagsOn |
( |
|
) |
[virtual] |
|
|
Turn on/off tagging of solids with scalars. |
virtual void vtkSTLReader::ScalarTagsOff |
( |
|
) |
[virtual] |
|
|
Turn on/off tagging of solids with scalars. |
|
Specify a spatial locator for merging points. By default an instance of vtkMergePoints is used. |
|
Specify a spatial locator for merging points. By default an instance of vtkMergePoints is used. |
void vtkSTLReader::CreateDefaultLocator |
( |
|
) |
|
|
|
Create default locator. Used to create one when none is specified. |
|
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm. |
int vtkSTLReader::GetSTLFileType |
( |
FILE * |
fp |
) |
[protected] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Tue Jan 22 00:18:22 2008 for VTK by
1.4.3-20050530