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 "vtkGraphAlgorithm.h"
45 
46 class vtkSQLDatabase;
47 
49 {
50 public:
51  static vtkPBGLGraphSQLReader* New();
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
58  vtkSetMacro(Directed, bool);
59  vtkGetMacro(Directed, bool);
60  vtkBooleanMacro(Directed, bool);
62 
64 
65  virtual void SetDatabase(vtkSQLDatabase* db);
66  vtkGetObjectMacro(Database, vtkSQLDatabase);
68 
70 
71  vtkSetStringMacro(VertexTable);
72  vtkGetStringMacro(VertexTable);
74 
76 
77  vtkSetStringMacro(EdgeTable);
78  vtkGetStringMacro(EdgeTable);
80 
82 
84  vtkSetStringMacro(SourceField);
85  vtkGetStringMacro(SourceField);
87 
89 
91  vtkSetStringMacro(TargetField);
92  vtkGetStringMacro(TargetField);
94 
96 
97  vtkSetStringMacro(VertexIdField);
98  vtkGetStringMacro(VertexIdField);
100 
102 
103  static void GetRange(int rank, int total,
106 
108 
109  void SetDistributionUserData(int procs, vtkIdType verts)
110  { this->DistributionUserData[0] = procs;
111  this->DistributionUserData[1] = verts; }
113 
115 
118  { return this->DistributionUserData; }
120 
121 protected:
124 
125  bool Directed;
127  char* VertexTable;
128  char* EdgeTable;
129  char* SourceField;
130  char* TargetField;
132  vtkIdType DistributionUserData[2];
133 
134  virtual int RequestData(
135  vtkInformation*,
138 
139  virtual int RequestDataObject(
140  vtkInformation*,
143 
144 private:
145  vtkPBGLGraphSQLReader(const vtkPBGLGraphSQLReader&); // Not implemented
146  void operator=(const vtkPBGLGraphSQLReader&); // Not implemented
147 };
148 
149 #endif
150 
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkIdType
Definition: vtkType.h:255
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:37
void PrintSelf(ostream &os, vtkIndent indent)
vtkIdType * GetDistributionUserData()
#define VTK_PARALLEL_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
read a vtkGraph from a database
Store zero or more vtkInformation instances.
void SetDistributionUserData(int procs, vtkIdType verts)