VTK
dox/Interaction/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 "vtkInteractionWidgetsModule.h" // For export macro
00040 #include "vtkBorderWidget.h"
00041 
00042 class VTKINTERACTIONWIDGETS_EXPORT vtkTextWidget : public vtkBorderWidget
00043 {
00044 public:
00046   static vtkTextWidget *New();
00047 
00049 
00050   vtkTypeMacro(vtkTextWidget,vtkBorderWidget);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00055 
00058   void SetRepresentation(vtkTextRepresentation *r)
00059     {this->Superclass::SetWidgetRepresentation(
00060       reinterpret_cast<vtkWidgetRepresentation*>(r));}
00062 
00064 
00069   void SetTextActor(vtkTextActor *textActor);
00070   vtkTextActor *GetTextActor();
00072 
00074   virtual void CreateDefaultRepresentation();
00075 
00076 protected:
00077   vtkTextWidget();
00078   ~vtkTextWidget();
00079 
00080 private:
00081   vtkTextWidget(const vtkTextWidget&);  //Not implemented
00082   void operator=(const vtkTextWidget&);  //Not implemented
00083 };
00084 
00085 #endif