VTK
vtkMesaRenderWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMesaRenderWindow.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 =========================================================================*/
23 #ifndef __vtkMesaRenderWindow_h
24 #define __vtkMesaRenderWindow_h
25 
26 #include "vtkRenderWindow.h"
27 
28 #include "MangleMesaInclude/gl_mangle.h" // Needed for GLuint
29 #include <MangleMesaInclude/gl.h> // Needed for GLuint
30 
31 class vtkIdList;
32 
34 {
35 protected:
38 
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  static void SetGlobalMaximumNumberOfMultiSamples(int val);
46  static int GetGlobalMaximumNumberOfMultiSamples();
48 
50 
52  vtkSetMacro(MultiSamples,int);
53  vtkGetMacro(MultiSamples,int);
55 
57  virtual void StereoUpdate();
58 
60 
61  virtual unsigned char *GetPixelData(int x,int y,int x2,int y2,int front);
62  virtual int GetPixelData(int x,int y,int x2,int y2, int front,
64  virtual int SetPixelData(int x,int y,int x2,int y2,unsigned char *,
65  int front);
66  virtual int SetPixelData(int x,int y,int x2,int y2, vtkUnsignedCharArray*,
67  int front);
69 
71 
72  virtual float *GetRGBAPixelData(int x,int y,int x2,int y2,int front);
73  virtual int GetRGBAPixelData(int x,int y,int x2,int y2, int front,
75  virtual int SetRGBAPixelData(int x,int y,int x2,int y2,float *,int front,
76  int blend=0);
77  virtual int SetRGBAPixelData(int x,int y,int x2,int y2, vtkFloatArray*,
78  int front, int blend=0);
79  virtual void ReleaseRGBAPixelData(float *data);
80  virtual unsigned char *GetRGBACharPixelData(int x,int y,int x2,int y2,
81  int front);
82  virtual int GetRGBACharPixelData(int x,int y,int x2,int y2, int front,
84  virtual int SetRGBACharPixelData(int x,int y,int x2,int y2,unsigned char *,
85  int front, int blend=0);
86  virtual int SetRGBACharPixelData(int x,int y,int x2,int y2,
88  int front, int blend=0);
90 
92 
93  virtual float *GetZbufferData( int x1, int y1, int x2, int y2 );
94  virtual int GetZbufferData( int x1, int y1, int x2, int y2, float *buffer );
95  virtual int GetZbufferData( int x1, int y1, int x2, int y2,
96  vtkFloatArray* z );
97  virtual int SetZbufferData( int x1, int y1, int x2, int y2, float *buffer );
98  virtual int SetZbufferData( int x1, int y1, int x2, int y2,
99  vtkFloatArray *buffer );
101 
103  void MakeCurrent() = 0;
104 
106  void RegisterTextureResource (GLuint id);
107 
109  int GetDepthBufferSize();
110 
113  int GetColorBufferSizes(int *rgba);
114 
116  virtual void OpenGLInit();
117 
118 protected:
121 
123 
124  int GetPixelData(int x,int y,int x2,int y2,int front, unsigned char* data);
125  int GetRGBAPixelData(int x,int y,int x2,int y2, int front, float* data);
126  int GetRGBACharPixelData(int x,int y,int x2,int y2, int front,
127  unsigned char* data);
128 
129 private:
130  vtkMesaRenderWindow(const vtkMesaRenderWindow&); // Not implemented.
131  void operator=(const vtkMesaRenderWindow&); // Not implemented.
132 };
133 
134 #endif
virtual unsigned char * GetPixelData(int x, int y, int x2, int y2, int front)=0
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
virtual int GetColorBufferSizes(int *rgba)=0
virtual int SetRGBAPixelData(int x, int y, int x2, int y2, float *, int front, int blend=0)=0
virtual unsigned char * GetRGBACharPixelData(int x, int y, int x2, int y2, int front)=0
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void ReleaseRGBAPixelData(float *data)=0
Mesa rendering window.
list of point or cell ids
Definition: vtkIdList.h:34
virtual void MakeCurrent()=0
virtual int GetDepthBufferSize()=0
void PrintSelf(ostream &os, vtkIndent indent)
virtual int SetZbufferData(int x, int y, int x2, int y2, float *z)=0
virtual float * GetRGBAPixelData(int x, int y, int x2, int y2, int front)=0
virtual void StereoUpdate()
dynamic, self-adjusting array of unsigned char
#define VTK_RENDERING_EXPORT
create a window for renderers to draw into
virtual float * GetZbufferData(int x, int y, int x2, int y2)=0
virtual int SetPixelData(int x, int y, int x2, int y2, unsigned char *data, int front)=0
virtual int SetRGBACharPixelData(int x, int y, int x2, int y2, unsigned char *data, int front, int blend=0)=0