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 -------------------------------------------------------------------------*/
58 #ifndef vtkSQLGraphReader_h
59 #define vtkSQLGraphReader_h
60 
61 #include "vtkIOSQLModule.h" // For export macro
62 #include "vtkGraphAlgorithm.h"
63 
64 class vtkSQLQuery;
65 
67 {
68 public:
69  static vtkSQLGraphReader* New();
71  void PrintSelf(ostream& os, vtkIndent indent);
72 
74 
76  vtkSetMacro(Directed, bool);
77  vtkGetMacro(Directed, bool);
78  vtkBooleanMacro(Directed, bool);
80 
82 
83  virtual void SetVertexQuery(vtkSQLQuery* q);
84  vtkGetObjectMacro(VertexQuery, vtkSQLQuery);
86 
88 
89  virtual void SetEdgeQuery(vtkSQLQuery* q);
90  vtkGetObjectMacro(EdgeQuery, vtkSQLQuery);
92 
94 
96  vtkSetStringMacro(SourceField);
97  vtkGetStringMacro(SourceField);
99 
101 
103  vtkSetStringMacro(TargetField);
104  vtkGetStringMacro(TargetField);
106 
108 
109  vtkSetStringMacro(VertexIdField);
110  vtkGetStringMacro(VertexIdField);
112 
114 
115  vtkSetStringMacro(XField);
116  vtkGetStringMacro(XField);
118 
120 
121  vtkSetStringMacro(YField);
122  vtkGetStringMacro(YField);
124 
126 
127  vtkSetStringMacro(ZField);
128  vtkGetStringMacro(ZField);
130 
132 
137  vtkSetMacro(CollapseEdges, bool);
138  vtkGetMacro(CollapseEdges, bool);
139  vtkBooleanMacro(CollapseEdges, bool);
141 
142 protected:
145 
146  bool Directed;
150  char* SourceField;
151  char* TargetField;
153  char* XField;
154  char* YField;
155  char* ZField;
156 
157  virtual int RequestData(
161 
162  virtual int RequestDataObject(
166 
167 private:
168  vtkSQLGraphReader(const vtkSQLGraphReader&); // Not implemented
169  void operator=(const vtkSQLGraphReader&); // Not implemented
170 };
171 
172 #endif
173 
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:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
executes an sql query and retrieves results
Definition: vtkSQLQuery.h:73
Store zero or more vtkInformation instances.
vtkSQLQuery * EdgeQuery
#define VTKIOSQL_EXPORT
VTKWRAPPINGJAVA_EXPORT jlong q(JNIEnv *env, jobject obj)
vtkSQLQuery * VertexQuery