VTK
|
read binary marching cubes file More...
#include <vtkMCubesReader.h>
read binary marching cubes file
vtkMCubesReader is a source object that reads binary marching cubes files. (Marching cubes is an isosurfacing technique that generates many triangles.) The binary format is supported by W. Lorensen's marching cubes program (and the vtkSliceCubes object). The format repeats point coordinates, so this object will merge the points with a vtkLocator object. You can choose to supply the vtkLocator or use the default.
Definition at line 66 of file vtkMCubesReader.h.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 69 of file vtkMCubesReader.h.
vtkMCubesReader::vtkMCubesReader | ( | ) | [protected] |
vtkMCubesReader::~vtkMCubesReader | ( | ) | [protected] |
static int vtkMCubesReader::IsTypeOf | ( | const char * | name | ) | [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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkMCubesReader::IsA | ( | const char * | name | ) | [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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
static vtkMCubesReader* vtkMCubesReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
virtual vtkObjectBase* vtkMCubesReader::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataAlgorithm.
vtkMCubesReader* vtkMCubesReader::NewInstance | ( | ) | const |
Reimplemented from vtkPolyDataAlgorithm.
void vtkMCubesReader::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.
static vtkMCubesReader* vtkMCubesReader::New | ( | ) | [static] |
Construct object with FlipNormals turned off and Normals set to true.
Reimplemented from vtkPolyDataAlgorithm.
virtual void vtkMCubesReader::SetFileName | ( | const char * | ) | [virtual] |
Specify file name of marching cubes file.
virtual char* vtkMCubesReader::GetFileName | ( | ) | [virtual] |
Specify file name of marching cubes file.
virtual void vtkMCubesReader::SetLimitsFileName | ( | const char * | ) | [virtual] |
Set / get the file name of the marching cubes limits file.
virtual char* vtkMCubesReader::GetLimitsFileName | ( | ) | [virtual] |
Set / get the file name of the marching cubes limits file.
virtual void vtkMCubesReader::SetHeaderSize | ( | int | ) | [virtual] |
Specify a header size if one exists. The header is skipped and not used at this time.
virtual int vtkMCubesReader::GetHeaderSize | ( | ) | [virtual] |
Specify a header size if one exists. The header is skipped and not used at this time.
virtual void vtkMCubesReader::SetFlipNormals | ( | int | ) | [virtual] |
Specify whether to flip normals in opposite direction. Flipping ONLY changes the direction of the normal vector. Contrast this with flipping in vtkPolyDataNormals which flips both the normal and the cell point order.
virtual int vtkMCubesReader::GetFlipNormals | ( | ) | [virtual] |
Specify whether to flip normals in opposite direction. Flipping ONLY changes the direction of the normal vector. Contrast this with flipping in vtkPolyDataNormals which flips both the normal and the cell point order.
virtual void vtkMCubesReader::FlipNormalsOn | ( | ) | [virtual] |
Specify whether to flip normals in opposite direction. Flipping ONLY changes the direction of the normal vector. Contrast this with flipping in vtkPolyDataNormals which flips both the normal and the cell point order.
virtual void vtkMCubesReader::FlipNormalsOff | ( | ) | [virtual] |
Specify whether to flip normals in opposite direction. Flipping ONLY changes the direction of the normal vector. Contrast this with flipping in vtkPolyDataNormals which flips both the normal and the cell point order.
virtual void vtkMCubesReader::SetNormals | ( | int | ) | [virtual] |
Specify whether to read normals.
virtual int vtkMCubesReader::GetNormals | ( | ) | [virtual] |
Specify whether to read normals.
virtual void vtkMCubesReader::NormalsOn | ( | ) | [virtual] |
Specify whether to read normals.
virtual void vtkMCubesReader::NormalsOff | ( | ) | [virtual] |
Specify whether to read normals.
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.
void vtkMCubesReader::SetDataByteOrder | ( | int | ) |
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.
const char* vtkMCubesReader::GetDataByteOrderAsString | ( | ) |
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.
virtual void vtkMCubesReader::SetSwapBytes | ( | int | ) | [virtual] |
Turn on/off byte swapping.
virtual int vtkMCubesReader::GetSwapBytes | ( | ) | [virtual] |
Turn on/off byte swapping.
virtual void vtkMCubesReader::SwapBytesOn | ( | ) | [virtual] |
Turn on/off byte swapping.
virtual void vtkMCubesReader::SwapBytesOff | ( | ) | [virtual] |
Turn on/off byte swapping.
void vtkMCubesReader::SetLocator | ( | vtkIncrementalPointLocator * | locator | ) |
Set / get a spatial locator for merging points. By default, an instance of vtkMergePoints is used.
virtual vtkIncrementalPointLocator* vtkMCubesReader::GetLocator | ( | ) | [virtual] |
Set / get a spatial locator for merging points. By default, an instance of vtkMergePoints is used.
Create default locator. Used to create one when none is specified.
unsigned long vtkMCubesReader::GetMTime | ( | ) | [virtual] |
Return the mtime also considering the locator.
Reimplemented from vtkObject.
int vtkMCubesReader::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm.
char* vtkMCubesReader::FileName [protected] |
Definition at line 155 of file vtkMCubesReader.h.
char* vtkMCubesReader::LimitsFileName [protected] |
Definition at line 156 of file vtkMCubesReader.h.
vtkIncrementalPointLocator* vtkMCubesReader::Locator [protected] |
Definition at line 157 of file vtkMCubesReader.h.
int vtkMCubesReader::SwapBytes [protected] |
Definition at line 158 of file vtkMCubesReader.h.
int vtkMCubesReader::HeaderSize [protected] |
Definition at line 159 of file vtkMCubesReader.h.
int vtkMCubesReader::FlipNormals [protected] |
Definition at line 160 of file vtkMCubesReader.h.
int vtkMCubesReader::Normals [protected] |
Definition at line 161 of file vtkMCubesReader.h.