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

vtkButtonSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkButtonSource.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 =========================================================================*/
00043 #ifndef __vtkButtonSource_h
00044 #define __vtkButtonSource_h
00045 
00046 #include "vtkPolyDataAlgorithm.h"
00047 
00048 #define VTK_TEXTURE_STYLE_FIT_IMAGE    0
00049 #define VTK_TEXTURE_STYLE_PROPORTIONAL 1
00050 
00051 class VTK_GRAPHICS_EXPORT vtkButtonSource : public vtkPolyDataAlgorithm 
00052 {
00053 public:
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055   vtkTypeRevisionMacro(vtkButtonSource,vtkPolyDataAlgorithm);
00056 
00058 
00059   vtkSetVector3Macro(Center,double);
00060   vtkGetVectorMacro(Center,double,3);
00062 
00064 
00067   vtkSetClampMacro(TextureStyle,int,VTK_TEXTURE_STYLE_FIT_IMAGE,
00068                                     VTK_TEXTURE_STYLE_PROPORTIONAL);
00069   vtkGetMacro(TextureStyle,int);
00070   void SetTextureStyleToFitImage() 
00071     {this->SetTextureStyle(VTK_TEXTURE_STYLE_FIT_IMAGE);}
00072   void SetTextureStyleToProportional() 
00073     {this->SetTextureStyle(VTK_TEXTURE_STYLE_PROPORTIONAL);}
00075 
00077 
00079   vtkSetVector2Macro(TextureDimensions,int);
00080   vtkGetVector2Macro(TextureDimensions,int);
00082 
00084 
00085   vtkSetVector2Macro(ShoulderTextureCoordinate,double);
00086   vtkGetVector2Macro(ShoulderTextureCoordinate,double);
00088 
00090 
00094   vtkSetMacro(TwoSided,int);
00095   vtkGetMacro(TwoSided,int);
00096   vtkBooleanMacro(TwoSided,int);
00098 
00099 protected:
00100   vtkButtonSource();
00101   ~vtkButtonSource() {}
00102 
00103   double Center[3];
00104   double ShoulderTextureCoordinate[2];
00105   int    TextureStyle;
00106   int    TextureDimensions[2];
00107   int    TwoSided;
00108 
00109 private:
00110   vtkButtonSource(const vtkButtonSource&);  // Not implemented.
00111   void operator=(const vtkButtonSource&);  // Not implemented.
00112 
00113 };
00114 
00115 #endif
00116 
00117 

Generated on Mon Jan 21 23:07:24 2008 for VTK by  doxygen 1.4.3-20050530