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
50class vtkSQLDatabase;
51
52#if !defined(VTK_LEGACY_REMOVE)
53class VTKINFOVISPARALLEL_EXPORT vtkPBGLGraphSQLReader : public vtkGraphAlgorithm
54{
55public:
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);
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
137protected:
140
148 vtkIdType DistributionUserData[2];
149
150 virtual int RequestData(
154
155 virtual int RequestDataObject(
159
160private:
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
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read a vtkGraph from a database
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static void GetRange(int rank, int total, vtkIdType size, vtkIdType &offset, vtkIdType &limit)
Get the offset/limit for this process's vertices/edges.
virtual void SetDatabase(vtkSQLDatabase *db)
The database to connect to.
vtkIdType * GetDistributionUserData()
Get the user data (# procs, # vertices) used to determine the distribution.
void SetDistributionUserData(int procs, vtkIdType verts)
Set the distribution user data.
static vtkPBGLGraphSQLReader * New()
maintain a connection to an sql database
@ size
Definition: vtkX3D.h:253
@ offset
Definition: vtkX3D.h:438
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
int vtkIdType
Definition: vtkType.h:287