VTK  9.1.0
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 "vtkGraphAlgorithm.h"
60#include "vtkIOSQLModule.h" // For export macro
61
62class vtkSQLQuery;
63
64class VTKIOSQL_EXPORT vtkSQLGraphReader : public vtkGraphAlgorithm
65{
66public:
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
157protected:
160
168 char* XField;
169 char* YField;
170 char* ZField;
171
173
175
176private:
177 vtkSQLGraphReader(const vtkSQLGraphReader&) = delete;
178 void operator=(const vtkSQLGraphReader&) = delete;
179};
180
181#endif
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read a vtkGraph from a database
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSQLQuery * VertexQuery
static vtkSQLGraphReader * New()
virtual void SetEdgeQuery(vtkSQLQuery *q)
The query that retrieves the arc information.
virtual void SetVertexQuery(vtkSQLQuery *q)
The query that retrieves the node information.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkSQLQuery * EdgeQuery
~vtkSQLGraphReader() override
executes an sql query and retrieves results
Definition: vtkSQLQuery.h:69