VTK
vtkDIMACSGraphReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: $RCSfile: vtkDIMACSGraphReader.h,v $
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
61 #ifndef _vtkDIMACSGraphReader_h
62 #define _vtkDIMACSGraphReader_h
63 
64 #include "vtkIOInfovisModule.h" // For export macro
65 #include "vtkGraphAlgorithm.h"
66 #include "vtkStdString.h" // For string API
67 
69 {
70 
71 public:
72 
75  void PrintSelf(ostream& os, vtkIndent indent);
76 
78 
79  vtkGetStringMacro(FileName);
80  vtkSetStringMacro(FileName);
82 
84 
85  vtkGetStringMacro(VertexAttributeArrayName);
86  vtkSetStringMacro(VertexAttributeArrayName);
88 
90 
91  vtkGetStringMacro(EdgeAttributeArrayName);
92  vtkSetStringMacro(EdgeAttributeArrayName);
94 
95 protected:
96 
99 
103 
105  vtkStdString & defaultVertexAttrArrayName,
106  vtkStdString & defaultEdgeAttrArrayName);
107 
110 
112 
114  vtkInformationVector** inputVector,
115  vtkInformationVector* outputVector);
117 
119 
120 private:
121 
122  bool fileOk;
123  bool Directed;
124  char * FileName;
125  char * VertexAttributeArrayName;
126  char * EdgeAttributeArrayName;
127 
128  int numVerts;
129  int numEdges;
130  vtkStdString dimacsProblemStr;
131 
132  vtkDIMACSGraphReader(const vtkDIMACSGraphReader&); // Not implemented.
133  void operator=(const vtkDIMACSGraphReader&); // Not implemented.
134 };
135 
136 #endif // _vtkDIMACSGraphReader_h
vtkStdString.h
vtkDIMACSGraphReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkDIMACSGraphReader::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDIMACSGraphReader::buildMaxflowGraph
int buildMaxflowGraph(vtkGraph *output)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkDIMACSGraphReader::buildColoringGraph
int buildColoringGraph(vtkGraph *output)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkIOInfovisModule.h
vtkDIMACSGraphReader::New
static vtkDIMACSGraphReader * New()
vtkDIMACSGraphReader::~vtkDIMACSGraphReader
~vtkDIMACSGraphReader()
vtkDIMACSGraphReader::buildGenericGraph
int buildGenericGraph(vtkGraph *output, vtkStdString &defaultVertexAttrArrayName, vtkStdString &defaultEdgeAttrArrayName)
vtkDIMACSGraphReader
reads vtkGraph data from a DIMACS formatted file
Definition: vtkDIMACSGraphReader.h:69
vtkGraphAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkDIMACSGraphReader::ReadGraphMetaData
int ReadGraphMetaData()
vtkDIMACSGraphReader::vtkDIMACSGraphReader
vtkDIMACSGraphReader()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
VTKIOINFOVIS_EXPORT
#define VTKIOINFOVIS_EXPORT
Definition: vtkIOInfovisModule.h:15
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkDIMACSGraphReader::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)