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
47class vtkDataSet;
48
49class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUndirectedGraphAlgorithm : public vtkAlgorithm
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
55
61 vtkInformationVector*) VTK_OVERRIDE;
62
66 vtkUndirectedGraph* GetOutput() { return this->GetOutput(0); }
68
74 void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
76
77protected:
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
98 virtual int RequestUpdateExtent(vtkInformation*,
101
102 // see algorithm for more info
103 int FillOutputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
104 int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
105
106private:
108 void operator=(const vtkUndirectedGraphAlgorithm&) VTK_DELETE_FUNCTION;
109};
110
111#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
general representation of visualization data
Definition: vtkDataObject.h:65
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce undirected graph as output.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInputData(int index, vtkDataObject *obj)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
vtkUndirectedGraph * GetOutput(int index)
~vtkUndirectedGraphAlgorithm() override
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkUndirectedGraph * GetOutput()
Get the output data object for a port on this algorithm.
static vtkUndirectedGraphAlgorithm * New()
An undirected graph.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246