VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkDIMACSGraphWriter Class Reference

write vtkGraph data to a DIMACS formatted file More...

#include <vtkDIMACSGraphWriter.h>

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

List of all members.

Public Types

typedef vtkDataWriter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkDIMACSGraphWriterNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
vtkGraphGetInput ()
vtkGraphGetInput (int port)

Static Public Member Functions

static vtkDIMACSGraphWriterNew ()
static int IsTypeOf (const char *type)
static vtkDIMACSGraphWriterSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkDIMACSGraphWriter ()
 ~vtkDIMACSGraphWriter ()
void WriteData ()
virtual int FillInputPortInformation (int port, vtkInformation *info)

Detailed Description

write vtkGraph data to a DIMACS formatted file

vtkDIMACSGraphWriter is a sink object that writes vtkGraph data files into a generic DIMACS (.gr) format.

Output files contain a problem statement line:

p graph <num_verts> <num_edges>

Followed by |E| edge descriptor lines that are formatted as:

e <source> <target> <weight>

Vertices are numbered from 1..n in DIMACS formatted files.

See webpage for format details. http://prolland.free.fr/works/research/dsat/dimacs.html

See also:
vtkDIMACSGraphReader
Examples:
vtkDIMACSGraphWriter (Examples)

Definition at line 57 of file vtkDIMACSGraphWriter.h.


Member Typedef Documentation

Reimplemented from vtkDataWriter.

Definition at line 61 of file vtkDIMACSGraphWriter.h.


Constructor & Destructor Documentation

Definition at line 71 of file vtkDIMACSGraphWriter.h.

Definition at line 72 of file vtkDIMACSGraphWriter.h.


Member Function Documentation

Created object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates.

Reimplemented from vtkDataWriter.

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

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

Reimplemented from vtkDataWriter.

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

Reimplemented from vtkDataWriter.

Reimplemented from vtkDataWriter.

void vtkDIMACSGraphWriter::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 vtkDataWriter.

Get the input to this writer.

Reimplemented from vtkWriter.

Get the input to this writer.

Reimplemented from vtkWriter.

void vtkDIMACSGraphWriter::WriteData ( ) [protected, virtual]

Reimplemented from vtkDataWriter.

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


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