VTK
|
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 "vtkRenderingLabelModule.h" // For export macro 00042 #include "vtkLabelHierarchyAlgorithm.h" 00043 00044 class vtkTextProperty; 00045 00046 class VTKRENDERINGLABEL_EXPORT vtkPointSetToLabelHierarchy : public vtkLabelHierarchyAlgorithm 00047 { 00048 public: 00049 static vtkPointSetToLabelHierarchy* New(); 00050 vtkTypeMacro(vtkPointSetToLabelHierarchy,vtkLabelHierarchyAlgorithm); 00051 virtual void PrintSelf( ostream& os, vtkIndent indent ); 00052 00054 00056 vtkSetMacro(TargetLabelCount,int); 00057 vtkGetMacro(TargetLabelCount,int); 00059 00061 00062 vtkSetMacro(MaximumDepth,int); 00063 vtkGetMacro(MaximumDepth,int); 00065 00067 00068 vtkSetMacro(UseUnicodeStrings,bool); 00069 vtkGetMacro(UseUnicodeStrings,bool); 00070 vtkBooleanMacro(UseUnicodeStrings,bool); 00072 00074 00075 virtual void SetLabelArrayName(const char* name); 00076 virtual const char* GetLabelArrayName(); 00078 00080 00081 virtual void SetSizeArrayName(const char* name); 00082 virtual const char* GetSizeArrayName(); 00084 00086 00087 virtual void SetPriorityArrayName(const char* name); 00088 virtual const char* GetPriorityArrayName(); 00090 00092 00093 virtual void SetIconIndexArrayName(const char* name); 00094 virtual const char* GetIconIndexArrayName(); 00096 00098 00099 virtual void SetOrientationArrayName(const char* name); 00100 virtual const char* GetOrientationArrayName(); 00102 00104 00105 virtual void SetBoundedSizeArrayName(const char* name); 00106 virtual const char* GetBoundedSizeArrayName(); 00108 00110 00111 virtual void SetTextProperty(vtkTextProperty* tprop); 00112 vtkGetObjectMacro(TextProperty, vtkTextProperty); 00114 00115 protected: 00116 vtkPointSetToLabelHierarchy(); 00117 virtual ~vtkPointSetToLabelHierarchy(); 00118 00119 virtual int FillInputPortInformation( int port, vtkInformation* info ); 00120 00121 virtual int RequestData( 00122 vtkInformation* request, 00123 vtkInformationVector** inputVector, 00124 vtkInformationVector* outputVector ); 00125 00126 int TargetLabelCount; 00127 int MaximumDepth; 00128 bool UseUnicodeStrings; 00129 vtkTextProperty* TextProperty; 00130 00131 private: 00132 vtkPointSetToLabelHierarchy( const vtkPointSetToLabelHierarchy& ); // Not implemented. 00133 void operator = ( const vtkPointSetToLabelHierarchy& ); // Not implemented. 00134 }; 00135 00136 #endif // __vtkPointSetToLabelHierarchy_h