Logo ROOT   6.14/05
Reference Guide
TGWin32VirtualGLProxy.cxx
Go to the documentation of this file.
1 // @(#)root/win32gdk:$Id$
2 // Author: Valeriy Onuchin 05/08/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004,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 #include "TGWin32ProxyDefs.h"
13 #include "TGWin32VirtualGLProxy.h"
14 #include "TGWin32.h"
15 #include "TROOT.h"
16 
17 static TGLManager *gManager = 0;
18 
19 ////////////////////////////////////////////////////////////////////////////////
20 
22 {
23  if (!gManager) {
24  gManager = (TGLManager *)gROOT->GetListOfSpecials()->FindObject("gGLManager");
25  }
26 
27  return gManager;
28 }
29 
31 {
33 }
34 
35 RETURN_PROXY_OBJECT(GLManager)
36 RETURN_METHOD_ARG1(GLManager, Int_t, InitGLWindow, Window_t, winID)
37 RETURN_METHOD_ARG1(GLManager, Int_t, CreateGLContext, Int_t, winInd)
40 VOID_METHOD_ARG1(GLManager, SelectOffScreenDevice, Int_t, pixInd, 1)
41 RETURN_METHOD_ARG1(GLManager, Int_t, GetVirtualXInd, Int_t, pixInd)
42 VOID_METHOD_ARG2(GLManager, MarkForDirectCopy, Int_t, pixInd, Bool_t, direct, 1)
43 RETURN_METHOD_ARG1(GLManager, Bool_t, MakeCurrent, Int_t, devInd)
44 VOID_METHOD_ARG1(GLManager, Flush, Int_t, devInd, 1)
45 VOID_METHOD_ARG1(GLManager, ReadGLBuffer, Int_t, devInd, 1)
46 VOID_METHOD_ARG1(GLManager, DeleteGLContext, Int_t, devInd, 1)
47 VOID_METHOD_ARG2(GLManager, ExtractViewport, Int_t, pixInd, Int_t *, vp, 1)
48 VOID_METHOD_ARG1(GLManager, PrintViewer, TVirtualViewer3D *, vv, 1)
50 VOID_METHOD_ARG3(GLManager, PanObject, TVirtualGLPainter *, p, Int_t, x, Int_t, y, 1)
52 RETURN_METHOD_ARG3(GLManager, char *, GetPlotInfo, TVirtualGLPainter *, plot, Int_t, x, Int_t, y)
53 RETURN_METHOD_ARG4(GLManager, Bool_t, SelectManip, TVirtualGLManip *, manip, const TGLCamera *, camera, const TGLRect *, rect, const TGLBoundingBox *, box)
#define RETURN_METHOD_ARG3(klass, type, method, type1, par1, type2, par2, type3, par3)
#define VOID_METHOD_ARG2(klass, method, type1, par1, type2, par2, sync)
void PaintSingleObject(TVirtualGLPainter *)
#define RETURN_METHOD_ARG5(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5)
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
Definition: TGLCamera.h:43
#define RETURN_PROXY_OBJECT(klass)
Bool_t MakeCurrent(Int_t devInd)
void ExtractViewport(Int_t devInd, Int_t *vp)
void ReadGLBuffer(Int_t devInd)
Bool_t AttachOffScreenDevice(Int_t ctxInd, Int_t x, Int_t y, UInt_t w, UInt_t h)
#define gROOT
Definition: TROOT.h:410
Int_t GetVirtualXInd(Int_t devInd)
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Definition: fillpatterns.C:1
void Flush(Int_t ctxInd)
Int_t CreateGLContext(Int_t winInd)
Double_t x[n]
Definition: legend1.C:17
void PrintViewer(TVirtualViewer3D *vv)
Bool_t PlotSelected(TVirtualGLPainter *plot, Int_t px, Int_t py)
Viewport (pixel base) 2D rectangle class.
Definition: TGLUtil.h:422
Abstract 3D shapes viewer.
Bool_t SelectManip(TVirtualGLManip *manip, const TGLCamera *camera, const TGLRect *rect, const TGLBoundingBox *sceneBox)
static TGLManager * gManager
#define RETURN_METHOD_ARG4(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4)
void DeleteGLContext(Int_t devInd)
#define RETURN_METHOD_ARG1(klass, type, method, type1, par1)
#define VOID_METHOD_ARG1(klass, method, type1, par1, sync)
unsigned int UInt_t
Definition: RtypesCore.h:42
Int_t InitGLWindow(Window_t winID)
Bool_t fIsVirtualX
true if actual TVirtualX implementation
#define h(i)
Definition: RSha256.hxx:106
const Bool_t kFALSE
Definition: RtypesCore.h:88
void SelectOffScreenDevice(Int_t devInd)
Double_t y[n]
Definition: legend1.C:17
void PanObject(TVirtualGLPainter *o, Int_t x, Int_t y)
void MarkForDirectCopy(Int_t devInd, Bool_t)
Bool_t HighColorFormat(Int_t ctx)
Concrete class describing an orientated (free) or axis aligned box of 8 vertices. ...
static TGLManager * RealObject()
Handle_t Window_t
Definition: GuiTypes.h:28
VOID_METHOD_ARG3(VirtualX, SetTypeList, Window_t, win, Atom_t, prop, Atom_t *, typelist, 1)
char * GetPlotInfo(TVirtualGLPainter *plot, Int_t px, Int_t py)
Bool_t ResizeOffScreenDevice(Int_t devInd, Int_t x, Int_t y, UInt_t w, UInt_t h)