00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPointSetToLabelHierarchy.h,v $ 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 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00035 #ifndef __vtkPointSetToLabelHierarchy_h 00036 #define __vtkPointSetToLabelHierarchy_h 00037 00038 #include "vtkLabelHierarchyAlgorithm.h" 00039 00040 class VTK_RENDERING_EXPORT vtkPointSetToLabelHierarchy : public vtkLabelHierarchyAlgorithm 00041 { 00042 public: 00043 static vtkPointSetToLabelHierarchy* New(); 00044 vtkTypeRevisionMacro(vtkPointSetToLabelHierarchy,vtkLabelHierarchyAlgorithm); 00045 virtual void PrintSelf( ostream& os, vtkIndent indent ); 00046 00048 00050 vtkSetMacro(TargetLabelCount,int); 00051 vtkGetMacro(TargetLabelCount,int); 00053 00055 00056 vtkSetMacro(MaximumDepth,int); 00057 vtkGetMacro(MaximumDepth,int); 00059 00060 protected: 00061 vtkPointSetToLabelHierarchy(); 00062 virtual ~vtkPointSetToLabelHierarchy(); 00063 00064 virtual int FillInputPortInformation( int port, vtkInformation* info ); 00065 00066 virtual int RequestData( 00067 vtkInformation* request, 00068 vtkInformationVector** inputVector, 00069 vtkInformationVector* outputVector ); 00070 00071 int TargetLabelCount; 00072 int MaximumDepth; 00073 00074 private: 00075 vtkPointSetToLabelHierarchy( const vtkPointSetToLabelHierarchy& ); // Not implemented. 00076 void operator = ( const vtkPointSetToLabelHierarchy& ); // Not implemented. 00077 }; 00078 00079 #endif // __vtkPointSetToLabelHierarchy_h