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 
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPBGLGraphSQLReader::EdgeTable
char * EdgeTable
Definition: vtkPBGLGraphSQLReader.h:144
vtkPBGLGraphSQLReader::VertexIdField
char * VertexIdField
Definition: vtkPBGLGraphSQLReader.h:147
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAlgorithm.h
vtkX3D::offset
@ offset
Definition: vtkX3D.h:438
vtkGraphAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPBGLGraphSQLReader::Database
vtkSQLDatabase * Database
Definition: vtkPBGLGraphSQLReader.h:142
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPBGLGraphSQLReader::SourceField
char * SourceField
Definition: vtkPBGLGraphSQLReader.h:145
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkPBGLGraphSQLReader::Directed
bool Directed
Definition: vtkPBGLGraphSQLReader.h:141
vtkPBGLGraphSQLReader::SetDistributionUserData
void SetDistributionUserData(int procs, vtkIdType verts)
Set the distribution user data.
Definition: vtkPBGLGraphSQLReader.h:126
vtkPBGLGraphSQLReader::VertexTable
char * VertexTable
Definition: vtkPBGLGraphSQLReader.h:143
vtkPBGLGraphSQLReader::TargetField
char * TargetField
Definition: vtkPBGLGraphSQLReader.h:146
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkPBGLGraphSQLReader::GetDistributionUserData
vtkIdType * GetDistributionUserData()
Get the user data (# procs, # vertices) used to determine the distribution.
Definition: vtkPBGLGraphSQLReader.h:134
vtkPBGLGraphSQLReader
read a vtkGraph from a database
Definition: vtkPBGLGraphSQLReader.h:53
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()
vtkSQLDatabase
maintain a connection to an sql database
Definition: vtkSQLDatabase.h:90