VTK
|
write binary marching cubes file More...
#include <vtkMCubesWriter.h>
Public Types | |
typedef vtkWriter | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkMCubesWriter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetLimitsFileName (const char *) |
virtual char * | GetLimitsFileName () |
vtkPolyData * | GetInput () |
vtkPolyData * | GetInput (int port) |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
Static Public Member Functions | |
static vtkMCubesWriter * | New () |
static int | IsTypeOf (const char *type) |
static vtkMCubesWriter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkMCubesWriter () | |
~vtkMCubesWriter () | |
void | WriteData () |
void | WriteMCubes (FILE *fp, vtkPoints *pts, vtkDataArray *normals, vtkCellArray *polys) |
void | WriteLimits (FILE *fp, double *bounds) |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
Protected Attributes | |
char * | LimitsFileName |
char * | FileName |
write binary marching cubes file
vtkMCubesWriter is a polydata writer that writes 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). Each triangle is represented by three records, with each record consisting of six single precision floating point numbers representing the a triangle vertex coordinate and vertex normal.
Definition at line 47 of file vtkMCubesWriter.h.
typedef vtkWriter vtkMCubesWriter::Superclass |
Reimplemented from vtkWriter.
Definition at line 51 of file vtkMCubesWriter.h.
vtkMCubesWriter::vtkMCubesWriter | ( | ) | [protected] |
vtkMCubesWriter::~vtkMCubesWriter | ( | ) | [protected] |
static vtkMCubesWriter* vtkMCubesWriter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
static int vtkMCubesWriter::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 vtkWriter.
virtual int vtkMCubesWriter::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 vtkWriter.
static vtkMCubesWriter* vtkMCubesWriter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkWriter.
virtual vtkObjectBase* vtkMCubesWriter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkWriter.
vtkMCubesWriter* vtkMCubesWriter::NewInstance | ( | ) | const |
Reimplemented from vtkWriter.
void vtkMCubesWriter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
virtual void vtkMCubesWriter::SetLimitsFileName | ( | const char * | ) | [virtual] |
Set/get file name of marching cubes limits file.
virtual char* vtkMCubesWriter::GetLimitsFileName | ( | ) | [virtual] |
Set/get file name of marching cubes limits file.
Get the input to this writer.
Reimplemented from vtkWriter.
vtkPolyData* vtkMCubesWriter::GetInput | ( | int | port | ) |
Get the input to this writer.
Reimplemented from vtkWriter.
virtual void vtkMCubesWriter::SetFileName | ( | const char * | ) | [virtual] |
Specify file name of vtk polygon data file to write.
virtual char* vtkMCubesWriter::GetFileName | ( | ) | [virtual] |
Specify file name of vtk polygon data file to write.
void vtkMCubesWriter::WriteData | ( | ) | [protected, virtual] |
Implements vtkWriter.
void vtkMCubesWriter::WriteMCubes | ( | FILE * | fp, |
vtkPoints * | pts, | ||
vtkDataArray * | normals, | ||
vtkCellArray * | polys | ||
) | [protected] |
void vtkMCubesWriter::WriteLimits | ( | FILE * | fp, |
double * | bounds | ||
) | [protected] |
virtual int vtkMCubesWriter::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkAlgorithm.
char* vtkMCubesWriter::LimitsFileName [protected] |
Definition at line 82 of file vtkMCubesWriter.h.
char* vtkMCubesWriter::FileName [protected] |
Definition at line 84 of file vtkMCubesWriter.h.