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 -------------------------------------------------------------------------*/
40 #ifndef vtkUndirectedGraphAlgorithm_h
41 #define vtkUndirectedGraphAlgorithm_h
42 
43 #include "vtkCommonExecutionModelModule.h" // For export macro
44 #include "vtkAlgorithm.h"
45 #include "vtkUndirectedGraph.h" // makes things a bit easier
46 
47 class vtkDataSet;
48 
49 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUndirectedGraphAlgorithm : public vtkAlgorithm
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
61  vtkInformationVector*) override;
62 
66  vtkUndirectedGraph* GetOutput() { return this->GetOutput(0); }
68 
74  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
75  void SetInputData(int index, vtkDataObject* obj);
76 
77 protected:
80 
81  // convenience method
82  virtual int RequestInformation(vtkInformation* request,
83  vtkInformationVector** inputVector,
84  vtkInformationVector* outputVector);
85 
90  virtual int RequestData(vtkInformation* request,
91  vtkInformationVector** inputVector,
92  vtkInformationVector* outputVector);
93 
101 
102  // see algorithm for more info
105 
106 private:
108  void operator=(const vtkUndirectedGraphAlgorithm&) = delete;
109 };
110 
111 #endif
vtkUndirectedGraph
An undirected graph.
Definition: vtkUndirectedGraph.h:55
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkUndirectedGraphAlgorithm::ProcessRequest
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkUndirectedGraphAlgorithm::SetInputData
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
Definition: vtkUndirectedGraphAlgorithm.h:74
vtkUndirectedGraphAlgorithm::New
static vtkUndirectedGraphAlgorithm * New()
vtkUndirectedGraphAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkUndirectedGraph.h
vtkUndirectedGraphAlgorithm::vtkUndirectedGraphAlgorithm
vtkUndirectedGraphAlgorithm()
vtkUndirectedGraphAlgorithm::GetOutput
vtkUndirectedGraph * GetOutput(int index)
vtkUndirectedGraphAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkUndirectedGraphAlgorithm::~vtkUndirectedGraphAlgorithm
~vtkUndirectedGraphAlgorithm() override
vtkUndirectedGraphAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkUndirectedGraphAlgorithm::SetInputData
void SetInputData(int index, vtkDataObject *obj)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkUndirectedGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkUndirectedGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkUndirectedGraphAlgorithm::GetOutput
vtkUndirectedGraph * GetOutput()
Get the output data object for a port on this algorithm.
Definition: vtkUndirectedGraphAlgorithm.h:66
vtkUndirectedGraphAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkUndirectedGraphAlgorithm
Superclass for algorithms that produce undirected graph as output.
Definition: vtkUndirectedGraphAlgorithm.h:50
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkX3D::index
@ index
Definition: vtkX3D.h:246