OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkWin32OffscreenRenderWindow.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkWin32OffscreenRenderWindow.h,v $
5   Language:  C++
6   Date:      $Date: 2002/02/01 06:39:48 $
7   Version:   $Revision: 1.1.1.1 $
8   Thanks:    to Horst Schreiber for developing this MFC code
9
10 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen 
11 All rights reserved.
12
13 Redistribution and use in source and binary forms, with or without
14 modification, are permitted provided that the following conditions are met:
15
16  * Redistributions of source code must retain the above copyright notice,
17    this list of conditions and the following disclaimer.
18
19  * Redistributions in binary form must reproduce the above copyright notice,
20    this list of conditions and the following disclaimer in the documentation
21    and/or other materials provided with the distribution.
22
23  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
24    of any contributors may be used to endorse or promote products derived
25    from this software without specific prior written permission.
26
27  * Modified source versions must be plainly marked as such, and must not be
28    misrepresented as being the original software.
29
30 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
31 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
34 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
35 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
36 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
37 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
38 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
41 =========================================================================*/
42
43 #ifndef __vtkWin32OffscreenRenderWindow_h
44 #define __vtkWin32OffscreenRenderWindow_h
45
46 #include "vtkWin32OpenGLRenderWindow.h"
47
48 class VTK_EXPORT vtkWin32OffscreenRenderWindow : public vtkWin32OpenGLRenderWindow
49 {
50 public:
51   static vtkWin32OffscreenRenderWindow *New();
52   vtkTypeMacro(vtkWin32OffscreenRenderWindow,vtkWin32OpenGLRenderWindow);
53   void PrintSelf(ostream &os, vtkIndent indent);
54   
55   virtual void Frame();
56   virtual void WindowInitialize();
57   virtual void SetFullScreen(int) {} // no meaning
58   virtual void SetPosition(int,int) {} // no meaning for offscreen window
59   virtual int *GetScreenSize() { return NULL; }
60   virtual int *GetPosition() { return NULL; }
61   void SetSize(int, int);
62   int *GetSize();
63   
64   virtual void *GetGenericDisplayId() {return NULL;};
65   virtual void *GetGenericWindowId()  {return NULL;};
66   virtual void *GetGenericParentId()  {return NULL;};
67   virtual void SetDisplayId(void *) {};
68   
69   virtual HWND  GetWindowId() { return NULL; }
70   virtual void  SetWindowId(HWND) {}
71   virtual void  SetParentId(HWND) {}
72   virtual void  SetNextWindowId(HWND) {}
73   
74   virtual  int GetEventPending() { return 0; }
75 //BTX
76 protected:
77   vtkWin32OffscreenRenderWindow();
78   ~vtkWin32OffscreenRenderWindow();
79   vtkWin32OffscreenRenderWindow(const vtkWin32OffscreenRenderWindow&) {};
80   void operator=(const vtkWin32OffscreenRenderWindow&) {};
81
82   HBITMAP MhBitmap, MhOldBitmap;
83   int MBpp, MZBpp;
84   
85   // overrides
86   virtual void Clean();
87   virtual void WindowRemap(void) {} // not used
88   virtual void PrefFullScreen(void) {} // not used
89 //ETX
90 };
91
92 #endif // __vtkWin32OffscreenRenderWindow_h