VTK
vtkMesaTexture.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMesaTexture.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef __vtkMesaTexture_h
23 #define __vtkMesaTexture_h
24 
25 #include "vtkTexture.h"
26 
27 class vtkWindow;
28 class vtkMesaRenderer;
29 class vtkRenderWindow;
30 
32 {
33 public:
34  static vtkMesaTexture *New();
35  vtkTypeMacro(vtkMesaTexture,vtkTexture);
36  virtual void PrintSelf(ostream& os, vtkIndent indent);
37 
39  void Load(vtkRenderer *ren);
40 
46 
47 protected:
49  ~vtkMesaTexture();
50 
51  unsigned char *ResampleToPowerOfTwo(int &xsize, int &ysize,
52  unsigned char *dptr, int bpp);
53 
55  long Index;
56  static long GlobalIndex;
57  vtkRenderWindow *RenderWindow; // RenderWindow used for previous render
58 private:
59  vtkMesaTexture(const vtkMesaTexture&); // Not implemented.
60  void operator=(const vtkMesaTexture&); // Not implemented.
61 };
62 
63 #endif