VTK
|
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 "vtkPolyDataAlgorithm.h" 00042 00043 class VTK_GRAPHICS_EXPORT vtkTextSource : public vtkPolyDataAlgorithm 00044 { 00045 public: 00046 vtkTypeMacro(vtkTextSource,vtkPolyDataAlgorithm); 00047 void PrintSelf(ostream& os, vtkIndent indent); 00048 00050 static vtkTextSource *New(); 00051 00053 00054 vtkSetStringMacro(Text); 00055 vtkGetStringMacro(Text); 00057 00059 00060 vtkSetMacro(Backing,int); 00061 vtkGetMacro(Backing,int); 00062 vtkBooleanMacro(Backing,int); 00064 00066 00068 vtkSetVector3Macro(ForegroundColor,double); 00069 vtkGetVectorMacro(ForegroundColor,double,3); 00071 00073 00075 vtkSetVector3Macro(BackgroundColor,double); 00076 vtkGetVectorMacro(BackgroundColor,double,3); 00078 00079 protected: 00080 vtkTextSource(); 00081 ~vtkTextSource(); 00082 00083 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00084 char *Text; 00085 int Backing; 00086 double ForegroundColor[4]; 00087 double BackgroundColor[4]; 00088 private: 00089 vtkTextSource(const vtkTextSource&); // Not implemented. 00090 void operator=(const vtkTextSource&); // Not implemented. 00091 }; 00092 00093 #endif