VTK
dox/Rendering/Label/vtkLabelHierarchyAlgorithm.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkLabelHierarchyAlgorithm.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00033 #ifndef __vtkLabelHierarchyAlgorithm_h
00034 #define __vtkLabelHierarchyAlgorithm_h
00035 
00036 #include "vtkRenderingLabelModule.h" // For export macro
00037 #include "vtkAlgorithm.h"
00038 
00039 class vtkDataSet;
00040 class vtkLabelHierarchy;
00041 
00042 class VTKRENDERINGLABEL_EXPORT vtkLabelHierarchyAlgorithm : public vtkAlgorithm
00043 {
00044 public:
00045   static vtkLabelHierarchyAlgorithm *New();
00046   vtkTypeMacro(vtkLabelHierarchyAlgorithm,vtkAlgorithm);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050 
00051   vtkLabelHierarchy* GetOutput();
00052   vtkLabelHierarchy* GetOutput(int);
00053   virtual void SetOutput(vtkDataObject* d);
00055 
00057 
00058   virtual int ProcessRequest(vtkInformation*,
00059                              vtkInformationVector**,
00060                              vtkInformationVector*);
00062 
00063   // this method is not recommended for use, but lots of old style filters use it
00064   vtkDataObject* GetInput();
00065   vtkDataObject* GetInput(int port);
00066   vtkLabelHierarchy* GetLabelHierarchyInput(int port);
00067 
00069 
00072   void SetInputData( vtkDataObject* );
00073   void SetInputData( int, vtkDataObject* );
00075 
00077 
00080   void AddInputData( vtkDataObject* );
00081   void AddInputData( int, vtkDataObject* );
00083 
00084 protected:
00085   vtkLabelHierarchyAlgorithm();
00086   ~vtkLabelHierarchyAlgorithm();
00087 
00089 
00091   virtual int RequestDataObject(
00092     vtkInformation* request,
00093     vtkInformationVector** inputVector,
00094     vtkInformationVector* outputVector );
00096 
00097   // convenience method
00098   virtual int RequestInformation(
00099     vtkInformation* request,
00100     vtkInformationVector** inputVector,
00101     vtkInformationVector* outputVector );
00102 
00104 
00106   virtual int RequestData(
00107     vtkInformation* request,
00108     vtkInformationVector** inputVector,
00109     vtkInformationVector* outputVector );
00111 
00113 
00115   virtual int RequestUpdateExtent(
00116     vtkInformation*,
00117     vtkInformationVector**,
00118     vtkInformationVector* );
00120 
00121   // see algorithm for more info
00122   virtual int FillOutputPortInformation( int port, vtkInformation* info );
00123   virtual int FillInputPortInformation( int port, vtkInformation* info );
00124 
00125 private:
00126   vtkLabelHierarchyAlgorithm( const vtkLabelHierarchyAlgorithm& ); // Not implemented.
00127   void operator = ( const vtkLabelHierarchyAlgorithm& );  // Not implemented.
00128 };
00129 
00130 #endif