VTK
vtkGraphAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphAlgorithm.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 -------------------------------------------------------------------------*/
44 #ifndef vtkGraphAlgorithm_h
45 #define vtkGraphAlgorithm_h
46 
47 #include "vtkCommonExecutionModelModule.h" // For export macro
48 #include "vtkAlgorithm.h"
49 #include "vtkGraph.h" // makes things a bit easier
50 
51 class vtkDataSet;
52 
54 {
55 public:
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
66 
68 
69  vtkGraph* GetOutput() { return this->GetOutput(0); }
72 
74 
77  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
80 
81 protected:
84 
85  // convenience method
86  virtual int RequestInformation(vtkInformation* request,
87  vtkInformationVector** inputVector,
88  vtkInformationVector* outputVector);
89 
90  virtual int RequestDataObject(vtkInformation* request,
91  vtkInformationVector** inputVector,
92  vtkInformationVector* outputVector);
93 
94 
96 
98  virtual int RequestData(vtkInformation* request,
99  vtkInformationVector** inputVector,
100  vtkInformationVector* outputVector);
102 
104 
110 
111  // see algorithm for more info
114 
115 private:
116  vtkGraphAlgorithm(const vtkGraphAlgorithm&); // Not implemented.
117  void operator=(const vtkGraphAlgorithm&); // Not implemented.
118 };
119 
120 #endif
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkGraphAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTKCOMMONEXECUTIONMODEL_EXPORT
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Definition: vtkCommonExecutionModelModule.h:15
vtkGraphAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkgl::obj
GLsizei GLsizei GLuint * obj
Definition: vtkgl.h:11994
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCommonExecutionModelModule.h
vtkGraphAlgorithm::GetOutput
vtkGraph * GetOutput(int index)
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkGraphAlgorithm::GetOutput
vtkGraph * GetOutput()
Definition: vtkGraphAlgorithm.h:69
vtkGraphAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkGraphAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGraph.h
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkGraphAlgorithm::vtkGraphAlgorithm
vtkGraphAlgorithm()
vtkGraphAlgorithm::~vtkGraphAlgorithm
~vtkGraphAlgorithm()
vtkGraphAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkGraphAlgorithm::SetInputData
void SetInputData(int index, vtkDataObject *obj)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkGraphAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()
vtkGraphAlgorithm::SetInputData
void SetInputData(vtkDataObject *obj)
Definition: vtkGraphAlgorithm.h:77