VTK
vtkDirectedGraphAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDirectedGraphAlgorithm.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 -------------------------------------------------------------------------*/
42 #ifndef vtkDirectedGraphAlgorithm_h
43 #define vtkDirectedGraphAlgorithm_h
44 
45 #include "vtkCommonExecutionModelModule.h" // For export macro
46 #include "vtkAlgorithm.h"
47 #include "vtkDirectedGraph.h" // makes things a bit easier
48 
49 class vtkDataSet;
50 
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
64 
66 
67  vtkDirectedGraph* GetOutput() { return this->GetOutput(0); }
70 
72 
75  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
78 
79 protected:
82 
83  // convenience method
84  virtual int RequestInformation(vtkInformation* request,
85  vtkInformationVector** inputVector,
86  vtkInformationVector* outputVector);
87 
89 
91  virtual int RequestData(vtkInformation* request,
92  vtkInformationVector** inputVector,
93  vtkInformationVector* outputVector);
95 
97 
103 
104  // see algorithm for more info
107 
108 private:
109  vtkDirectedGraphAlgorithm(const vtkDirectedGraphAlgorithm&); // Not implemented.
110  void operator=(const vtkDirectedGraphAlgorithm&); // Not implemented.
111 };
112 
113 #endif
VTKCOMMONEXECUTIONMODEL_EXPORT
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Definition: vtkCommonExecutionModelModule.h:15
vtkDirectedGraphAlgorithm
Superclass for algorithms that produce only directed graph as output.
Definition: vtkDirectedGraphAlgorithm.h:52
vtkgl::obj
GLsizei GLsizei GLuint * obj
Definition: vtkgl.h:11994
vtkDirectedGraphAlgorithm::New
static vtkDirectedGraphAlgorithm * New()
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkDirectedGraphAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkDirectedGraphAlgorithm::SetInputData
void SetInputData(int index, vtkDataObject *obj)
vtkDirectedGraph
A directed graph.
Definition: vtkDirectedGraph.h:47
vtkCommonExecutionModelModule.h
vtkDirectedGraphAlgorithm::GetOutput
vtkDirectedGraph * GetOutput(int index)
vtkDirectedGraph.h
vtkDirectedGraphAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkDirectedGraphAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkAlgorithm.h
vtkDirectedGraphAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkDirectedGraphAlgorithm::~vtkDirectedGraphAlgorithm
~vtkDirectedGraphAlgorithm()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkDirectedGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkDirectedGraphAlgorithm::vtkDirectedGraphAlgorithm
vtkDirectedGraphAlgorithm()
vtkDirectedGraphAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkDirectedGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDirectedGraphAlgorithm::GetOutput
vtkDirectedGraph * GetOutput()
Definition: vtkDirectedGraphAlgorithm.h:67
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkDirectedGraphAlgorithm::SetInputData
void SetInputData(vtkDataObject *obj)
Definition: vtkDirectedGraphAlgorithm.h:75