VTK
vtkUndirectedGraphAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUndirectedGraphAlgorithm.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 __vtkUndirectedGraphAlgorithm_h
46 #define __vtkUndirectedGraphAlgorithm_h
47 
48 #include "vtkAlgorithm.h"
49 #include "vtkUndirectedGraph.h" // makes things a bit easier
50 
51 class vtkDataSet;
52 
54 {
55 public:
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
62  virtual int ProcessRequest(vtkInformation*,
66 
68 
69  vtkUndirectedGraph* GetOutput() { return this->GetOutput(0); }
70  vtkUndirectedGraph* 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  vtkUndirectedGraphAlgorithm(const vtkUndirectedGraphAlgorithm&); // Not implemented.
116  void operator=(const vtkUndirectedGraphAlgorithm&); // Not implemented.
117 };
118 
119 #endif
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
Superclass for algorithms that produce undirected graph as output.
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)