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

Reads chaco graph files. More...

#include <vtkChacoGraphReader.h>

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

List of all members.

Public Types

typedef vtkUndirectedGraphAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkChacoGraphReaderNewInstance () const
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 (vtkObjectBase *o)

Protected Member Functions

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

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 56 of file vtkChacoGraphReader.h.


Member Typedef Documentation

Reimplemented from vtkUndirectedGraphAlgorithm.

Definition at line 60 of file vtkChacoGraphReader.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 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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkUndirectedGraphAlgorithm.

Reimplemented from vtkUndirectedGraphAlgorithm.

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

Reimplemented from vtkUndirectedGraphAlgorithm.

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: