VTK
vtkLabelHierarchyAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLabelHierarchyAlgorithm.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 =========================================================================*/
33 #ifndef vtkLabelHierarchyAlgorithm_h
34 #define vtkLabelHierarchyAlgorithm_h
35 
36 #include "vtkRenderingLabelModule.h" // For export macro
37 #include "vtkAlgorithm.h"
38 
39 class vtkDataSet;
40 class vtkLabelHierarchy;
41 
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
53  virtual void SetOutput(vtkDataObject* d);
55 
57 
62 
63  // this method is not recommended for use, but lots of old style filters use it
67 
69 
73  void SetInputData( int, vtkDataObject* );
75 
77 
81  void AddInputData( int, vtkDataObject* );
83 
84 protected:
87 
89 
91  virtual int RequestDataObject(
92  vtkInformation* request,
93  vtkInformationVector** inputVector,
94  vtkInformationVector* outputVector );
96 
97  // convenience method
98  virtual int RequestInformation(
99  vtkInformation* request,
100  vtkInformationVector** inputVector,
101  vtkInformationVector* outputVector );
102 
104 
106  virtual int RequestData(
107  vtkInformation* request,
108  vtkInformationVector** inputVector,
109  vtkInformationVector* outputVector );
111 
113 
115  virtual int RequestUpdateExtent(
120 
121  // see algorithm for more info
124 
125 private:
126  vtkLabelHierarchyAlgorithm( const vtkLabelHierarchyAlgorithm& ); // Not implemented.
127  void operator = ( const vtkLabelHierarchyAlgorithm& ); // Not implemented.
128 };
129 
130 #endif
vtkLabelHierarchyAlgorithm::AddInputData
void AddInputData(int, vtkDataObject *)
vtkRenderingLabelModule.h
vtkLabelHierarchyAlgorithm::New
static vtkLabelHierarchyAlgorithm * New()
vtkLabelHierarchyAlgorithm::GetInput
vtkDataObject * GetInput(int port)
vtkLabelHierarchy
contains an octree of labels
Definition: vtkLabelHierarchy.h:81
vtkLabelHierarchyAlgorithm::GetOutput
vtkLabelHierarchy * GetOutput()
vtkLabelHierarchyAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
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
vtkLabelHierarchyAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
VTKRENDERINGLABEL_EXPORT
#define VTKRENDERINGLABEL_EXPORT
Definition: vtkRenderingLabelModule.h:15
vtkLabelHierarchyAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkLabelHierarchyAlgorithm
Superclass for algorithms that produce only label hierarchies as output.
Definition: vtkLabelHierarchyAlgorithm.h:43
vtkAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkLabelHierarchyAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkLabelHierarchyAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkLabelHierarchyAlgorithm::SetOutput
virtual void SetOutput(vtkDataObject *d)
vtkLabelHierarchyAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkLabelHierarchyAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkLabelHierarchyAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkLabelHierarchyAlgorithm::vtkLabelHierarchyAlgorithm
vtkLabelHierarchyAlgorithm()
vtkLabelHierarchyAlgorithm::~vtkLabelHierarchyAlgorithm
~vtkLabelHierarchyAlgorithm()
vtkLabelHierarchyAlgorithm::GetLabelHierarchyInput
vtkLabelHierarchy * GetLabelHierarchyInput(int port)
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
vtkLabelHierarchyAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
vtkLabelHierarchyAlgorithm::GetInput
vtkDataObject * GetInput()
vtkLabelHierarchyAlgorithm::AddInputData
void AddInputData(vtkDataObject *)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkLabelHierarchyAlgorithm::GetOutput
vtkLabelHierarchy * GetOutput(int)
vtkLabelHierarchyAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)