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

vtkTextSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkTextSource.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 =========================================================================*/
00051 #ifndef __vtkTextSource_h
00052 #define __vtkTextSource_h
00053 
00054 #include "vtkPolyDataSource.h"
00055 
00056 class VTK_GRAPHICS_EXPORT vtkTextSource : public vtkPolyDataSource 
00057 {
00058 public:
00059   vtkTypeRevisionMacro(vtkTextSource,vtkPolyDataSource);
00060   void PrintSelf(ostream& os, vtkIndent indent);
00061 
00063   static vtkTextSource *New();
00064 
00066 
00067   vtkSetStringMacro(Text);
00068   vtkGetStringMacro(Text);
00070 
00072 
00073   vtkSetMacro(Backing,int);
00074   vtkGetMacro(Backing,int);
00075   vtkBooleanMacro(Backing,int);
00077 
00079 
00081   vtkSetVector3Macro(ForegroundColor,double);
00082   vtkGetVectorMacro(ForegroundColor,double,3);
00084 
00086 
00088   vtkSetVector3Macro(BackgroundColor,double);
00089   vtkGetVectorMacro(BackgroundColor,double,3);
00091 
00092 protected:
00093   vtkTextSource();
00094   ~vtkTextSource();
00095 
00096   void Execute();
00097   char *Text;
00098   int  Backing;
00099   double ForegroundColor[4];
00100   double BackgroundColor[4];
00101 private:
00102   vtkTextSource(const vtkTextSource&);  // Not implemented.
00103   void operator=(const vtkTextSource&);  // Not implemented.
00104 };
00105 
00106 #endif
00107 
00108