#include <vtkDIMACSGraphReader.h>
vtkDIMACSGraphReader is a source object that reads vtkGraph data files from a DIMACS format. DIMACS graphs are undirected. See webpage for format details. http://dimacs.rutgers.edu/Challenges/ http://www.dis.uniroma1.it/~challenge9/format.shtml
Definition at line 46 of file vtkDIMACSGraphReader.h.
Public Types | |
typedef vtkGraphAlgorithm | 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 *) |
virtual char * | GetVertexAttributeArrayName () |
virtual void | SetVertexAttributeArrayName (const char *) |
virtual char * | GetEdgeAttributeArrayName () |
virtual void | SetEdgeAttributeArrayName (const char *) |
Static Public Member Functions | |
static vtkDIMACSGraphReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkDIMACSGraphReader * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
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) |
vtkDIMACSGraphReader::vtkDIMACSGraphReader | ( | ) | [protected] |
vtkDIMACSGraphReader::~vtkDIMACSGraphReader | ( | ) | [protected] |
static vtkDIMACSGraphReader* vtkDIMACSGraphReader::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkGraphAlgorithm.
virtual const char* vtkDIMACSGraphReader::GetClassName | ( | ) | [virtual] |
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.
static vtkDIMACSGraphReader* vtkDIMACSGraphReader::SafeDownCast | ( | vtkObject * | o | ) | [static] |
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.
virtual char* vtkDIMACSGraphReader::GetVertexAttributeArrayName | ( | ) | [virtual] |
Vertex attribute array name
virtual void vtkDIMACSGraphReader::SetVertexAttributeArrayName | ( | const char * | ) | [virtual] |
Vertex attribute array name
virtual char* vtkDIMACSGraphReader::GetEdgeAttributeArrayName | ( | ) | [virtual] |
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] |
int vtkDIMACSGraphReader::buildColoringGraph | ( | vtkGraph * | output | ) | [protected] |
int vtkDIMACSGraphReader::buildMaxflowGraph | ( | vtkGraph * | output | ) | [protected] |
virtual int vtkDIMACSGraphReader::RequestDataObject | ( | vtkInformation * | , | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
Creates directed or undirected output based on Directed flag.
Reimplemented from vtkGraphAlgorithm.
int vtkDIMACSGraphReader::ReadGraphMetaData | ( | ) | [protected] |