00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkTextActor3D.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 =========================================================================*/ 00038 #ifndef __vtkTextActor3D_h 00039 #define __vtkTextActor3D_h 00040 00041 #include "vtkProp3D.h" 00042 00043 class vtkImageActor; 00044 class vtkImageData; 00045 class vtkTextProperty; 00046 00047 class VTK_RENDERING_EXPORT vtkTextActor3D : public vtkProp3D 00048 { 00049 public: 00050 static vtkTextActor3D *New(); 00051 vtkTypeRevisionMacro(vtkTextActor3D,vtkProp3D); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 00056 vtkSetStringMacro(Input); 00057 vtkGetStringMacro(Input); 00059 00061 00062 virtual void SetTextProperty(vtkTextProperty *p); 00063 vtkGetObjectMacro(TextProperty,vtkTextProperty); 00065 00068 void ShallowCopy(vtkProp *prop); 00069 00071 virtual double *GetBounds(); 00072 00073 //BTX 00078 virtual void ReleaseGraphicsResources(vtkWindow *); 00079 00081 00084 int RenderOpaqueGeometry(vtkViewport* viewport); 00085 int RenderTranslucentGeometry(vtkViewport* viewport); 00086 int RenderOverlay(vtkViewport* viewport); 00087 //ETX 00089 00090 protected: 00091 vtkTextActor3D(); 00092 ~vtkTextActor3D(); 00093 00094 char *Input; 00095 00096 vtkImageActor *ImageActor; 00097 vtkImageData *ImageData; 00098 vtkTextProperty *TextProperty; 00099 00100 vtkTimeStamp BuildTime; 00101 00102 virtual int UpdateImageActor(); 00103 00104 private: 00105 vtkTextActor3D(const vtkTextActor3D&); // Not implemented. 00106 void operator=(const vtkTextActor3D&); // Not implemented. 00107 }; 00108 00109 00110 #endif 00111