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

dox/Rendering/vtkOpenGLTexture.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkOpenGLTexture.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 =========================================================================*/
00026 #ifndef __vtkOpenGLTexture_h
00027 #define __vtkOpenGLTexture_h
00028 
00029 #include "vtkTexture.h"
00030 
00031 class vtkWindow;
00032 class vtkOpenGLRenderer;
00033 class vtkRenderWindow;
00034 
00035 class VTK_RENDERING_EXPORT vtkOpenGLTexture : public vtkTexture
00036 {
00037 public:
00038   static vtkOpenGLTexture *New();
00039   vtkTypeRevisionMacro(vtkOpenGLTexture,vtkTexture);
00040   virtual void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043   void Load(vtkRenderer *ren);
00044   
00049   void ReleaseGraphicsResources(vtkWindow *);
00050 
00051 protected:
00052   vtkOpenGLTexture();
00053   ~vtkOpenGLTexture();
00054 
00055   unsigned char *ResampleToPowerOfTwo(int &xsize, int &ysize, 
00056                                       unsigned char *dptr, int bpp);
00057 
00058   vtkTimeStamp   LoadTime;
00059   long          Index;
00060   vtkRenderWindow *RenderWindow;   // RenderWindow used for previous render
00061 private:
00062   vtkOpenGLTexture(const vtkOpenGLTexture&);  // Not implemented.
00063   void operator=(const vtkOpenGLTexture&);  // Not implemented.
00064 };
00065 
00066 #endif