VTK
|
Reads chaco graph files. More...
#include <vtkChacoGraphReader.h>
Public Types | |
typedef vtkUndirectedGraphAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkChacoGraphReader * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual char * | GetFileName () |
virtual void | SetFileName (const char *) |
Static Public Member Functions | |
static vtkChacoGraphReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkChacoGraphReader * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkChacoGraphReader () | |
~vtkChacoGraphReader () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
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.
Definition at line 56 of file vtkChacoGraphReader.h.
Reimplemented from vtkUndirectedGraphAlgorithm.
Definition at line 60 of file vtkChacoGraphReader.h.
vtkChacoGraphReader::vtkChacoGraphReader | ( | ) | [protected] |
vtkChacoGraphReader::~vtkChacoGraphReader | ( | ) | [protected] |
static vtkChacoGraphReader* vtkChacoGraphReader::New | ( | ) | [static] |
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.
static vtkChacoGraphReader* vtkChacoGraphReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.