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 ----------------------------------------------------------------------------*/
44 #ifndef vtkPBGLGraphSQLReader_h
45 #define vtkPBGLGraphSQLReader_h
46 
47 #include "vtkInfovisParallelModule.h" // For export macro
48 #include "vtkGraphAlgorithm.h"
49 
50 class vtkSQLDatabase;
51 
52 #if !defined(VTK_LEGACY_REMOVE)
53 class VTKINFOVISPARALLEL_EXPORT vtkPBGLGraphSQLReader : public vtkGraphAlgorithm
54 {
55 public:
56  static vtkPBGLGraphSQLReader* New();
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
64  vtkSetMacro(Directed, bool);
65  vtkGetMacro(Directed, bool);
66  vtkBooleanMacro(Directed, bool);
68 
70 
73  virtual void SetDatabase(vtkSQLDatabase* db);
74  vtkGetObjectMacro(Database, vtkSQLDatabase);
76 
78 
81  vtkSetStringMacro(VertexTable);
82  vtkGetStringMacro(VertexTable);
84 
86 
89  vtkSetStringMacro(EdgeTable);
90  vtkGetStringMacro(EdgeTable);
92 
94 
97  vtkSetStringMacro(SourceField);
98  vtkGetStringMacro(SourceField);
100 
102 
105  vtkSetStringMacro(TargetField);
106  vtkGetStringMacro(TargetField);
108 
110 
113  vtkSetStringMacro(VertexIdField);
114  vtkGetStringMacro(VertexIdField);
116 
120  static void GetRange(int rank, int total,
122 
126  void SetDistributionUserData(int procs, vtkIdType verts)
127  { this->DistributionUserData[0] = procs;
128  this->DistributionUserData[1] = verts; }
129 
135  { return this->DistributionUserData; }
136 
137 protected:
140 
141  bool Directed;
143  char* VertexTable;
144  char* EdgeTable;
145  char* SourceField;
146  char* TargetField;
148  vtkIdType DistributionUserData[2];
149 
150  virtual int RequestData(
154 
155  virtual int RequestDataObject(
159 
160 private:
161  vtkPBGLGraphSQLReader(const vtkPBGLGraphSQLReader&) VTK_DELETE_FUNCTION;
162  void operator=(const vtkPBGLGraphSQLReader&) VTK_DELETE_FUNCTION;
163 };
164 
165 #endif //VTK_LEGACY_REMOVE
166 #endif
167 
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:287
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:39
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.