VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMCubesWriter Class Reference

write binary marching cubes file More...

#include <vtkMCubesWriter.h>

Inheritance diagram for vtkMCubesWriter:
Inheritance graph
[legend]
Collaboration diagram for vtkMCubesWriter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkWriter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkMCubesWriterNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetLimitsFileName (const char *)
virtual char * GetLimitsFileName ()
vtkPolyDataGetInput ()
vtkPolyDataGetInput (int port)
virtual void SetFileName (const char *)
virtual char * GetFileName ()

Static Public Member Functions

static vtkMCubesWriterNew ()
static int IsTypeOf (const char *type)
static vtkMCubesWriterSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () 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

Detailed Description

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.

Warning:
Binary files are written in sun/hp/sgi (i.e., Big Endian) form.
See also:
vtkMarchingCubes vtkSliceCubes vtkMCubesReader
Tests:
vtkMCubesWriter (Tests)

Definition at line 47 of file vtkMCubesWriter.h.


Member Typedef Documentation

Reimplemented from vtkWriter.

Definition at line 51 of file vtkMCubesWriter.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkWriter.

virtual vtkObjectBase* vtkMCubesWriter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkWriter.

Reimplemented from vtkWriter.

void vtkMCubesWriter::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 vtkWriter.

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.

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.


Member Data Documentation

Definition at line 82 of file vtkMCubesWriter.h.

char* vtkMCubesWriter::FileName [protected]

Definition at line 84 of file vtkMCubesWriter.h.


The documentation for this class was generated from the following file: