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

vtkWriter Class Reference

#include <vtkWriter.h>

Inheritance diagram for vtkWriter:

Inheritance graph
[legend]
Collaboration diagram for vtkWriter:

Collaboration graph
[legend]
List of all members.

Detailed Description

abstract class to write data to file(s)

vtkWriter is an abstract class for mapper objects that write their data to disk (or into a communications port). All writers respond to Write() method. This method insures that there is input and input is up to date.

Since vtkWriter is a subclass of vtkProcessObject, StartMethod(), EndMethod(), and ProgressMethod() are all available to writers. These methods are executed before and after execution of the Write() method. You can also specify arguments to these methods.

Warning:
Every subclass of vtkWriter must implement a WriteData() method. Most likely will have to create SetInput() method as well.
See also:
vtkBYUWriter vtkDataWriter vtkSTLWriter vtkVoxelWriter vtkMCubesWriter
Events:
vtkCommand::StartEvent vtkCommand::EndEvent
Created by:
  • Schroeder, Will
CVS contributions (if > 5%):
  • Schroeder, Will (48%)
  • Martin, Ken (12%)
  • Cedilnik, Andy (10%)
  • Geveci, Berk (9%)
  • Law, Charles (5%)
CVS logs (CVSweb):
  • .h (/IO/vtkWriter.h)
  • .cxx (/IO/vtkWriter.cxx)

Definition at line 62 of file vtkWriter.h.

Public Types

typedef vtkProcessObject Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Write ()
void Update ()
void EncodeArrayName (char *resname, const char *name)
vtkDataObjectGetInput ()

Static Public Member Functions

int IsTypeOf (const char *type)
vtkWriterSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkWriter ()
 ~vtkWriter ()
virtual void WriteData ()=0

Protected Attributes

vtkTimeStamp WriteTime


Member Typedef Documentation

typedef vtkProcessObject vtkWriter::Superclass
 

Reimplemented from vtkProcessObject.

Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataObjectWriter, vtkDataSetWriter, vtkDataWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter.

Definition at line 65 of file vtkWriter.h.


Constructor & Destructor Documentation

vtkWriter::vtkWriter  )  [protected]
 

vtkWriter::~vtkWriter  )  [protected]
 


Member Function Documentation

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

Reimplemented from vtkProcessObject.

Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataObjectWriter, vtkDataSetWriter, vtkDataWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter.

int vtkWriter::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 vtkProcessObject.

Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataObjectWriter, vtkDataSetWriter, vtkDataWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter.

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

Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataObjectWriter, vtkDataSetWriter, vtkDataWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter.

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

Reimplemented from vtkProcessObject.

Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataObjectWriter, vtkDataSetWriter, vtkDataWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter.

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

Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataObjectWriter, vtkDataSetWriter, vtkDataWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter.

virtual void vtkWriter::Write  )  [virtual]
 

Write data to output. Method executes subclasses WriteData() method, as well as StartMethod() and EndMethod() methods.

Reimplemented in vtkPDataSetWriter.

void vtkWriter::Update  )  [virtual]
 

Convenient alias for Write() method.

Reimplemented from vtkAlgorithm.

void vtkWriter::EncodeArrayName char *  resname,
const char *  name
 

Encode the name so that the reader will not have problems. The resulting string is up to four time the size of the input string.

vtkDataObject* vtkWriter::GetInput  ) 
 

Reimplemented in vtkDataObjectWriter, vtkDataSetWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, and vtkUnstructuredGridWriter.

virtual void vtkWriter::WriteData  )  [protected, pure virtual]
 

Implemented in vtkBYUWriter, vtkCGMWriter, vtkDataObjectWriter, vtkDataSetWriter, vtkDataWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, and vtkUnstructuredGridWriter.


Member Data Documentation

vtkTimeStamp vtkWriter::WriteTime [protected]
 

Definition at line 87 of file vtkWriter.h.


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