vtkChacoGraphReader Class Reference

#include <vtkChacoGraphReader.h>

Inheritance diagram for vtkChacoGraphReader:

Inheritance graph
[legend]
Collaboration diagram for vtkChacoGraphReader:

Collaboration graph
[legend]

List of all members.


Detailed Description

Reads chaco graph files.

vtkChacoGraphReader reads in files in the Chaco format into a vtkGraph. An example is the following 10 13 2 6 10 1 3 2 4 8 3 5 4 6 10 1 5 7 6 8 3 7 9 8 10 1 5 9 The first line specifies the number of vertices and edges in the graph. Each additional line contains the vertices adjacent to a particular vertex. In this example, vertex 1 is adjacent to 2, 6 and 10, vertex 2 is adjacent to 1 and 3, etc. Since Chaco ids start at 1 and VTK ids start at 0, the vertex ids in the vtkGraph will be 1 less than the Chaco ids.

Tests:
vtkChacoGraphReader (Tests)

Definition at line 55 of file vtkChacoGraphReader.h.


Public Types

typedef vtkUndirectedGraphAlgorithm Superclass

Public Member Functions

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

Static Public Member Functions

static vtkChacoGraphReaderNew ()
static int IsTypeOf (const char *type)
static vtkChacoGraphReaderSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkChacoGraphReader ()
 ~vtkChacoGraphReader ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Member Typedef Documentation

Reimplemented from vtkUndirectedGraphAlgorithm.

Definition at line 59 of file vtkChacoGraphReader.h.


Constructor & Destructor Documentation

vtkChacoGraphReader::vtkChacoGraphReader (  )  [protected]

vtkChacoGraphReader::~vtkChacoGraphReader (  )  [protected]


Member Function Documentation

static vtkChacoGraphReader* vtkChacoGraphReader::New (  )  [static]

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

Reimplemented from vtkUndirectedGraphAlgorithm.

virtual const char* vtkChacoGraphReader::GetClassName (  )  [virtual]

Reimplemented from vtkUndirectedGraphAlgorithm.

static int vtkChacoGraphReader::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkUndirectedGraphAlgorithm.

virtual int vtkChacoGraphReader::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkUndirectedGraphAlgorithm.

static vtkChacoGraphReader* vtkChacoGraphReader::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkUndirectedGraphAlgorithm.

void vtkChacoGraphReader::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 vtkUndirectedGraphAlgorithm.

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

The Chaco file name.

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

The Chaco file name.

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

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

Reimplemented from vtkUndirectedGraphAlgorithm.


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

Generated on Sat Dec 27 13:19:36 2008 for VTK by  doxygen 1.5.6