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 -------------------------------------------------------------------------*/
45 #ifndef __vtkDirectedGraphAlgorithm_h
46 #define __vtkDirectedGraphAlgorithm_h
47 
48 #include "vtkAlgorithm.h"
49 #include "vtkDirectedGraph.h" // makes things a bit easier
50 
51 class vtkDataSet;
52 
54 {
55 public:
56  static vtkDirectedGraphAlgorithm *New();
57  vtkTypeMacro(vtkDirectedGraphAlgorithm,vtkAlgorithm);
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
62  virtual int ProcessRequest(vtkInformation*,
66 
68 
69  vtkDirectedGraph* GetOutput() { return this->GetOutput(0); }
70  vtkDirectedGraph* GetOutput(int index);
72 
74 
81  void SetInput(vtkDataObject * obj) { this->SetInput(0, obj); }
82  void SetInput(int index, vtkDataObject* obj);
84 
85 protected:
88 
89  // convenience method
90  virtual int RequestInformation(vtkInformation* request,
91  vtkInformationVector** inputVector,
92  vtkInformationVector* outputVector);
93 
95 
97  virtual int RequestData(vtkInformation* request,
98  vtkInformationVector** inputVector,
99  vtkInformationVector* outputVector);
101 
103 
105  virtual int RequestUpdateExtent(vtkInformation*,
109 
110  // see algorithm for more info
111  virtual int FillOutputPortInformation(int port, vtkInformation* info);
112  virtual int FillInputPortInformation(int port, vtkInformation* info);
113 
114 private:
115  vtkDirectedGraphAlgorithm(const vtkDirectedGraphAlgorithm&); // Not implemented.
116  void operator=(const vtkDirectedGraphAlgorithm&); // Not implemented.
117 };
118 
119 #endif
void SetInput(vtkDataObject *obj)
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
A directed graph.
Superclass for algorithms that produce only directed graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:37
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:70