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 class VTKINFOVISPARALLEL_EXPORT vtkPBGLGraphSQLReader : public vtkGraphAlgorithm
50 {
51 public:
52  static vtkPBGLGraphSQLReader* New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
59  vtkSetMacro(Directed, bool);
60  vtkGetMacro(Directed, bool);
61  vtkBooleanMacro(Directed, bool);
63 
65 
66  virtual void SetDatabase(vtkSQLDatabase* db);
69 
71 
72  vtkSetStringMacro(VertexTable);
73  vtkGetStringMacro(VertexTable);
75 
77 
78  vtkSetStringMacro(EdgeTable);
79  vtkGetStringMacro(EdgeTable);
81 
83 
85  vtkSetStringMacro(SourceField);
86  vtkGetStringMacro(SourceField);
88 
90 
92  vtkSetStringMacro(TargetField);
93  vtkGetStringMacro(TargetField);
95 
97 
98  vtkSetStringMacro(VertexIdField);
99  vtkGetStringMacro(VertexIdField);
101 
103 
104  static void GetRange(int rank, int total,
107 
109 
110  void SetDistributionUserData(int procs, vtkIdType verts)
111  { this->DistributionUserData[0] = procs;
112  this->DistributionUserData[1] = verts; }
114 
116 
119  { return this->DistributionUserData; }
121 
122 protected:
125 
126  bool Directed;
128  char* VertexTable;
129  char* EdgeTable;
130  char* SourceField;
131  char* TargetField;
133  vtkIdType DistributionUserData[2];
134 
135  virtual int RequestData(
139 
140  virtual int RequestDataObject(
144 
145 private:
146  vtkPBGLGraphSQLReader(const vtkPBGLGraphSQLReader&); // Not implemented
147  void operator=(const vtkPBGLGraphSQLReader&); // Not implemented
148 };
149 
150 #endif
151 
static vtkGraphAlgorithm * New()
GLsizeiptr size
Definition: vtkgl.h:11843
Store vtkAlgorithm input/output information.
GLintptr offset
Definition: vtkgl.h:11844
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
int vtkIdType
Definition: vtkType.h:268
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:94
Superclass for algorithms that produce only graph as output.
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
maintain a connection to an sql database
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
GLint limit
Definition: vtkgl.h:17746
#define vtkGetStringMacro(name)
Definition: vtkSetGet.h:120
vtkIdType * GetDistributionUserData()
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
read a vtkGraph from a database
Store zero or more vtkInformation instances.
#define vtkBooleanMacro(name, type)
Definition: vtkSetGet.h:234
void SetDistributionUserData(int procs, vtkIdType verts)
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69