Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkTextSource.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkTextSource.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00042 #ifndef __vtkTextSource_h 00043 #define __vtkTextSource_h 00044 00045 #include "vtkPolyDataSource.h" 00046 00047 class VTK_GRAPHICS_EXPORT vtkTextSource : public vtkPolyDataSource 00048 { 00049 public: 00050 vtkTypeRevisionMacro(vtkTextSource,vtkPolyDataSource); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00054 static vtkTextSource *New(); 00055 00057 00058 vtkSetStringMacro(Text); 00059 vtkGetStringMacro(Text); 00061 00063 00064 vtkSetMacro(Backing,int); 00065 vtkGetMacro(Backing,int); 00066 vtkBooleanMacro(Backing,int); 00068 00070 00072 vtkSetVector3Macro(ForegroundColor,float); 00073 vtkGetVectorMacro(ForegroundColor,float,3); 00075 00077 00079 vtkSetVector3Macro(BackgroundColor,float); 00080 vtkGetVectorMacro(BackgroundColor,float,3); 00082 00083 protected: 00084 vtkTextSource(); 00085 ~vtkTextSource(); 00086 00087 void Execute(); 00088 char *Text; 00089 int Backing; 00090 float ForegroundColor[4]; 00091 float BackgroundColor[4]; 00092 private: 00093 vtkTextSource(const vtkTextSource&); // Not implemented. 00094 void operator=(const vtkTextSource&); // Not implemented. 00095 }; 00096 00097 #endif 00098 00099