VTK
vtkMesaImageActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMesaImageActor.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 __vtkMesaImageActor_h
23 #define __vtkMesaImageActor_h
24 
25 #include "vtkImageActor.h"
26 
27 class vtkWindow;
28 class vtkMesaRenderer;
29 class vtkRenderWindow;
30 
32 {
33 public:
34  static vtkMesaImageActor *New();
36  virtual void PrintSelf(ostream& os, vtkIndent indent);
37 
39  void Load(vtkRenderer *ren);
40 
42  void Render(vtkRenderer *ren);
43 
49 
50 protected:
53 
54  unsigned char *MakeDataSuitable(int &xsize, int &ysize,
55  int &release, int &reuseTexture);
56 
58  long Index;
59  static long GlobalIndex;
60  vtkRenderWindow *RenderWindow; // RenderWindow used for previous render
61  double Coords[12];
62  double TCoords[8];
63  int TextureSize[2];
64 
65  // Non-recursive internal method
66  void InternalRender(vtkRenderer *ren);
67 
68  // Is a certain size texture supported?
69  int TextureSizeOK( int size[2] );
70 
71 private:
72  vtkMesaImageActor(const vtkMesaImageActor&); // Not implemented.
73  void operator=(const vtkMesaImageActor&); // Not implemented.
74 };
75 
76 #endif