VTK
dox/Rendering/vtkPointSetToLabelHierarchy.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPointSetToLabelHierarchy.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 =========================================================================*/
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 -------------------------------------------------------------------------*/
00038 #ifndef __vtkPointSetToLabelHierarchy_h
00039 #define __vtkPointSetToLabelHierarchy_h
00040 
00041 #include "vtkLabelHierarchyAlgorithm.h"
00042 
00043 class vtkTextProperty;
00044 
00045 class VTK_RENDERING_EXPORT vtkPointSetToLabelHierarchy : public vtkLabelHierarchyAlgorithm
00046 {
00047 public:
00048   static vtkPointSetToLabelHierarchy* New();
00049   vtkTypeMacro(vtkPointSetToLabelHierarchy,vtkLabelHierarchyAlgorithm);
00050   virtual void PrintSelf( ostream& os, vtkIndent indent );
00051 
00053 
00055   vtkSetMacro(TargetLabelCount,int);
00056   vtkGetMacro(TargetLabelCount,int);
00058 
00060 
00061   vtkSetMacro(MaximumDepth,int);
00062   vtkGetMacro(MaximumDepth,int);
00064 
00066 
00067   vtkSetMacro(UseUnicodeStrings,bool);
00068   vtkGetMacro(UseUnicodeStrings,bool);
00069   vtkBooleanMacro(UseUnicodeStrings,bool);
00071 
00073 
00074   virtual void SetLabelArrayName(const char* name);
00075   virtual const char* GetLabelArrayName();
00077 
00079 
00080   virtual void SetSizeArrayName(const char* name);
00081   virtual const char* GetSizeArrayName();
00083 
00085 
00086   virtual void SetPriorityArrayName(const char* name);
00087   virtual const char* GetPriorityArrayName();
00089 
00091 
00092   virtual void SetIconIndexArrayName(const char* name);
00093   virtual const char* GetIconIndexArrayName();
00095 
00097 
00098   virtual void SetOrientationArrayName(const char* name);
00099   virtual const char* GetOrientationArrayName();
00101 
00103 
00104   virtual void SetBoundedSizeArrayName(const char* name);
00105   virtual const char* GetBoundedSizeArrayName();
00107 
00109 
00110   virtual void SetTextProperty(vtkTextProperty* tprop);
00111   vtkGetObjectMacro(TextProperty, vtkTextProperty);
00113 
00114 protected:
00115   vtkPointSetToLabelHierarchy();
00116   virtual ~vtkPointSetToLabelHierarchy();
00117 
00118   virtual int FillInputPortInformation( int port, vtkInformation* info );
00119 
00120   virtual int RequestData(
00121     vtkInformation* request,
00122     vtkInformationVector** inputVector,
00123     vtkInformationVector* outputVector );
00124 
00125   int TargetLabelCount;
00126   int MaximumDepth;
00127   bool UseUnicodeStrings;
00128   vtkTextProperty* TextProperty;
00129 
00130 private:
00131   vtkPointSetToLabelHierarchy( const vtkPointSetToLabelHierarchy& ); // Not implemented.
00132   void operator = ( const vtkPointSetToLabelHierarchy& ); // Not implemented.
00133 };
00134 
00135 #endif // __vtkPointSetToLabelHierarchy_h