5 #include <Foundation/Foundation.h>
32 gROOT->GetListOfSpecials()->Add(
this);
43 gROOT->GetListOfSpecials()->Remove(
this);
50 typedef std::pair<UInt_t, Int_t> component_type;
52 std::vector<component_type>
format;
63 if (nSamples > 0 && nSamples <= 8)
69 UInt_t width = 0, height = 0;
70 gVirtualX->GetWindowSize(parentID, x,
y, width, height);
72 const Window_t glWin =
gVirtualX->CreateOpenGLWindow(parentID, width, height, format);
108 "MakeCurrent, window not found for a given context");
177 assert(manip != 0 &&
"SelectManip, parameter 'manip' is null");
178 assert(camera != 0 &&
"SelectManip, parameter 'camera' is null");
179 assert(rect != 0 &&
"SelectManip, parameter 'rect' is null");
180 assert(sceneBox != 0 &&
"SelectManip, parameter 'sceneBox' is null");
183 return manip->
Select(*camera, *rect, *sceneBox);
190 assert(plot != 0 &&
"PlotSelected, parameter 'plot' is null");
199 assert(plot != 0 &&
"GetPlotInfo, parameter 'plot' is null");
208 assert(p != 0 &&
"PaintSingleObject, parameter 'p' is null");
217 assert(
object != 0 &&
"PanObject, parameter 'object' is null");
219 return object->Pan(x, y);
226 assert(vv != 0 &&
"PrintViewer, parameter 'vv' is null");
Bool_t ResizeOffScreenDevice(Int_t devInd, Int_t x, Int_t y, UInt_t w, UInt_t h)
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
virtual Bool_t Select(const TGLCamera &camera, const TGLRect &rect, const TGLBoundingBox &sceneBox)=0
Int_t GetVirtualXInd(Int_t devInd)
virtual char * GetPlotInfo(Int_t px, Int_t py)=0
virtual Bool_t PlotSelected(Int_t px, Int_t py)=0
void ReadGLBuffer(Int_t devInd)
static std::string format(double x, double y, int digits, int width)
Bool_t SelectManip(TVirtualGLManip *manip, const TGLCamera *camera, const TGLRect *rect, const TGLBoundingBox *sceneBox)
Int_t InitGLWindow(Window_t winID)
Viewport (pixel base) 2D rectangle class.
Abstract 3D shapes viewer.
Bool_t PlotSelected(TVirtualGLPainter *plot, Int_t px, Int_t py)
void SelectOffScreenDevice(Int_t devInd)
CtxToWindowMap_t fCtxToWin
ClassImp(TGOSXGLManager) TGOSXGLManager
Int_t CreateGLContext(Int_t winInd)
Bool_t MakeCurrent(Int_t devInd)
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
void DeleteGLContext(Int_t devInd)
void ExtractViewport(Int_t devInd, Int_t *vp)
void PaintSingleObject(TVirtualGLPainter *)
Bool_t AttachOffScreenDevice(Int_t ctxInd, Int_t x, Int_t y, UInt_t w, UInt_t h)
Concrete class describing an orientated (free) or axis aligned box of 8 vertices. ...
char * GetPlotInfo(TVirtualGLPainter *plot, Int_t px, Int_t py)
virtual void PrintObjects()
void PrintViewer(TVirtualViewer3D *vv)
void PanObject(TVirtualGLPainter *o, Int_t x, Int_t y)
void MarkForDirectCopy(Int_t devInd, Bool_t)