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 -------------------------------------------------------------------------*/
39 #ifndef vtkUndirectedGraphAlgorithm_h
40 #define vtkUndirectedGraphAlgorithm_h
41 
42 #include "vtkCommonExecutionModelModule.h" // For export macro
43 #include "vtkAlgorithm.h"
44 #include "vtkUndirectedGraph.h" // makes things a bit easier
45 
46 class vtkDataSet;
47 
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
57  virtual int ProcessRequest(vtkInformation*,
61 
63 
64  vtkUndirectedGraph* GetOutput() { return this->GetOutput(0); }
65  vtkUndirectedGraph* GetOutput(int index);
67 
69 
72  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
73  void SetInputData(int index, vtkDataObject* obj);
75 
76 protected:
79 
80  // convenience method
81  virtual int RequestInformation(vtkInformation* request,
82  vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector);
84 
86 
88  virtual int RequestData(vtkInformation* request,
89  vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
92 
94 
96  virtual int RequestUpdateExtent(vtkInformation*,
100 
101  // see algorithm for more info
104 
105 private:
106  vtkUndirectedGraphAlgorithm(const vtkUndirectedGraphAlgorithm&); // Not implemented.
107  void operator=(const vtkUndirectedGraphAlgorithm&); // Not implemented.
108 };
109 
110 #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)
An undirected graph.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
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()
Superclass for algorithms that produce undirected graph as output.
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)