VTK
|
A directed graph. More...
#include <vtkDirectedGraph.h>
Public Types | |
typedef vtkGraph | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkDirectedGraph * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | GetDataObjectType () |
virtual bool | IsStructureValid (vtkGraph *g) |
Static Public Member Functions | |
static vtkDirectedGraph * | New () |
static int | IsTypeOf (const char *type) |
static vtkDirectedGraph * | SafeDownCast (vtkObjectBase *o) |
static vtkDirectedGraph * | GetData (vtkInformation *info) |
static vtkDirectedGraph * | GetData (vtkInformationVector *v, int i=0) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkDirectedGraph () | |
~vtkDirectedGraph () |
A directed graph.
vtkDirectedGraph is a collection of vertices along with a collection of directed edges (edges that have a source and target). ShallowCopy() and DeepCopy() (and CheckedShallowCopy(), CheckedDeepCopy()) accept instances of vtkTree and vtkMutableDirectedGraph.
vtkDirectedGraph is read-only. To create an undirected graph, use an instance of vtkMutableDirectedGraph, then you may set the structure to a vtkDirectedGraph using ShallowCopy().
Including this header allows you to use a vtkDirectedGraph* in boost algorithms. To do this, first wrap the class in a vtkDirectedGraph* or vtkUndirectedGraph* depending on whether your graph is directed or undirected. You may then use these objects directly in boost graph algorithms.
Definition at line 46 of file vtkDirectedGraph.h.
typedef vtkGraph vtkDirectedGraph::Superclass |
Reimplemented from vtkGraph.
Reimplemented in vtkReebGraph, vtkTree, vtkDirectedAcyclicGraph, and vtkMutableDirectedGraph.
Definition at line 50 of file vtkDirectedGraph.h.
vtkDirectedGraph::vtkDirectedGraph | ( | ) | [protected] |
vtkDirectedGraph::~vtkDirectedGraph | ( | ) | [protected] |
static vtkDirectedGraph* vtkDirectedGraph::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkDataObject.
Reimplemented in vtkReebGraph, vtkTree, vtkDirectedAcyclicGraph, and vtkMutableDirectedGraph.
static int vtkDirectedGraph::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 vtkGraph.
Reimplemented in vtkReebGraph, vtkTree, vtkDirectedAcyclicGraph, and vtkMutableDirectedGraph.
virtual int vtkDirectedGraph::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 vtkGraph.
Reimplemented in vtkReebGraph, vtkTree, vtkDirectedAcyclicGraph, and vtkMutableDirectedGraph.
static vtkDirectedGraph* vtkDirectedGraph::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkGraph.
Reimplemented in vtkReebGraph, vtkTree, vtkDirectedAcyclicGraph, and vtkMutableDirectedGraph.
virtual vtkObjectBase* vtkDirectedGraph::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkGraph.
Reimplemented in vtkReebGraph, vtkTree, vtkDirectedAcyclicGraph, and vtkMutableDirectedGraph.
vtkDirectedGraph* vtkDirectedGraph::NewInstance | ( | ) | const |
Reimplemented from vtkGraph.
Reimplemented in vtkReebGraph, vtkTree, vtkDirectedAcyclicGraph, and vtkMutableDirectedGraph.
void vtkDirectedGraph::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 vtkGraph.
Reimplemented in vtkReebGraph, vtkTree, vtkDirectedAcyclicGraph, and vtkMutableDirectedGraph.
virtual int vtkDirectedGraph::GetDataObjectType | ( | ) | [inline, virtual] |
Return what type of dataset this is.
Reimplemented from vtkGraph.
Reimplemented in vtkReebGraph, vtkTree, and vtkDirectedAcyclicGraph.
Definition at line 54 of file vtkDirectedGraph.h.
static vtkDirectedGraph* vtkDirectedGraph::GetData | ( | vtkInformation * | info | ) | [static] |
Retrieve a graph from an information vector.
Reimplemented from vtkGraph.
Reimplemented in vtkTree, and vtkDirectedAcyclicGraph.
static vtkDirectedGraph* vtkDirectedGraph::GetData | ( | vtkInformationVector * | v, |
int | i = 0 |
||
) | [static] |
Retrieve a graph from an information vector.
Reimplemented from vtkGraph.
Reimplemented in vtkTree, and vtkDirectedAcyclicGraph.
virtual bool vtkDirectedGraph::IsStructureValid | ( | vtkGraph * | g | ) | [virtual] |
Check the storage, and accept it if it is a valid undirected graph. This is public to allow the ToDirected/UndirectedGraph to work.
Implements vtkGraph.
Reimplemented in vtkTree, and vtkDirectedAcyclicGraph.