VTK
vtkSQLDatabaseGraphSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkSQLDatabaseGraphSource.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-------------------------------------------------------------------------*/
33#ifndef vtkSQLDatabaseGraphSource_h
34#define vtkSQLDatabaseGraphSource_h
35
36#include "vtkIOSQLModule.h" // For export macro
37#include "vtkStdString.h"
38#include "vtkGraphAlgorithm.h"
39
41
42class VTKIOSQL_EXPORT vtkSQLDatabaseGraphSource : public vtkGraphAlgorithm
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent);
48
50 void SetURL(const vtkStdString& url);
51
52 void SetPassword(const vtkStdString& password);
53
55 void SetEdgeQuery(const vtkStdString& query);
56
58 void SetVertexQuery(const vtkStdString& query);
59
60 void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
62 void AddLinkEdge(const char* column1, const char* column2);
64
66
70 vtkGetMacro(GenerateEdgePedigreeIds, bool);
71 vtkSetMacro(GenerateEdgePedigreeIds, bool);
72 vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
74
76
79 vtkSetStringMacro(EdgePedigreeIdArrayName);
80 vtkGetStringMacro(EdgePedigreeIdArrayName);
82
84
88 vtkSetMacro(Directed, bool);
89 vtkGetMacro(Directed, bool);
90 vtkBooleanMacro(Directed, bool);
92
93protected:
96
101
106
109
110private:
111 vtkSQLDatabaseGraphSource(const vtkSQLDatabaseGraphSource&) VTK_DELETE_FUNCTION;
112 void operator=(const vtkSQLDatabaseGraphSource&) VTK_DELETE_FUNCTION;
113
118 vtkEventForwarderCommand *EventForwarder;
119
120 class implementation;
121 implementation* const Implementation;
122
123 bool Directed;
124
125
126};
127
128#endif
129
130// VTK-HeaderTest-Exclude: vtkSQLDatabaseGraphSource.h
a simple event forwarder command
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.
Generates a vtkGraph based on an SQL query.
void SetVertexQuery(const vtkStdString &query)
static vtkSQLDatabaseGraphSource * New()
void AddLinkVertex(const char *column, const char *domain=0, int hidden=0)
void SetURL(const vtkStdString &url)
vtkStdString GetEdgeQuery()
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkStdString GetVertexQuery()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetEdgeQuery(const vtkStdString &query)
void SetPassword(const vtkStdString &password)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void AddLinkEdge(const char *column1, const char *column2)
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
@ url
Definition: vtkX3D.h:233
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.