Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TGWin32VirtualGLProxy.h
Go to the documentation of this file.
1 // @(#)root/win32gdk:$Id$
2 // Author: Valeriy Onuchin 05/08/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGWin32VirtualGLProxy
13 #define ROOT_TGWin32VirtualGLProxy
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TGWin32VirtualGLProxy //
19 // //
20 // The TGWin32VirtualGLProxy proxy class to TVirtualGL //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TVirtualGL.h"
25 
26 #include "TGWin32ProxyBase.h"
27 
28 
29 class TGWin32GLManagerProxy : public TGLManager, public TGWin32ProxyBase
30 {
31 public:
32  TGWin32GLManagerProxy();
33 
34  Int_t InitGLWindow(Window_t winID);
35  Int_t CreateGLContext(Int_t winInd);
36  Bool_t AttachOffScreenDevice(Int_t ctxInd, Int_t x, Int_t y, UInt_t w, UInt_t h);
37  Bool_t ResizeOffScreenDevice(Int_t devInd, Int_t x, Int_t y, UInt_t w, UInt_t h);
38  void SelectOffScreenDevice(Int_t devInd);
39  Int_t GetVirtualXInd(Int_t devInd);
40  void MarkForDirectCopy(Int_t devInd, Bool_t);
41  void ExtractViewport(Int_t devInd, Int_t *vp);
42  void ReadGLBuffer(Int_t devInd);
43  Bool_t MakeCurrent(Int_t devInd);
44  void Flush(Int_t ctxInd);
45  void DeleteGLContext(Int_t devInd);
46  Bool_t SelectManip(TVirtualGLManip *manip, const TGLCamera *camera, const TGLRect *rect, const TGLBoundingBox *sceneBox);
47  void PaintSingleObject(TVirtualGLPainter *);
48  void PanObject(TVirtualGLPainter *o, Int_t x, Int_t y);
49  void PrintViewer(TVirtualViewer3D *vv);
50  Bool_t PlotSelected(TVirtualGLPainter *plot, Int_t px, Int_t py);
51  char *GetPlotInfo(TVirtualGLPainter *plot, Int_t px, Int_t py);
52  Bool_t HighColorFormat(Int_t ctx);
53 
54  static TGLManager *ProxyObject();
55  static TGLManager *RealObject();
56 };
57 #endif