Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkWriter Class Reference

abstract class to write data to file(s). More...

#include <vtkWriter.h>

Inheritance diagram for vtkWriter:

Inheritance graph
[legend]
Collaboration diagram for vtkWriter:

Collaboration graph
[legend]
List of all members.

Public Methods

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

Static Public Methods

int IsTypeOf (const char *type)
vtkWriter * SafeDownCast (vtkObject *o)

Protected Methods

 vtkWriter ()
 ~vtkWriter ()
 vtkWriter (const vtkWriter &)
void operator= (const vtkWriter &)
virtual void WriteData ()=0

Protected Attributes

vtkTimeStamp WriteTime

Detailed Description

abstract class to write data to file(s).

Date:
2000/12/10 20:09:01
Revision:
1.39

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

Definition at line 71 of file vtkWriter.h.


Constructor & Destructor Documentation

vtkWriter::vtkWriter   [protected]
 

vtkWriter::~vtkWriter   [protected]
 

vtkWriter::vtkWriter const vtkWriter &    [inline, protected]
 

Definition at line 90 of file vtkWriter.h.


Member Function Documentation

virtual const char* vtkWriter::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProcessObject.

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

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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProcessObject.

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

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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProcessObject.

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

vtkWriter* vtkWriter::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProcessObject.

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

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 vtkCGMWriter, vtkBYUWriter, vtkDataObjectWriter, vtkDataSetWriter, vtkDataWriter, vtkMCubesWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, and vtkUnstructuredGridWriter.

virtual void vtkWriter::Write   [virtual]
 

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

void vtkWriter::Update void   
 

Convenient alias for Write() method.

vtkDataObject* vtkWriter::GetInput  
 

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

void vtkWriter::operator= const vtkWriter &    [inline, protected]
 

Definition at line 91 of file vtkWriter.h.

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

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


Member Data Documentation

vtkTimeStamp vtkWriter::WriteTime [protected]
 

Definition at line 94 of file vtkWriter.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:03:32 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001