Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGWin32GL.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_TGWin32GL
13#define ROOT_TGWin32GL
14
15
16#include "TVirtualGL.h"
17#include "TVirtualViewer3D.h"
18
19
21private:
22 class TGWin32GLImpl;
24
25public:
27 ~TGWin32GLManager() override;
28
29 //All public functions are TGLManager's final-overriders
30
31 //index returned can be used as a result of gVirtualX->InitWindow
32 Int_t InitGLWindow(Window_t winID) override;
33 //winInd is the index, returned by InitGLWindow
35
36 //[ Off-screen rendering part
37 //create DIB section to read GL buffer into it,
38 //ctxInd is the index, returned by CreateGLContext
41 //analog of gVirtualX->SelectWindow(fPixmapID) => gVirtualGL->SelectOffScreenDevice(fPixmapID)
42 void SelectOffScreenDevice(Int_t devInd) override;
43 //Index of DIB, valid for gVirtualX
45 //copy DIB into window directly/by pad
46 void MarkForDirectCopy(Int_t devInd, Bool_t) override;
47 //Off-screen device holds sizes for glViewport
48 void ExtractViewport(Int_t devInd, Int_t *vp) override;
49 //Read GL buffer into DIB
50 void ReadGLBuffer(Int_t devInd) override;
51 //]
52
53 //Make the gl context current
55 //Swap buffers or "blits" DIB
56 void Flush(Int_t ctxInd) override;
57 //Generic function for gl context and off-screen device deletion
58 void DeleteGLContext(Int_t devInd) override;
59
60 //functions to switch between threads in win32
61 //used by viewer
62 Bool_t SelectManip(TVirtualGLManip *manip, const TGLCamera *camera, const TGLRect *rect, const TGLBoundingBox *sceneBox) override;
63
65 char *GetPlotInfo(TVirtualGLPainter *plot, Int_t px, Int_t py) override;
66
67 void PaintSingleObject(TVirtualGLPainter *) override;
68 void PanObject(TVirtualGLPainter *o, Int_t x, Int_t y) override;
69 void PrintViewer(TVirtualViewer3D *vv) override;
70
71 Bool_t HighColorFormat(Int_t ctx) override;
72
73private:
74 struct TGLContext;
75 Bool_t CreateDIB(TGLContext &ctx)const;
76
79
81};
82
83#endif
Handle_t Window_t
Window handle.
Definition GuiTypes.h:29
#define h(i)
Definition RSha256.hxx:106
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h Flush
winID h PrintViewer
winID AttachOffScreenDevice
winID h TVirtualViewer3D PanObject
winID h DeleteGLContext
winID winInd
winID h TVirtualViewer3D vv
winID h devInd
winID h SelectOffScreenDevice
winID h TVirtualViewer3D TVirtualGLPainter char TVirtualGLPainter y HighColorFormat
winID h TVirtualViewer3D TVirtualGLPainter char TVirtualGLPainter plot
winID h TVirtualViewer3D TVirtualGLPainter char GetPlotInfo
winID h MarkForDirectCopy
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t rect
Concrete class describing an orientated (free) or axis aligned box of 8 vertices.
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
Definition TGLCamera.h:44
Viewport (pixel base) 2D rectangle class.
Definition TGLUtil.h:422
void ExtractViewport(Int_t devInd, Int_t *vp) override
Bool_t ResizeOffScreenDevice(Int_t devInd, Int_t x, Int_t y, UInt_t w, UInt_t h) override
Create new DIB if needed.
Int_t CreateGLContext(Int_t winInd) override
winInd is TGWin32 index, returned by previous call gGLManager->InitGLWindow returns descripto (index)...
Bool_t CreateDIB(TGLContext &ctx) const
Create DIB section to read GL buffer into.
void PaintSingleObject(TVirtualGLPainter *) override
TGWin32GLManager(const TGWin32GLManager &)
Bool_t PlotSelected(TVirtualGLPainter *plot, Int_t px, Int_t py) override
Int_t GetVirtualXInd(Int_t devInd) override
Bool_t SelectManip(TVirtualGLManip *manip, const TGLCamera *camera, const TGLRect *rect, const TGLBoundingBox *sceneBox) override
void ReadGLBuffer(Int_t devInd) override
TGWin32GLImpl * fPimpl
Definition TGWin32GL.h:23
~TGWin32GLManager() override
Bool_t MakeCurrent(Int_t devInd) override
TGWin32GLManager & operator=(const TGWin32GLManager &)
Abstract 3D shapes viewer.
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17