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

Rendering/vtkMesaTexture.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMesaTexture.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 =========================================================================*/
00037 #ifndef __vtkMesaTexture_h
00038 #define __vtkMesaTexture_h
00039 
00040 #include "vtkTexture.h"
00041 
00042 class vtkWindow;
00043 class vtkMesaRenderer;
00044 class vtkRenderWindow;
00045 
00046 class VTK_RENDERING_EXPORT vtkMesaTexture : public vtkTexture
00047 {
00048 public:
00049   static vtkMesaTexture *New();
00050   vtkTypeRevisionMacro(vtkMesaTexture,vtkTexture);
00051   virtual void PrintSelf(ostream& os, vtkIndent indent);
00052 
00054   void Load(vtkRenderer *ren);
00055   
00060   void ReleaseGraphicsResources(vtkWindow *);
00061 
00062 protected:
00063   vtkMesaTexture();
00064   ~vtkMesaTexture();
00065 
00066   unsigned char *ResampleToPowerOfTwo(int &xsize, int &ysize, 
00067                                       unsigned char *dptr, int bpp);
00068 
00069   vtkTimeStamp   LoadTime;
00070   long          Index;
00071   static   long GlobalIndex;
00072   vtkRenderWindow *RenderWindow;   // RenderWindow used for previous render
00073 private:
00074   vtkMesaTexture(const vtkMesaTexture&);  // Not implemented.
00075   void operator=(const vtkMesaTexture&);  // Not implemented.
00076 };
00077 
00078 #endif