VTK
vtkPBGLGraphSQLReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPBGLGraphSQLReader.h
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 ----------------------------------------------------------------------------*/
41 #ifndef vtkPBGLGraphSQLReader_h
42 #define vtkPBGLGraphSQLReader_h
43 
44 #include "vtkInfovisParallelModule.h" // For export macro
45 #include "vtkGraphAlgorithm.h"
46 
47 class vtkSQLDatabase;
48 
49 #if !defined(VTK_LEGACY_REMOVE)
50 class VTKINFOVISPARALLEL_EXPORT vtkPBGLGraphSQLReader : public vtkGraphAlgorithm
51 {
52 public:
53  static vtkPBGLGraphSQLReader* New();
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
61  vtkSetMacro(Directed, bool);
62  vtkGetMacro(Directed, bool);
63  vtkBooleanMacro(Directed, bool);
65 
67 
70  virtual void SetDatabase(vtkSQLDatabase* db);
71  vtkGetObjectMacro(Database, vtkSQLDatabase);
73 
75 
78  vtkSetStringMacro(VertexTable);
79  vtkGetStringMacro(VertexTable);
81 
83 
86  vtkSetStringMacro(EdgeTable);
87  vtkGetStringMacro(EdgeTable);
89 
91 
94  vtkSetStringMacro(SourceField);
95  vtkGetStringMacro(SourceField);
97 
99 
102  vtkSetStringMacro(TargetField);
103  vtkGetStringMacro(TargetField);
105 
107 
110  vtkSetStringMacro(VertexIdField);
111  vtkGetStringMacro(VertexIdField);
113 
117  static void GetRange(int rank, int total,
119 
123  void SetDistributionUserData(int procs, vtkIdType verts)
124  { this->DistributionUserData[0] = procs;
125  this->DistributionUserData[1] = verts; }
126 
132  { return this->DistributionUserData; }
133 
134 protected:
137 
138  bool Directed;
140  char* VertexTable;
141  char* EdgeTable;
142  char* SourceField;
143  char* TargetField;
145  vtkIdType DistributionUserData[2];
146 
147  virtual int RequestData(
151 
152  virtual int RequestDataObject(
156 
157 private:
158  vtkPBGLGraphSQLReader(const vtkPBGLGraphSQLReader&) VTK_DELETE_FUNCTION;
159  void operator=(const vtkPBGLGraphSQLReader&) VTK_DELETE_FUNCTION;
160 };
161 
162 #endif //VTK_LEGACY_REMOVE
163 #endif
164 
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:345
Superclass for algorithms that produce only graph as output.
maintain a connection to an sql database
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType * GetDistributionUserData()
Get the user data (# procs, # vertices) used to determine the distribution.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
read a vtkGraph from a database
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetDistributionUserData(int procs, vtkIdType verts)
Set the distribution user data.