Graphics/vtkTextSource.h Source File

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

# 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 =========================================================================*/
    00054 #ifndef __vtkTextSource_h
    00055 #define __vtkTextSource_h
    00056
    00057 #include "vtkPolyDataSource.h"
    00058
    00059 class VTK_GRAPHICS_EXPORT vtkTextSource : public vtkPolyDataSource
    00060 {
    00061 public:
    00062   vtkTypeRevisionMacro(vtkTextSource,vtkPolyDataSource);
    00063   void PrintSelf(ostream& os, vtkIndent indent);
    00064
    00066   static vtkTextSource *New();
    00067
    00069
    00070   vtkSetStringMacro(Text);
    00071   vtkGetStringMacro(Text);
    00073
    00075
    00076   vtkSetMacro(Backing,int);
    00077   vtkGetMacro(Backing,int);
    00078   vtkBooleanMacro(Backing,int);
    00080
    00082
    00084   vtkSetVector3Macro(ForegroundColor,float);
    00085   vtkGetVectorMacro(ForegroundColor,float,3);
    00087
    00089
    00091   vtkSetVector3Macro(BackgroundColor,float);
    00092   vtkGetVectorMacro(BackgroundColor,float,3);
    00094
    00095 protected:
    00096   vtkTextSource();
    00097   ~vtkTextSource();
    00098
    00099   void Execute();
    00100   char *Text;
    00101   int  Backing;
    00102   float ForegroundColor[4];
    00103   float BackgroundColor[4];
    00104 private:
    00105   vtkTextSource(const vtkTextSource&);  // Not implemented.
    00106   void operator=(const vtkTextSource&);  // Not implemented.
    00107 };
    00108
    00109 #endif
    00110
    00111