• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Rendering/vtkOpenGLTexture.h

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

Generated by  doxygen 1.7.1