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:
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);
86 
88 
89  virtual void SetEdgeQuery(vtkSQLQuery* q);
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 
118 
120 
124 
126 
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 
vtkSQLGraphReader::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSQLGraphReader::New
static vtkSQLGraphReader * New()
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSQLGraphReader::YField
char * YField
Definition: vtkSQLGraphReader.h:154
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSQLGraphReader::VertexIdField
char * VertexIdField
Definition: vtkSQLGraphReader.h:152
vtkSQLGraphReader::TargetField
char * TargetField
Definition: vtkSQLGraphReader.h:151
vtkSQLGraphReader
read a vtkGraph from a database
Definition: vtkSQLGraphReader.h:67
vtkSQLGraphReader::ZField
char * ZField
Definition: vtkSQLGraphReader.h:155
vtkSQLGraphReader::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSQLGraphReader::SetVertexQuery
virtual void SetVertexQuery(vtkSQLQuery *q)
vtkGraphAlgorithm.h
vtkSQLGraphReader::vtkSQLGraphReader
vtkSQLGraphReader()
vtkIOSQLModule.h
vtkSQLGraphReader::CollapseEdges
bool CollapseEdges
Definition: vtkSQLGraphReader.h:147
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkSQLGraphReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkSQLGraphReader::SourceField
char * SourceField
Definition: vtkSQLGraphReader.h:150
vtkSQLGraphReader::EdgeQuery
vtkSQLQuery * EdgeQuery
Definition: vtkSQLGraphReader.h:148
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
VTKIOSQL_EXPORT
#define VTKIOSQL_EXPORT
Definition: vtkIOSQLModule.h:15
vtkSQLGraphReader::Directed
bool Directed
Definition: vtkSQLGraphReader.h:146
vtkSQLQuery
executes an sql query and retrieves results
Definition: vtkSQLQuery.h:74
q
VTKWRAPPINGJAVA_EXPORT jlong q(JNIEnv *env, jobject obj)
vtkSQLGraphReader::VertexQuery
vtkSQLQuery * VertexQuery
Definition: vtkSQLGraphReader.h:149
vtkSQLGraphReader::~vtkSQLGraphReader
~vtkSQLGraphReader()
vtkSQLGraphReader::XField
char * XField
Definition: vtkSQLGraphReader.h:153
vtkSQLGraphReader::SetEdgeQuery
virtual void SetEdgeQuery(vtkSQLQuery *q)