VTK
dox/Widgets/vtkTextWidget.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTextWidget.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 __vtkTextWidget_h
00034 #define __vtkTextWidget_h
00035 
00036 class vtkTextRepresentation;
00037 class vtkTextActor;
00038 
00039 #include "vtkBorderWidget.h"
00040 
00041 class VTK_WIDGETS_EXPORT vtkTextWidget : public vtkBorderWidget
00042 {
00043 public:
00045   static vtkTextWidget *New();
00046 
00048 
00049   vtkTypeMacro(vtkTextWidget,vtkBorderWidget);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00052 
00054 
00057   void SetRepresentation(vtkTextRepresentation *r)
00058     {this->Superclass::SetWidgetRepresentation(
00059       reinterpret_cast<vtkWidgetRepresentation*>(r));}
00061   
00063 
00068   void SetTextActor(vtkTextActor *textActor);
00069   vtkTextActor *GetTextActor();
00071 
00073   virtual void CreateDefaultRepresentation();
00074 
00075 protected:
00076   vtkTextWidget();
00077   ~vtkTextWidget();
00078 
00079 private:
00080   vtkTextWidget(const vtkTextWidget&);  //Not implemented
00081   void operator=(const vtkTextWidget&);  //Not implemented
00082 };
00083 
00084 #endif