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 "vtkAlgorithm.h"
37 
38 class vtkDataSet;
39 class vtkLabelHierarchy;
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkLabelHierarchy* GetOutput();
51  vtkLabelHierarchy* GetOutput(int);
52  virtual void SetOutput(vtkDataObject* d);
54 
56 
57  virtual int ProcessRequest(vtkInformation*,
61 
62  // this method is not recommended for use, but lots of old style filters use it
63  vtkDataObject* GetInput();
64  vtkDataObject* GetInput(int port);
65  vtkLabelHierarchy* GetLabelHierarchyInput(int port);
66 
68 
75  void SetInput( vtkDataObject* );
76  void SetInput( int, vtkDataObject* );
78 
80 
84  void AddInput( vtkDataObject* );
85  void AddInput( int, vtkDataObject* );
87 
88 protected:
91 
93 
95  virtual int RequestDataObject(
96  vtkInformation* request,
97  vtkInformationVector** inputVector,
98  vtkInformationVector* outputVector );
100 
101  // convenience method
102  virtual int RequestInformation(
103  vtkInformation* request,
104  vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector );
106 
108 
110  virtual int RequestData(
111  vtkInformation* request,
112  vtkInformationVector** inputVector,
113  vtkInformationVector* outputVector );
115 
117 
119  virtual int RequestUpdateExtent(
124 
125  // see algorithm for more info
126  virtual int FillOutputPortInformation( int port, vtkInformation* info );
127  virtual int FillInputPortInformation( int port, vtkInformation* info );
128 
129 private:
130  vtkLabelHierarchyAlgorithm( const vtkLabelHierarchyAlgorithm& ); // Not implemented.
131  void operator = ( const vtkLabelHierarchyAlgorithm& ); // Not implemented.
132 };
133 
134 #endif