VTK
dox/Filters/Sources/vtkTextSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTextSource.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 =========================================================================*/
00038 #ifndef __vtkTextSource_h
00039 #define __vtkTextSource_h
00040 
00041 #include "vtkFiltersSourcesModule.h" // For export macro
00042 #include "vtkPolyDataAlgorithm.h"
00043 
00044 class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
00045 {
00046 public:
00047   vtkTypeMacro(vtkTextSource,vtkPolyDataAlgorithm);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051   static vtkTextSource *New();
00052 
00054 
00055   vtkSetStringMacro(Text);
00056   vtkGetStringMacro(Text);
00058 
00060 
00061   vtkSetMacro(Backing,int);
00062   vtkGetMacro(Backing,int);
00063   vtkBooleanMacro(Backing,int);
00065 
00067 
00069   vtkSetVector3Macro(ForegroundColor,double);
00070   vtkGetVectorMacro(ForegroundColor,double,3);
00072 
00074 
00076   vtkSetVector3Macro(BackgroundColor,double);
00077   vtkGetVectorMacro(BackgroundColor,double,3);
00079 
00080 protected:
00081   vtkTextSource();
00082   ~vtkTextSource();
00083 
00084   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00085   char *Text;
00086   int  Backing;
00087   double ForegroundColor[4];
00088   double BackgroundColor[4];
00089 private:
00090   vtkTextSource(const vtkTextSource&);  // Not implemented.
00091   void operator=(const vtkTextSource&);  // Not implemented.
00092 };
00093 
00094 #endif