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

reads vtkGraph data from a DIMACS formatted file More...

#include <vtkDIMACSGraphReader.h>

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

List of all members.

Public Types

typedef vtkGraphAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkDIMACSGraphReaderNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual char * GetFileName ()
virtual void SetFileName (const char *)
virtual char * GetVertexAttributeArrayName ()
virtual void SetVertexAttributeArrayName (const char *)
virtual char * GetEdgeAttributeArrayName ()
virtual void SetEdgeAttributeArrayName (const char *)

Static Public Member Functions

static vtkDIMACSGraphReaderNew ()
static int IsTypeOf (const char *type)
static vtkDIMACSGraphReaderSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkDIMACSGraphReader ()
 ~vtkDIMACSGraphReader ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int buildGenericGraph (vtkGraph *output, vtkStdString &defaultVertexAttrArrayName, vtkStdString &defaultEdgeAttrArrayName)
int buildColoringGraph (vtkGraph *output)
int buildMaxflowGraph (vtkGraph *output)
int ReadGraphMetaData ()
virtual int RequestDataObject (vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector)

Detailed Description

reads vtkGraph data from a DIMACS formatted file

vtkDIMACSGraphReader is a source object that reads vtkGraph data files from a DIMACS format.

The reader has special handlers for max-flow and graph coloring problems, which are specified in the problem line as 'max' and 'edge' respectively. Other graphs are treated as generic DIMACS files.

DIMACS formatted files consist of lines in which the first character in in column 0 specifies the type of the line.

Generic DIMACS files have the following line types:

DIMACS graphs are undirected and nodes are numbered 1..n

See webpage for additional formatting details.

Definition at line 68 of file vtkDIMACSGraphReader.h.


Member Typedef Documentation

Reimplemented from vtkGraphAlgorithm.

Definition at line 74 of file vtkDIMACSGraphReader.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkGraphAlgorithm.

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

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

Reimplemented from vtkGraphAlgorithm.

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

Reimplemented from vtkGraphAlgorithm.

Reimplemented from vtkGraphAlgorithm.

void vtkDIMACSGraphReader::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 vtkGraphAlgorithm.

virtual char* vtkDIMACSGraphReader::GetFileName ( ) [virtual]

The DIMACS file name.

virtual void vtkDIMACSGraphReader::SetFileName ( const char *  ) [virtual]

The DIMACS file name.

Vertex attribute array name

virtual void vtkDIMACSGraphReader::SetVertexAttributeArrayName ( const char *  ) [virtual]

Vertex attribute array name

Edge attribute array name

virtual void vtkDIMACSGraphReader::SetEdgeAttributeArrayName ( const char *  ) [virtual]

Edge attribute array name

virtual int vtkDIMACSGraphReader::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkGraphAlgorithm.

int vtkDIMACSGraphReader::buildGenericGraph ( vtkGraph output,
vtkStdString defaultVertexAttrArrayName,
vtkStdString defaultEdgeAttrArrayName 
) [protected]
virtual int vtkDIMACSGraphReader::RequestDataObject ( vtkInformation ,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Creates directed or undirected output based on Directed flag.

Reimplemented from vtkGraphAlgorithm.


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