Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkFacetWriter Class Reference

#include <vtkFacetWriter.h>

Inheritance diagram for vtkFacetWriter:

Inheritance graph
Collaboration diagram for vtkFacetWriter:

Collaboration graph
List of all members.

Detailed Description

reads a dataset in Facet format

vtkFacetWriter creates an unstructured grid dataset. It reads ASCII files stored in Facet format

The facet format looks like this: FACET FILE ... nparts Part 1 name 0 npoints 0 0 p1x p1y p1z p2x p2y p2z ... 1 Part 1 name ncells npointspercell p1c1 p2c1 p3c1 ... pnc1 materialnum partnum p1c2 p2c2 p3c2 ... pnc2 materialnum partnum ...

Definition at line 45 of file vtkFacetWriter.h.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void Write ()
void WriteToStream (ostream *ost)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetFileName (const char *)
virtual char * GetFileName ()

Static Public Member Functions

static vtkFacetWriterNew ()
static int IsTypeOf (const char *type)
static vtkFacetWriterSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkFacetWriter ()
 ~vtkFacetWriter ()
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation (int, vtkInformation *)
int WriteDataToStream (ostream *ost, vtkPolyData *data)

Protected Attributes

char * FileName
ostream * OutputStream

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkFacetWriter::Superclass

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 49 of file vtkFacetWriter.h.

Constructor & Destructor Documentation

vtkFacetWriter::vtkFacetWriter  )  [protected]

vtkFacetWriter::~vtkFacetWriter  )  [protected]

Member Function Documentation

static vtkFacetWriter* vtkFacetWriter::New  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

virtual const char* vtkFacetWriter::GetClassName  )  [virtual]

Reimplemented from vtkPolyDataAlgorithm.

static int vtkFacetWriter::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 vtkFacetWriter::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.

static vtkFacetWriter* vtkFacetWriter::SafeDownCast vtkObject o  )  [static]

Reimplemented from vtkPolyDataAlgorithm.

void vtkFacetWriter::PrintSelf ostream &  os,
vtkIndent  indent

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.

virtual void vtkFacetWriter::SetFileName const char *   )  [virtual]

Specify file name of Facet datafile to read

virtual char* vtkFacetWriter::GetFileName  )  [virtual]

void vtkFacetWriter::Write  ) 

Write data

void vtkFacetWriter::WriteToStream ostream *  ost  ) 

virtual int vtkFacetWriter::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.

virtual int vtkFacetWriter::FillInputPortInformation int  ,
[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 vtkPolyDataAlgorithm.

int vtkFacetWriter::WriteDataToStream ostream *  ost,
vtkPolyData data

Member Data Documentation

char* vtkFacetWriter::FileName [protected]

Definition at line 81 of file vtkFacetWriter.h.

ostream* vtkFacetWriter::OutputStream [protected]

Definition at line 82 of file vtkFacetWriter.h.

The documentation for this class was generated from the following file:
Generated on Mon Jan 21 23:43:56 2008 for VTK by  doxygen 1.4.3-20050530