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 
60  virtual int ProcessRequest(vtkInformation*,
64 
66 
67  vtkDirectedGraph* GetOutput() { return this->GetOutput(0); }
68  vtkDirectedGraph* GetOutput(int index);
70 
72 
75  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
76  void SetInputData(int index, vtkDataObject* 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 
99  virtual int RequestUpdateExtent(vtkInformation*,
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
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
A directed graph.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Superclass for algorithms that produce only directed graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
void SetInputData(vtkDataObject *obj)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)