VTK
vtkSQLGraphReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSQLGraphReader.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 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
56 #ifndef vtkSQLGraphReader_h
57 #define vtkSQLGraphReader_h
58 
59 #include "vtkIOSQLModule.h" // For export macro
60 #include "vtkGraphAlgorithm.h"
61 
62 class vtkSQLQuery;
63 
64 class VTKIOSQL_EXPORT vtkSQLGraphReader : public vtkGraphAlgorithm
65 {
66 public:
67  static vtkSQLGraphReader* New();
69  void PrintSelf(ostream& os, vtkIndent indent);
70 
72 
75  vtkSetMacro(Directed, bool);
76  vtkGetMacro(Directed, bool);
77  vtkBooleanMacro(Directed, bool);
79 
81 
84  virtual void SetVertexQuery(vtkSQLQuery* q);
85  vtkGetObjectMacro(VertexQuery, vtkSQLQuery);
87 
89 
92  virtual void SetEdgeQuery(vtkSQLQuery* q);
93  vtkGetObjectMacro(EdgeQuery, vtkSQLQuery);
95 
97 
100  vtkSetStringMacro(SourceField);
101  vtkGetStringMacro(SourceField);
103 
105 
108  vtkSetStringMacro(TargetField);
109  vtkGetStringMacro(TargetField);
111 
113 
116  vtkSetStringMacro(VertexIdField);
117  vtkGetStringMacro(VertexIdField);
119 
121 
124  vtkSetStringMacro(XField);
125  vtkGetStringMacro(XField);
127 
129 
132  vtkSetStringMacro(YField);
133  vtkGetStringMacro(YField);
135 
137 
140  vtkSetStringMacro(ZField);
141  vtkGetStringMacro(ZField);
143 
145 
152  vtkSetMacro(CollapseEdges, bool);
153  vtkGetMacro(CollapseEdges, bool);
154  vtkBooleanMacro(CollapseEdges, bool);
156 
157 protected:
160 
161  bool Directed;
165  char* SourceField;
166  char* TargetField;
168  char* XField;
169  char* YField;
170  char* ZField;
171 
172  virtual int RequestData(
176 
177  virtual int RequestDataObject(
181 
182 private:
183  vtkSQLGraphReader(const vtkSQLGraphReader&) VTK_DELETE_FUNCTION;
184  void operator=(const vtkSQLGraphReader&) VTK_DELETE_FUNCTION;
185 };
186 
187 #endif
188 
static vtkGraphAlgorithm * New()
read a vtkGraph from a database
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
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.
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.
executes an sql query and retrieves results
Definition: vtkSQLQuery.h:68
Store zero or more vtkInformation instances.
vtkSQLQuery * EdgeQuery
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkSQLQuery * VertexQuery