Logo ROOT  
Reference Guide
TGLViewer.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Richard Maunder 25/05/2005
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 #ifndef ROOT_TGLViewer
13 #define ROOT_TGLViewer
14 
15 #include "TGLViewerBase.h"
16 #include "TGLRnrCtx.h"
17 #include "TGLSelectRecord.h"
18 
19 #include "TVirtualViewer3D.h"
20 #include "TBuffer3D.h"
21 
22 #include "TGLPerspectiveCamera.h"
23 #include "TGLOrthoCamera.h"
24 #include "TGLClip.h"
25 
26 #include "TTimer.h"
27 #include "TPoint.h"
28 
29 #include "TGEventHandler.h"
30 
31 #include "GuiTypes.h"
32 #include "TQObject.h"
33 
34 class TGLSceneBase;
35 class TGLRedrawTimer;
36 class TGLViewerEditor;
37 class TGLWidget;
38 class TGLLightSet;
39 class TGLClipSet;
40 class TGLManipSet;
41 class TGLCameraOverlay;
42 class TGLContextIdentity;
43 class TGLAutoRotator;
44 class TTimer;
45 class TImage;
46 
47 class TContextMenu;
48 class TGedEditor;
49 class TGLPShapeObj;
50 
51 class TGLViewer : public TVirtualViewer3D,
52  public TGLViewerBase,
53  public TQObject
54 
55 {
56  friend class TGLOutput;
57  friend class TGLEventHandler;
58  friend class TGLAutoRotator;
59 public:
60 
64 
65  enum ESecSelType { // When to do secondary-selection:
66  kOnRequest, // - on request - when Mod1 is pressed or logical-shape requests it;
67  kOnKeyMod1 // - only when Mod1 is pressed.
68  };
69 
70 private:
71  TGLViewer(const TGLViewer &) = delete;
72  TGLViewer & operator=(const TGLViewer &) = delete;
73 
74  void InitSecondaryObjects();
75 
76 protected:
77  // External handles
78  TVirtualPad *fPad; //! external pad - remove replace with signal
79 
80  // GUI Handles
82 
83  // Cameras
84  // TODO: Put in vector and allow external creation
98 
99  // Stereo
100  Bool_t fStereo; //! use stereo rendering
101  Bool_t fStereoQuadBuf; //! draw quad buffer or left/right stereo in left/right half of window
102  Float_t fStereoZeroParallax; //! position of zero-parallax plane: 0 - near clipping plane, 1 - far clipping plane
105 
106  // Lights
108  // Clipping
110  // Selected physical
111  TGLSelectRecord fCurrentSelRec; //! select record in use as selected
112  TGLSelectRecord fSelRec; //! select record from last select (should go to context)
113  TGLSelectRecord fSecSelRec; //! select record from last secondary select (should go to context)
115  // Overlay
116  TGLOverlayElement *fCurrentOvlElm; //! current overlay element
117  TGLOvlSelectRecord fOvlSelRec; //! select record from last overlay select
118 
119  TGEventHandler *fEventHandler; //! event handler
120  TGedEditor *fGedEditor; //! GED editor
122 
123  // Mouse ineraction
124 public:
130 protected:
133 
134  // Redraw timer
135  TGLRedrawTimer *fRedrawTimer; //! timer for triggering redraws
136  Float_t fMaxSceneDrawTimeHQ; //! max time for scene rendering at high LOD (in ms)
137  Float_t fMaxSceneDrawTimeLQ; //! max time for scene rendering at high LOD (in ms)
138 
139  TGLRect fViewport; //! viewport - drawn area
140  TGLColorSet fDarkColorSet; //! color-set with dark background
141  TGLColorSet fLightColorSet; //! color-set with light background
142  Float_t fPointScale; //! size scale for points
143  Float_t fLineScale; //! width scale for lines
144  Bool_t fSmoothPoints; //! smooth point edge rendering
145  Bool_t fSmoothLines; //! smooth line edge rendering
146  Int_t fAxesType; //! axes type
147  Bool_t fAxesDepthTest; //! remove guides hidden-lines
148  Bool_t fReferenceOn; //! reference marker on?
149  TGLVertex3 fReferencePos; //! reference position
150  Bool_t fDrawCameraCenter; //! reference marker on?
151  TGLCameraOverlay *fCameraOverlay; //! markup size of viewport in scene units
152 
153  Bool_t fSmartRefresh; //! cache logicals during scene rebuilds
154 
155  // Debug tracing (for scene rebuilds)
156  Bool_t fDebugMode; //! debug mode (forced rebuild + draw scene/frustum/interest boxes)
158  TString fPictureFileName; //! default file-name for SavePicture()
159  Float_t fFader; //! fade the view (0 - no fade/default, 1 - full fade/no rendering done)
160 
161  static TGLColorSet fgDefaultColorSet; //! a shared, default color-set
162  static Bool_t fgUseDefaultColorSetForNewViewers; //! name says it all
163 
164 
165  ///////////////////////////////////////////////////////////////////////
166  // Methods
167  ///////////////////////////////////////////////////////////////////////
168 
169  virtual void SetupClipObject();
170 
171  // Drawing - can tidy up/remove lots when TGLManager added
172  void InitGL();
173  void PreDraw();
174  void PostDraw();
175  void FadeView(Float_t alpha);
176  void MakeCurrent() const;
177  void SwapBuffers() const;
178 
179  // Cameras
180  void SetViewport(Int_t x, Int_t y, Int_t width, Int_t height);
181  void SetViewport(const TGLRect& vp);
182  void SetupCameras(Bool_t reset);
183 
184 protected:
186  Int_t fGLDevice; //!for embedded gl viewer
187  TGLContextIdentity *fGLCtxId; //!for embedded gl viewer
188 
189  // Updata/camera-reset behaviour
190  Bool_t fIgnoreSizesOnUpdate; // ignore sizes of bounding-boxes on update
191  Bool_t fResetCamerasOnUpdate; // reposition camera on each update
192  Bool_t fResetCamerasOnNextUpdate; // reposition camera on next update
193 
194 public:
195  TGLViewer(TVirtualPad* pad, Int_t x, Int_t y, Int_t width, Int_t height);
196  TGLViewer(TVirtualPad* pad);
197  virtual ~TGLViewer();
198 
199  // TVirtualViewer3D interface ... mostly a facade
200 
201  // Forward to TGLScenePad
202  virtual Bool_t CanLoopOnPrimitives() const { return kTRUE; }
203  virtual void PadPaint(TVirtualPad* pad);
204  // Actually used by GL-in-pad
205  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
206  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
207  // Only implemented because they're abstract ... should throw an
208  // exception or assert they are not called.
209  virtual Bool_t PreferLocalFrame() const { return kTRUE; }
210  virtual void BeginScene() {}
211  virtual Bool_t BuildingScene() const { return kFALSE; }
212  virtual void EndScene() {}
213  virtual Int_t AddObject(const TBuffer3D&, Bool_t* = 0) { return TBuffer3D::kNone; }
214  virtual Int_t AddObject(UInt_t, const TBuffer3D&, Bool_t* = 0) { return TBuffer3D::kNone; }
215  virtual Bool_t OpenComposite(const TBuffer3D&, Bool_t* = 0) { return kFALSE; }
216  virtual void CloseComposite() {}
217  virtual void AddCompositeOp(UInt_t) {}
218 
219  virtual void PrintObjects();
220  virtual void ResetCameras() { SetupCameras(kTRUE); }
222 
224 
225  virtual void CreateGLWidget() {}
226  virtual void DestroyGLWidget() {}
227 
228  Int_t GetDev() const { return fGLDevice; }
230  void SetSmartRefresh(Bool_t smart_ref) { fSmartRefresh = smart_ref; }
231 
235  void UseDarkColorSet();
236  void UseLightColorSet();
237  void SwitchColorSet();
238 
241  Bool_t IsColorSetDark() const;
242 
243  void SetClearColor(Color_t col);
244 
248 
249  const TGLRect& RefViewport() const { return fViewport; }
250  Int_t ViewportDiagonal() const { return fViewport.Diagonal(); }
251 
252  Float_t GetPointScale() const { return fPointScale; }
253  Float_t GetLineScale() const { return fLineScale; }
257  Bool_t GetSmoothLines() const { return fSmoothLines; }
260 
261  TGLLightSet* GetLightSet() const { return fLightSet; }
262  TGLClipSet * GetClipSet() const { return fClipSet; }
265 
266  // External GUI component interface
267  TGLCamera & CurrentCamera() const { return *fCurrentCamera; }
268  TGLCamera & RefCamera(ECameraType camera);
269  void SetCurrentCamera(ECameraType camera);
270  void SetOrthoCamera(ECameraType camera, Double_t zoom, Double_t dolly,
271  Double_t center[3], Double_t hRotate, Double_t vRotate);
272  void SetPerspectiveCamera(ECameraType camera, Double_t fov, Double_t dolly,
273  Double_t center[3], Double_t hRotate, Double_t vRotate);
274  void ReinitializeCurrentCamera(const TGLVector3& hAxis, const TGLVector3& vAxis, Bool_t redraw=kTRUE);
275  void GetGuideState(Int_t & axesType, Bool_t & axesDepthTest, Bool_t & referenceOn, Double_t* referencePos) const;
276  void SetGuideState(Int_t axesType, Bool_t axesDepthTest, Bool_t referenceOn, const Double_t* referencePos);
284  void SetAutoRotator(TGLAutoRotator* ar);
285 
286  // Stereo
287  Bool_t GetStereo() const { return fStereo; }
291 
292  void SetStereo(Bool_t stereo, Bool_t quad_buf=kTRUE);
296 
297  // Push / drag action
300 
301  const TGLPhysicalShape * GetSelected() const;
302 
303 
304  // Draw and selection
305 
306  // Scene rendering timeouts
311 
312  // Request methods post cross thread request via TROOT::ProcessLineFast().
313  void RequestDraw(Short_t LOD = TGLRnrCtx::kLODMed); // Cross thread draw request
314  virtual void PreRender();
315  virtual void Render();
316  virtual void PostRender();
317  void DoDraw(Bool_t swap_buffers=kTRUE);
318  void DoDrawMono(Bool_t swap_buffers);
319  void DoDrawStereo(Bool_t swap_buffers);
320 
321  void DrawGuides();
322  void DrawDebugInfo();
323 
324  Bool_t RequestSelect(Int_t x, Int_t y); // Cross thread select request
325  Bool_t DoSelect(Int_t x, Int_t y); // First level selecton (shapes/objects).
326  Bool_t RequestSecondarySelect(Int_t x, Int_t y); // Cross thread secondary select request
327  Bool_t DoSecondarySelect(Int_t x, Int_t y); // Second level selecton (inner structure).
328  void ApplySelection();
329 
330  Bool_t RequestOverlaySelect(Int_t x, Int_t y); // Cross thread select request
331  Bool_t DoOverlaySelect(Int_t x, Int_t y); // Window coords origin top left
332 
333  // Saving of screen image
335  Bool_t SavePicture(const TString &fileName);
336  Bool_t SavePictureUsingBB (const TString &fileName);
337  Bool_t SavePictureUsingFBO(const TString &fileName, Int_t w, Int_t h, Float_t pixel_object_scale=0);
338  Bool_t SavePictureWidth (const TString &fileName, Int_t width, Bool_t pixel_object_scale=kTRUE);
339  Bool_t SavePictureHeight(const TString &fileName, Int_t height, Bool_t pixel_object_scale=kTRUE);
340  Bool_t SavePictureScale (const TString &fileName, Float_t scale, Bool_t pixel_object_scale=kTRUE);
341 
342  // Methods returning screen image
344  TImage* GetPictureUsingFBO(Int_t w, Int_t h,Float_t pixel_object_scale=0);
345 
346  const char* GetPictureFileName() const { return fPictureFileName.Data(); }
348  Float_t GetFader() const { return fFader; }
349  void SetFader(Float_t x) { fFader = x; }
350  void AutoFade(Float_t fade, Float_t time=1, Int_t steps=10);
351 
352  // Update/camera-reset
353  void UpdateScene(Bool_t redraw=kTRUE);
356  void ResetCurrentCamera();
359 
360  virtual void PostSceneBuildSetup(Bool_t resetCameras);
361 
362  virtual void Activated() { Emit("Activated()"); } // *SIGNAL*
363 
364  virtual void MouseIdle(TGLPhysicalShape*,UInt_t,UInt_t); // *SIGNAL*
365  virtual void MouseOver(TGLPhysicalShape*); // *SIGNAL*
366  virtual void MouseOver(TGLPhysicalShape*, UInt_t state); // *SIGNAL*
367  virtual void MouseOver(TObject *obj, UInt_t state); // *SIGNAL*
368  virtual void ReMouseOver(TObject *obj, UInt_t state); // *SIGNAL*
369  virtual void UnMouseOver(TObject *obj, UInt_t state); // *SIGNAL*
370 
371  virtual void Clicked(TObject *obj); //*SIGNAL*
372  virtual void Clicked(TObject *obj, UInt_t button, UInt_t state); //*SIGNAL*
373  virtual void ReClicked(TObject *obj, UInt_t button, UInt_t state); //*SIGNAL*
374  virtual void UnClicked(TObject *obj, UInt_t button, UInt_t state); //*SIGNAL*
375  virtual void DoubleClicked() { Emit("DoubleClicked()"); } // *SIGNAL*
376 
378  virtual void SetEventHandler(TGEventHandler *handler);
379 
380  TGedEditor* GetGedEditor() const { return fGedEditor; }
381  virtual void SetGedEditor(TGedEditor* ed) { fGedEditor = ed; }
382 
383  virtual void SelectionChanged();
384  virtual void OverlayDragFinished();
385  virtual void RefreshPadEditor(TObject* obj=0);
386 
387  virtual void RemoveOverlayElement(TGLOverlayElement* el);
388 
392  void ClearCurrentOvlElm();
393 
394  ClassDef(TGLViewer,0) // Standard ROOT GL viewer.
395 };
396 
397 
398 
399 // TODO: Find a better place/way to do this
400 class TGLRedrawTimer : public TTimer
401 {
402 private:
406 public:
408  fViewer(viewer), fRedrawLOD(TGLRnrCtx::kLODHigh), fPending(kFALSE) {}
410  void RequestDraw(Int_t milliSec, Short_t redrawLOD)
411  {
412  if (fPending) TurnOff(); else fPending = kTRUE;
413  if (redrawLOD < fRedrawLOD) fRedrawLOD = redrawLOD;
414  TTimer::Start(milliSec, kTRUE);
415  }
416  Bool_t IsPending() const { return fPending; }
417  virtual void Stop()
418  {
419  if (fPending) { TurnOff(); fPending = kFALSE; }
420  }
422  {
423  TurnOff();
424  fPending = kFALSE;
427  return kTRUE;
428  }
429 };
430 
432 private:
433  TGLFaderHelper(const TGLFaderHelper&); // Not implemented
434  TGLFaderHelper& operator=(const TGLFaderHelper&); // Not implemented
435 
436 public:
441 
443  fViewer(0), fFadeTarget(0), fTime(0), fNSteps(0) {}
445  fViewer(v),fFadeTarget(fade), fTime(time), fNSteps(steps) {}
446  virtual ~TGLFaderHelper() {}
447 
448  void MakeFadeStep();
449 
451 };
452 
453 #endif // ROOT_TGLViewer
TGLFaderHelper::fNSteps
Int_t fNSteps
Definition: TGLViewer.h:440
TGLViewer::fGedEditor
TGedEditor * fGedEditor
event handler
Definition: TGLViewer.h:120
TGLViewer::IsUsingDefaultColorSet
Bool_t IsUsingDefaultColorSet() const
Check if the viewer is using the default color set.
Definition: TGLViewer.cxx:1662
TGLViewer::GetAutoRotator
TGLAutoRotator * GetAutoRotator()
Get the auto-rotator for this viewer.
Definition: TGLViewer.cxx:1998
m
auto * m
Definition: textangle.C:8
TGLFaderHelper
Definition: TGLViewer.h:431
TGLViewer::SavePictureWidth
Bool_t SavePictureWidth(const TString &fileName, Int_t width, Bool_t pixel_object_scale=kTRUE)
Save picture with given width (height scaled proportionally).
Definition: TGLViewer.cxx:1115
TGLViewer::fLightSet
TGLLightSet * fLightSet
Definition: TGLViewer.h:107
TGLViewer::fCurrentSelRec
TGLSelectRecord fCurrentSelRec
Definition: TGLViewer.h:111
TGLRedrawTimer::Notify
Bool_t Notify()
Notify when timer times out.
Definition: TGLViewer.h:421
TGLFaderHelper::fFadeTarget
Float_t fFadeTarget
Definition: TGLViewer.h:438
TGLViewer::fPushAction
EPushAction fPushAction
Definition: TGLViewer.h:131
TGLViewer::RequestSelect
Bool_t RequestSelect(Int_t x, Int_t y)
Post request for selection render pass viewer, picking objects around the window point (x,...
Definition: TGLViewer.cxx:1305
TGLViewer::IsUsingDefaultColorSetForNewViewers
static Bool_t IsUsingDefaultColorSetForNewViewers()
Returns the value of the static flag that determines if new viewers should use the default color-set.
Definition: TGLViewer.cxx:1700
TGLViewer::GetSmoothPoints
Bool_t GetSmoothPoints() const
Definition: TGLViewer.h:256
TGLClipSet::SetAutoUpdate
void SetAutoUpdate(Bool_t aup)
Definition: TGLClip.h:189
TGLViewer::ResetCurrentCamera
void ResetCurrentCamera()
Resets position/rotation of current camera to default values.
Definition: TGLViewer.cxx:357
TGLViewer::fIsPrinting
Bool_t fIsPrinting
debug mode (forced rebuild + draw scene/frustum/interest boxes)
Definition: TGLViewer.h:157
TGEventHandler.h
TGLViewer::RefCamera
TGLCamera & RefCamera(ECameraType camera)
Return camera reference by type.
Definition: TGLViewer.cxx:1753
TGLViewer::fOrthoZnOYCamera
TGLOrthoCamera fOrthoZnOYCamera
Definition: TGLViewer.h:94
TGLRect::Diagonal
Int_t Diagonal() const
Return the diagonal of the rectangle.
Definition: TGLUtil.cxx:286
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TGLViewer::kCameraOrthoZnOX
@ kCameraOrthoZnOX
Definition: TGLViewer.h:63
TGLViewer::ResetCamerasAfterNextUpdate
virtual void ResetCamerasAfterNextUpdate()
Definition: TGLViewer.h:221
TBuffer3D::kNone
@ kNone
Definition: TBuffer3D.h:55
TGLViewer::fStereoEyeOffsetFac
Float_t fStereoEyeOffsetFac
position of zero-parallax plane: 0 - near clipping plane, 1 - far clipping plane
Definition: TGLViewer.h:103
TGLSceneBase
Definition: TGLSceneBase.h:32
TGLViewer::GetCameraOverlay
TGLCameraOverlay * GetCameraOverlay() const
Definition: TGLViewer.h:281
TGLViewer::PostDraw
void PostDraw()
Perform GL work which must be done after each draw.
Definition: TGLViewer.cxx:1241
TGLOverlayElement
Definition: TGLOverlay.h:22
TGLViewer::GetIgnoreSizesOnUpdate
Bool_t GetIgnoreSizesOnUpdate() const
Definition: TGLViewer.h:354
TGLViewer::fGLDevice
Int_t fGLDevice
Definition: TGLViewer.h:186
TGLAutoRotator
Definition: TGLAutoRotator.h:23
TGLViewer::GetGuideState
void GetGuideState(Int_t &axesType, Bool_t &axesDepthTest, Bool_t &referenceOn, Double_t *referencePos) const
Fetch the state of guides (axes & reference markers) into arguments.
Definition: TGLViewer.cxx:2044
TGLViewer::kCameraPerspXOZ
@ kCameraPerspXOZ
Definition: TGLViewer.h:61
TGLViewerEditor
Definition: TGLViewerEditor.h:36
f
#define f(i)
Definition: RSha256.hxx:122
TGLViewer::fPerspectiveCameraYOZ
TGLPerspectiveCamera fPerspectiveCameraYOZ
Definition: TGLViewer.h:86
TGLViewer::SetSmoothPoints
void SetSmoothPoints(Bool_t s)
Definition: TGLViewer.h:258
TGLViewer::Clicked
virtual void Clicked(TObject *obj)
Emit Clicked signal.
Definition: TGLViewer.cxx:2147
TGLViewer::SetupCameras
void SetupCameras(Bool_t reset)
Setup cameras for current bounding box.
Definition: TGLViewer.cxx:366
TGLViewer::fOrthoXOZCamera
TGLOrthoCamera fOrthoXOZCamera
Definition: TGLViewer.h:89
TGLFaderHelper::TGLFaderHelper
TGLFaderHelper(TGLViewer *v, Float_t fade, Float_t time, Int_t steps)
Definition: TGLViewer.h:444
TGLViewer::UseDarkColorSet
void UseDarkColorSet()
Use the dark color-set.
Definition: TGLViewer.cxx:1614
TGLClipSet::GetAutoUpdate
Bool_t GetAutoUpdate() const
Definition: TGLClip.h:188
TGLViewer::fSelRec
TGLSelectRecord fSelRec
select record in use as selected
Definition: TGLViewer.h:112
TGLViewer::GetGLWidget
TGLWidget * GetGLWidget()
Definition: TGLViewer.h:223
TGLViewer::EndScene
virtual void EndScene()
Definition: TGLViewer.h:212
TGLClipSet
Definition: TGLClip.h:139
TGLViewer::fPad
TVirtualPad * fPad
Definition: TGLViewer.h:78
TGLViewer::MakeCurrent
void MakeCurrent() const
Make GL context current.
Definition: TGLViewer.cxx:1276
TGLRedrawTimer::fPending
Bool_t fPending
Definition: TGLViewer.h:405
TGLRnrCtx::kLODHigh
@ kLODHigh
Definition: TGLRnrCtx.h:67
TGLViewer::SetGuideState
void SetGuideState(Int_t axesType, Bool_t axesDepthTest, Bool_t referenceOn, const Double_t *referencePos)
Set the state of guides (axes & reference markers) from arguments.
Definition: TGLViewer.cxx:2058
TGLViewer::fCurrentCamera
TGLCamera * fCurrentCamera
Definition: TGLViewer.h:96
TString::Data
const char * Data() const
Definition: TString.h:369
TGLViewer::SavePictureScale
Bool_t SavePictureScale(const TString &fileName, Float_t scale, Bool_t pixel_object_scale=kTRUE)
Save picture with given scale to current window size.
Definition: TGLViewer.cxx:1143
TGLViewer::InitSecondaryObjects
void InitSecondaryObjects()
Common initialization.
Definition: TGLViewer.cxx:239
TGLViewer::SetSmartRefresh
void SetSmartRefresh(Bool_t smart_ref)
Definition: TGLViewer.h:230
TGLViewer::kDragCameraRotate
@ kDragCameraRotate
Definition: TGLViewer.h:128
TGLViewer::GetSmartRefresh
Bool_t GetSmartRefresh() const
Definition: TGLViewer.h:229
TGLViewer::ReMouseOver
virtual void ReMouseOver(TObject *obj, UInt_t state)
Emit MouseOver signal.
Definition: TGLViewer.cxx:2124
TGLOvlSelectRecord
Definition: TGLSelectRecord.h:139
TGLFaderHelper::TGLFaderHelper
TGLFaderHelper()
Definition: TGLViewer.h:442
TGLViewer::GetStereoZeroParallax
Float_t GetStereoZeroParallax() const
Definition: TGLViewer.h:288
TGLManipSet
Definition: TGLManipSet.h:20
TGLViewer::fLightColorSet
TGLColorSet fLightColorSet
color-set with dark background
Definition: TGLViewer.h:141
TGLViewer::SetStereoEyeOffsetFac
void SetStereoEyeOffsetFac(Float_t f)
Definition: TGLViewer.h:294
TGLViewer::GetEventHandler
TGEventHandler * GetEventHandler() const
Definition: TGLViewer.h:377
TTimer::Start
virtual void Start(Long_t milliSec=-1, Bool_t singleShot=kFALSE)
Starts the timer with a milliSec timeout.
Definition: TTimer.cxx:211
TGLViewer::GetPictureUsingBB
TImage * GetPictureUsingBB()
Returns current image.
Definition: TGLViewer.cxx:984
TGLViewer::OpenComposite
virtual Bool_t OpenComposite(const TBuffer3D &, Bool_t *=0)
Definition: TGLViewer.h:215
TGLViewer::GetDev
Int_t GetDev() const
Definition: TGLViewer.h:228
TGLViewer::GetDrawCameraCenter
Bool_t GetDrawCameraCenter()
Definition: TGLViewer.h:278
TGLViewer::PrintObjects
virtual void PrintObjects()
Pass viewer for print capture by TGLOutput.
Definition: TGLViewer.cxx:2236
TGLViewer::UseLightColorSet
void UseLightColorSet()
Use the light color-set.
Definition: TGLViewer.cxx:1623
TGLCamera
Definition: TGLCamera.h:43
TGLViewer::TGLViewer
TGLViewer(const TGLViewer &)=delete
Float_t
float Float_t
Definition: RtypesCore.h:57
TGLViewer::SetOrthoCamera
void SetOrthoCamera(ECameraType camera, Double_t zoom, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate)
Set an orthographic camera to supplied configuration - note this does not need to be the current came...
Definition: TGLViewer.cxx:1891
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TGLViewer::AddCompositeOp
virtual void AddCompositeOp(UInt_t)
Definition: TGLViewer.h:217
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:168
TGLViewer::CurrentCamera
TGLCamera & CurrentCamera() const
Definition: TGLViewer.h:267
TGLViewer::fOrthoZOYCamera
TGLOrthoCamera fOrthoZOYCamera
Definition: TGLViewer.h:90
Int_t
int Int_t
Definition: RtypesCore.h:45
TGLViewer::Render
virtual void Render()
Normal rendering, used by mono and stereo rendering.
Definition: TGLViewer.cxx:516
TGLViewerBase::fRnrCtx
TGLRnrCtx * fRnrCtx
Definition: TGLViewerBase.h:62
TGLViewer::fReferenceOn
Bool_t fReferenceOn
remove guides hidden-lines
Definition: TGLViewer.h:148
TGLViewer::ESecSelType
ESecSelType
Definition: TGLViewer.h:65
TGLPShapeObj
Definition: TGLPShapeObj.h:20
TGLViewer::AutoFade
void AutoFade(Float_t fade, Float_t time=1, Int_t steps=10)
Animate fading from current value to fade over given time (sec) and number of steps.
Definition: TGLViewer.cxx:1605
TImage
Definition: TImage.h:29
TGLViewer::fClipSet
TGLClipSet * fClipSet
Definition: TGLViewer.h:109
TGLViewer::GetStereo
Bool_t GetStereo() const
Definition: TGLViewer.h:287
TGLViewer::fPointScale
Float_t fPointScale
color-set with light background
Definition: TGLViewer.h:142
TGLViewer::SavePictureUsingFBO
Bool_t SavePictureUsingFBO(const TString &fileName, Int_t w, Int_t h, Float_t pixel_object_scale=0)
Save current image in various formats (gif, gif+, jpg, png).
Definition: TGLViewer.cxx:890
x
Double_t x[n]
Definition: legend1.C:17
TTimer::TurnOff
virtual void TurnOff()
Remove timer from system timer list.
Definition: TTimer.cxx:229
TGLViewer::SetLineScale
void SetLineScale(Float_t s)
Definition: TGLViewer.h:255
TGLViewer::kPushCamCenter
@ kPushCamCenter
Definition: TGLViewer.h:126
TGLViewer::fRedrawTimer
TGLRedrawTimer * fRedrawTimer
Definition: TGLViewer.h:135
TGLViewer::fCurrentOvlElm
TGLOverlayElement * fCurrentOvlElm
Definition: TGLViewer.h:116
TGLViewer::DoDrawMono
void DoDrawMono(Bool_t swap_buffers)
Draw out in monoscopic mode.
Definition: TGLViewer.cxx:625
TGLViewer::SavePicture
Bool_t SavePicture()
Save current image using the default file name which can be set via SetPictureFileName() and defaults...
Definition: TGLViewer.cxx:782
TGLViewer::SetIgnoreSizesOnUpdate
void SetIgnoreSizesOnUpdate(Bool_t v)
Definition: TGLViewer.h:355
TGLViewer::DoubleClicked
virtual void DoubleClicked()
Definition: TGLViewer.h:375
TGLViewer::GetOvlSelRec
TGLOvlSelectRecord & GetOvlSelRec()
Definition: TGLViewer.h:390
TGLViewer::DoSecondarySelect
Bool_t DoSecondarySelect(Int_t x, Int_t y)
Secondary selection.
Definition: TGLViewer.cxx:1396
TGLViewer::kOnKeyMod1
@ kOnKeyMod1
Definition: TGLViewer.h:67
TGLViewer::fSecSelRec
TGLSelectRecord fSecSelRec
select record from last select (should go to context)
Definition: TGLViewer.h:113
TTimer.h
TGLViewer::kDragNone
@ kDragNone
Definition: TGLViewer.h:127
TGLViewer::fResetCamerasOnNextUpdate
Bool_t fResetCamerasOnNextUpdate
Definition: TGLViewer.h:192
TGLViewer::SavePictureHeight
Bool_t SavePictureHeight(const TString &fileName, Int_t height, Bool_t pixel_object_scale=kTRUE)
Save picture with given height (width scaled proportionally).
Definition: TGLViewer.cxx:1129
TGLViewer::RemoveOverlayElement
virtual void RemoveOverlayElement(TGLOverlayElement *el)
Remove overlay element.
Definition: TGLViewer.cxx:2303
TGLViewer::SavePictureUsingBB
Bool_t SavePictureUsingBB(const TString &fileName)
Save current image in various formats (gif, gif+, jpg, png).
Definition: TGLViewer.cxx:833
TGLViewer::UnMouseOver
virtual void UnMouseOver(TObject *obj, UInt_t state)
Emit UnMouseOver signal.
Definition: TGLViewer.cxx:2136
TGLViewer::GetFader
Float_t GetFader() const
Definition: TGLViewer.h:348
TGLViewer::ApplySelection
void ApplySelection()
Process result from last selection (in fSelRec) and extract a new current selection from it.
Definition: TGLViewer.cxx:1471
TString
Definition: TString.h:136
TGLViewer::fAxesDepthTest
Bool_t fAxesDepthTest
axes type
Definition: TGLViewer.h:147
TGLViewer::SetStereo
void SetStereo(Bool_t stereo, Bool_t quad_buf=kTRUE)
Enable stereo rendering.
Definition: TGLViewer.cxx:2023
TGLColorSet
Definition: TGLUtil.h:835
TGLOrthoCamera
Definition: TGLOrthoCamera.h:35
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGLViewer::GetPushAction
EPushAction GetPushAction() const
Definition: TGLViewer.h:298
TGLViewer::kCameraOrthoZOX
@ kCameraOrthoZOX
Definition: TGLViewer.h:62
TGLViewer::fGLWidget
TGLWidget * fGLWidget
Definition: TGLViewer.h:185
Color_t
short Color_t
Definition: RtypesCore.h:83
TGLViewer::GetStereoEyeOffsetFac
Float_t GetStereoEyeOffsetFac() const
Definition: TGLViewer.h:289
TGLViewer::~TGLViewer
virtual ~TGLViewer()
Destroy viewer object.
Definition: TGLViewer.cxx:273
TGLViewer::MouseIdle
virtual void MouseIdle(TGLPhysicalShape *, UInt_t, UInt_t)
Emit MouseIdle signal.
Definition: TGLViewer.cxx:2192
TGLRnrCtx::GetBaseColorSet
TGLColorSet * GetBaseColorSet()
Returns the current base color-set.
Definition: TGLRnrCtx.cxx:312
TGLViewer::fSelectedPShapeRef
TGLManipSet * fSelectedPShapeRef
select record from last secondary select (should go to context)
Definition: TGLViewer.h:114
TGLViewer::SetClipAutoUpdate
void SetClipAutoUpdate(Bool_t x)
Definition: TGLViewer.h:264
v
@ v
Definition: rootcling_impl.cxx:3635
TGLViewer::kPushAnnotate
@ kPushAnnotate
Definition: TGLViewer.h:126
TGLViewer::SetupClipObject
virtual void SetupClipObject()
name says it all
Definition: TGLViewer.cxx:467
TGLViewer::fPerspectiveCameraXOY
TGLPerspectiveCamera fPerspectiveCameraXOY
Definition: TGLViewer.h:87
bool
TGLViewer::SetPictureFileName
void SetPictureFileName(const TString &f)
Definition: TGLViewer.h:347
TGLViewer::PreRender
virtual void PreRender()
Initialize objects that influence rendering.
Definition: TGLViewer.cxx:482
TGLViewer::GetStereoFrustumAsymFac
Float_t GetStereoFrustumAsymFac() const
Definition: TGLViewer.h:290
TGLViewer::SetMaxSceneDrawTimeHQ
void SetMaxSceneDrawTimeHQ(Float_t t)
Definition: TGLViewer.h:309
TGLViewer::ResetCameras
virtual void ResetCameras()
Definition: TGLViewer.h:220
TGLRedrawTimer::fViewer
TGLViewer & fViewer
Definition: TGLViewer.h:403
TGLViewer::RequestDraw
void RequestDraw(Short_t LOD=TGLRnrCtx::kLODMed)
Post request for redraw of viewer at level of detail 'LOD' Request is directed via cross thread gVirt...
Definition: TGLViewer.cxx:437
TGLViewer::UnClicked
virtual void UnClicked(TObject *obj, UInt_t button, UInt_t state)
Emit UnClicked signal with button id and modifier state.
Definition: TGLViewer.cxx:2180
TGLViewer::GetClipAutoUpdate
Bool_t GetClipAutoUpdate() const
Definition: TGLViewer.h:263
TGLViewer::fLineScale
Float_t fLineScale
size scale for points
Definition: TGLViewer.h:143
TGLViewer::PreDraw
void PreDraw()
Perform GL work which must be done before each draw.
Definition: TGLViewer.cxx:1216
TGLViewer::SetResetCamerasOnUpdate
void SetResetCamerasOnUpdate(Bool_t v)
Definition: TGLViewer.h:358
TGLViewer::SetPerspectiveCamera
void SetPerspectiveCamera(ECameraType camera, Double_t fov, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate)
Set a perspective camera to supplied configuration - note this does not need to be the current camera...
Definition: TGLViewer.cxx:1946
TGLViewer::fDarkColorSet
TGLColorSet fDarkColorSet
viewport - drawn area
Definition: TGLViewer.h:140
TGLViewer::MouseOver
virtual void MouseOver(TGLPhysicalShape *)
Emit MouseOver signal.
Definition: TGLViewer.cxx:2094
TGLViewer::GetResetCamerasOnUpdate
Bool_t GetResetCamerasOnUpdate() const
Definition: TGLViewer.h:357
TContextMenu
Definition: TContextMenu.h:44
TGLViewerBase
Definition: TGLViewerBase.h:36
TGLViewer::fMaxSceneDrawTimeHQ
Float_t fMaxSceneDrawTimeHQ
timer for triggering redraws
Definition: TGLViewer.h:136
TGLFaderHelper::~TGLFaderHelper
virtual ~TGLFaderHelper()
Definition: TGLViewer.h:446
TQObject.h
TGLFaderHelper::operator=
TGLFaderHelper & operator=(const TGLFaderHelper &)
TGLViewer::ReClicked
virtual void ReClicked(TObject *obj, UInt_t button, UInt_t state)
Emit ReClicked signal with button id and modifier state.
Definition: TGLViewer.cxx:2168
TGLRnrCtx.h
TGLRnrCtx::kLODMed
@ kLODMed
Definition: TGLRnrCtx.h:66
TGLViewer::SetPointScale
void SetPointScale(Float_t s)
Definition: TGLViewer.h:254
TQObject
Definition: TQObject.h:48
TGLViewer::SetCurrentCamera
void SetCurrentCamera(ECameraType camera)
Set current active camera - 'cameraType' one of: kCameraPerspX, kCameraPerspY, kCameraPerspZ,...
Definition: TGLViewer.cxx:1791
TGLOutput
Definition: TGLOutput.h:26
TTimer
Definition: TTimer.h:51
TBuffer3D
Definition: TBuffer3D.h:17
TGLViewer::GetPictureUsingFBO
TImage * GetPictureUsingFBO(Int_t w, Int_t h, Float_t pixel_object_scale=0)
Returns current image.
Definition: TGLViewer.cxx:1031
TGLViewer
Definition: TGLViewer.h:51
TGLViewer::kCameraPerspYOZ
@ kCameraPerspYOZ
Definition: TGLViewer.h:61
TGLViewer::fDrawCameraCenter
Bool_t fDrawCameraCenter
reference position
Definition: TGLViewer.h:150
TGLViewer::GetPictureFileName
const char * GetPictureFileName() const
Definition: TGLViewer.h:346
TGLViewer::GetDefaultColorSet
static TGLColorSet & GetDefaultColorSet()
Returns reference to the default color-set.
Definition: TGLViewer.cxx:1680
TGLViewer::fPShapeWrap
TGLPShapeObj * fPShapeWrap
GED editor.
Definition: TGLViewer.h:121
TGLViewer::SetFader
void SetFader(Float_t x)
Definition: TGLViewer.h:349
TGLViewer::SetEventHandler
virtual void SetEventHandler(TGEventHandler *handler)
Set the event-handler.
Definition: TGLViewer.cxx:2290
TGLViewer::fGLCtxId
TGLContextIdentity * fGLCtxId
for embedded gl viewer
Definition: TGLViewer.h:187
TGLViewer::fOvlSelRec
TGLOvlSelectRecord fOvlSelRec
current overlay element
Definition: TGLViewer.h:117
TGLViewer::PostSceneBuildSetup
virtual void PostSceneBuildSetup(Bool_t resetCameras)
Perform post scene-build setup.
Definition: TGLViewer.cxx:391
TGLViewer::fOrthoZnOXCamera
TGLOrthoCamera fOrthoZnOXCamera
Definition: TGLViewer.h:95
TGLViewer::kCameraOrthoXOZ
@ kCameraOrthoXOZ
Definition: TGLViewer.h:62
TGLViewer::fAxesType
Int_t fAxesType
smooth line edge rendering
Definition: TGLViewer.h:146
h
#define h(i)
Definition: RSha256.hxx:124
TGLViewer::GetGedEditor
TGedEditor * GetGedEditor() const
Definition: TGLViewer.h:380
TGLSelectRecord
Definition: TGLSelectRecord.h:74
TGLViewer::PickAnnotate
void PickAnnotate()
Definition: TGLViewer.h:280
TGLViewer::kOnRequest
@ kOnRequest
Definition: TGLViewer.h:66
TGLViewer::fStereo
Bool_t fStereo
Definition: TGLViewer.h:100
TGLViewer::DoOverlaySelect
Bool_t DoOverlaySelect(Int_t x, Int_t y)
Perform GL selection, picking overlay objects only.
Definition: TGLViewer.cxx:1507
TGLViewer::kPushStd
@ kPushStd
Definition: TGLViewer.h:125
TGLRedrawTimer::RequestDraw
void RequestDraw(Int_t milliSec, Short_t redrawLOD)
Definition: TGLViewer.h:410
TGLVector3
Definition: TGLUtil.h:247
GuiTypes.h
TVirtualViewer3D.h
TGLViewer::PreferLocalFrame
virtual Bool_t PreferLocalFrame() const
Definition: TGLViewer.h:209
TGLViewer::DoSelect
Bool_t DoSelect(Int_t x, Int_t y)
Perform GL selection, picking objects overlapping WINDOW area described by 'rect'.
Definition: TGLViewer.cxx:1327
TGLViewer::fPictureFileName
TString fPictureFileName
Definition: TGLViewer.h:158
TGLViewer::fStereoQuadBuf
Bool_t fStereoQuadBuf
use stereo rendering
Definition: TGLViewer.h:101
TBuffer3D.h
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TGLViewer::GetMaxSceneDrawTimeHQ
Float_t GetMaxSceneDrawTimeHQ() const
Definition: TGLViewer.h:307
TGLViewer::RefViewport
const TGLRect & RefViewport() const
Definition: TGLViewer.h:249
TGLViewer::fSmoothPoints
Bool_t fSmoothPoints
width scale for lines
Definition: TGLViewer.h:144
TGLViewer::fPerspectiveCameraXOZ
TGLPerspectiveCamera fPerspectiveCameraXOZ
Definition: TGLViewer.h:85
TGLViewer::PadPaint
virtual void PadPaint(TVirtualPad *pad)
Entry point for updating viewer contents via VirtualViewer3D interface.
Definition: TGLViewer.cxx:303
TGLViewer::PickCameraCenter
void PickCameraCenter()
Definition: TGLViewer.h:279
TGLFaderHelper::MakeFadeStep
void MakeFadeStep()
Make one fading step and request redraw.
Definition: TGLViewer.cxx:1578
TGLViewer::kCameraOrthoZnOY
@ kCameraOrthoZnOY
Definition: TGLViewer.h:63
TGLViewer::kDragOverlay
@ kDragOverlay
Definition: TGLViewer.h:129
TGLRedrawTimer::~TGLRedrawTimer
~TGLRedrawTimer()
Definition: TGLViewer.h:409
TGEventHandler
Definition: TGEventHandler.h:27
TGLViewer::SetViewport
void SetViewport(Int_t x, Int_t y, Int_t width, Int_t height)
Set viewer viewport (window area) with bottom/left at (x,y), with dimensions 'width'/'height'.
Definition: TGLViewer.cxx:1721
TGLViewer::SetAutoRotator
void SetAutoRotator(TGLAutoRotator *ar)
Set the auto-rotator for this viewer. The old rotator is deleted.
Definition: TGLViewer.cxx:2008
TGLViewer::fOrthoXnOYCamera
TGLOrthoCamera fOrthoXnOYCamera
Definition: TGLViewer.h:92
TGLViewer::SwitchColorSet
void SwitchColorSet()
Switch between dark and light colorsets.
Definition: TGLViewer.cxx:1632
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TGLViewer::UseDefaultColorSetForNewViewers
static void UseDefaultColorSetForNewViewers(Bool_t x)
Sets static flag that determines if new viewers should use the default color-set.
Definition: TGLViewer.cxx:1690
TGLViewer::ECameraType
ECameraType
Definition: TGLViewer.h:61
TGLViewer::fFader
Float_t fFader
default file-name for SavePicture()
Definition: TGLViewer.h:159
TGLViewer::BuildingScene
virtual Bool_t BuildingScene() const
Definition: TGLViewer.h:211
TGLCameraOverlay
Definition: TGLCameraOverlay.h:25
y
Double_t y[n]
Definition: legend1.C:17
Short_t
short Short_t
Definition: RtypesCore.h:39
TGLViewer::fSmoothLines
Bool_t fSmoothLines
smooth point edge rendering
Definition: TGLViewer.h:145
TGLViewer::fSmartRefresh
Bool_t fSmartRefresh
markup size of viewport in scene units
Definition: TGLViewer.h:153
TGLViewer::fgDefaultColorSet
static TGLColorSet fgDefaultColorSet
fade the view (0 - no fade/default, 1 - full fade/no rendering done)
Definition: TGLViewer.h:161
TGLViewer::fIgnoreSizesOnUpdate
Bool_t fIgnoreSizesOnUpdate
for embedded gl viewer
Definition: TGLViewer.h:190
TGLViewer::fOrthoXnOZCamera
TGLOrthoCamera fOrthoXnOZCamera
Definition: TGLViewer.h:93
TGLViewer::GetCurrentOvlElm
TGLOverlayElement * GetCurrentOvlElm() const
Definition: TGLViewer.h:391
TGLViewer::AddObject
virtual Int_t AddObject(const TBuffer3D &, Bool_t *=0)
Definition: TGLViewer.h:213
TGLViewer::fgUseDefaultColorSetForNewViewers
static Bool_t fgUseDefaultColorSetForNewViewers
a shared, default color-set
Definition: TGLViewer.h:162
TGLViewer::OverlayDragFinished
virtual void OverlayDragFinished()
An overlay operation can result in change to an object.
Definition: TGLViewer.cxx:2264
TGLViewer::fOrthoXOYCamera
TGLOrthoCamera fOrthoXOYCamera
Definition: TGLViewer.h:88
TGLViewer::BeginScene
virtual void BeginScene()
Definition: TGLViewer.h:210
unsigned int
TGLViewer::fStereoZeroParallax
Float_t fStereoZeroParallax
draw quad buffer or left/right stereo in left/right half of window
Definition: TGLViewer.h:102
TGLViewer::fDragAction
EDragAction fDragAction
Definition: TGLViewer.h:132
TGLViewer::RequestOverlaySelect
Bool_t RequestOverlaySelect(Int_t x, Int_t y)
Post request for secondary selection rendering of selected object around the window point (x,...
Definition: TGLViewer.cxx:1488
TGLViewer::kCameraOrthoZOY
@ kCameraOrthoZOY
Definition: TGLViewer.h:62
TGLViewer::SetStereoZeroParallax
void SetStereoZeroParallax(Float_t f)
Definition: TGLViewer.h:293
TGLViewer::DrawDebugInfo
void DrawDebugInfo()
If in debug mode draw camera aids and overall bounding box.
Definition: TGLViewer.cxx:1190
TGLViewer::GetMaxSceneDrawTimeLQ
Float_t GetMaxSceneDrawTimeLQ() const
Definition: TGLViewer.h:308
TGLViewer::IsColorSetDark
Bool_t IsColorSetDark() const
Returns true if current color set is dark.
Definition: TGLViewer.cxx:1708
TGLRedrawTimer::TGLRedrawTimer
TGLRedrawTimer(TGLViewer &viewer)
Definition: TGLViewer.h:407
TGLRedrawTimer
Definition: TGLViewer.h:400
TGLViewer::SetCameraOverlay
void SetCameraOverlay(TGLCameraOverlay *m)
Definition: TGLViewer.h:282
TGLViewer::fViewport
TGLRect fViewport
max time for scene rendering at high LOD (in ms)
Definition: TGLViewer.h:139
TGLViewer::kCameraOrthoXnOY
@ kCameraOrthoXnOY
Definition: TGLViewer.h:63
TGLViewer::RefLightColorSet
TGLColorSet & RefLightColorSet()
Definition: TGLViewer.h:233
TGLViewer::fReferencePos
TGLVertex3 fReferencePos
reference marker on?
Definition: TGLViewer.h:149
TGLRect
Definition: TGLUtil.h:421
TGLViewer::SetMaxSceneDrawTimeLQ
void SetMaxSceneDrawTimeLQ(Float_t t)
Definition: TGLViewer.h:310
TGLViewer::SetStereoFrustumAsymFac
void SetStereoFrustumAsymFac(Float_t f)
Definition: TGLViewer.h:295
TGLViewer::SwapBuffers
void SwapBuffers() const
Swap GL buffers.
Definition: TGLViewer.cxx:1287
Double_t
double Double_t
Definition: RtypesCore.h:59
TGLViewer::RefreshPadEditor
virtual void RefreshPadEditor(TObject *obj=0)
Update GED editor if it is set.
Definition: TGLViewer.cxx:2275
TGLViewer::DistancetoPrimitive
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Calculate and return pixel distance to nearest viewer object from window location px,...
Definition: TGLViewer.cxx:2214
TVirtualPad
Definition: TVirtualPad.h:50
TGLViewer::SetDrawCameraCenter
void SetDrawCameraCenter(Bool_t x)
Draw camera look at and rotation point.
Definition: TGLViewer.cxx:2073
TGLViewer::ClearCurrentOvlElm
void ClearCurrentOvlElm()
Reset current overlay-element to zero, eventually notifying the old one that the mouse has left.
Definition: TGLViewer.cxx:2317
TGLViewer::SetSmoothLines
void SetSmoothLines(Bool_t s)
Definition: TGLViewer.h:259
TGLViewer::GetLineScale
Float_t GetLineScale() const
Definition: TGLViewer.h:253
TGLViewer::SetGedEditor
virtual void SetGedEditor(TGedEditor *ed)
Definition: TGLViewer.h:381
TGLViewer::DrawGuides
void DrawGuides()
Draw reference marker and coordinate axes.
Definition: TGLViewer.cxx:1155
TGLViewerBase.h
TGLViewer::DestroyGLWidget
virtual void DestroyGLWidget()
Definition: TGLViewer.h:226
TGLViewer::ReinitializeCurrentCamera
void ReinitializeCurrentCamera(const TGLVector3 &hAxis, const TGLVector3 &vAxis, Bool_t redraw=kTRUE)
Change base-vectors defining the camera-base transformation of current camera.
Definition: TGLViewer.cxx:1986
TGLWidget
Definition: TGLWidget.h:27
TGLClip.h
TGLViewer::fMaxSceneDrawTimeLQ
Float_t fMaxSceneDrawTimeLQ
max time for scene rendering at high LOD (in ms)
Definition: TGLViewer.h:137
TGLViewer::UpdateScene
void UpdateScene(Bool_t redraw=kTRUE)
Force update of pad-scenes.
Definition: TGLViewer.cxx:335
TGLViewer::InitGL
void InitGL()
Initialise GL state.
Definition: TGLViewer.cxx:408
TGLViewer::UseDefaultColorSet
void UseDefaultColorSet(Bool_t x)
Set usage of the default color set.
Definition: TGLViewer.cxx:1649
TObject
Definition: TObject.h:37
TGLEventHandler
Definition: TGLEventHandler.h:29
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TVirtualViewer3D
Definition: TVirtualViewer3D.h:33
TGLPerspectiveCamera
Definition: TGLPerspectiveCamera.h:25
TGLViewer::CanLoopOnPrimitives
virtual Bool_t CanLoopOnPrimitives() const
Definition: TGLViewer.h:202
TGLViewer::EDragAction
EDragAction
Definition: TGLViewer.h:127
TGLSelectRecord.h
TGLViewer::SelectionChanged
virtual void SelectionChanged()
Update GUI components for embedded viewer selection change.
Definition: TGLViewer.cxx:2244
TGLPhysicalShape
Definition: TGLPhysicalShape.h:31
TGLViewerBase::LOD
Short_t LOD() const
Definition: TGLViewerBase.h:107
TGLViewer::kDragCameraTruck
@ kDragCameraTruck
Definition: TGLViewer.h:128
TGLRedrawTimer::fRedrawLOD
Short_t fRedrawLOD
Definition: TGLViewer.h:404
TGLViewer::GetDragAction
EDragAction GetDragAction() const
Definition: TGLViewer.h:299
TGLViewer::fContextMenu
TContextMenu * fContextMenu
external pad - remove replace with signal
Definition: TGLViewer.h:81
TGLViewer::RefDarkColorSet
TGLColorSet & RefDarkColorSet()
Definition: TGLViewer.h:232
TGLFaderHelper::fTime
Float_t fTime
Definition: TGLViewer.h:439
TGLViewer::kDragCameraDolly
@ kDragCameraDolly
Definition: TGLViewer.h:128
TGLViewer::fDebugMode
Bool_t fDebugMode
cache logicals during scene rebuilds
Definition: TGLViewer.h:156
TGLFaderHelper::fViewer
TGLViewer * fViewer
Definition: TGLViewer.h:437
TGLViewer::GetLightSet
TGLLightSet * GetLightSet() const
Definition: TGLViewer.h:261
TGLViewer::CloseComposite
virtual void CloseComposite()
Definition: TGLViewer.h:216
TGLViewer::fCameraOverlay
TGLCameraOverlay * fCameraOverlay
reference marker on?
Definition: TGLViewer.h:151
TGLViewer::DoDraw
void DoDraw(Bool_t swap_buffers=kTRUE)
Draw out the viewer.
Definition: TGLViewer.cxx:547
TGLViewer::GetSmoothLines
Bool_t GetSmoothLines() const
Definition: TGLViewer.h:257
TPoint.h
TGLViewer::FadeView
void FadeView(Float_t alpha)
Draw a rectangle (background color and given alpha) across the whole viewport.
Definition: TGLViewer.cxx:1251
TGLViewer::CreateGLWidget
virtual void CreateGLWidget()
Definition: TGLViewer.h:225
TGLViewer::ColorSet
TGLColorSet & ColorSet()
Definition: TGLViewer.h:234
TGLViewer::kCameraOrthoXOY
@ kCameraOrthoXOY
Definition: TGLViewer.h:62
TGLViewer::GetSelected
const TGLPhysicalShape * GetSelected() const
Return selected physical shape.
Definition: TGLViewer.cxx:2083
TGLViewer::DoDrawStereo
void DoDrawStereo(Bool_t swap_buffers)
Draw out in stereoscopic mode.
Definition: TGLViewer.cxx:657
TGLRedrawTimer::Stop
virtual void Stop()
Definition: TGLViewer.h:417
TGLViewer::fResetCamerasOnUpdate
Bool_t fResetCamerasOnUpdate
Definition: TGLViewer.h:191
TGLRedrawTimer::IsPending
Bool_t IsPending() const
Definition: TGLViewer.h:416
TGLViewer::fStereoFrustumAsymFac
Float_t fStereoFrustumAsymFac
Definition: TGLViewer.h:104
TGLViewer::operator=
TGLViewer & operator=(const TGLViewer &)=delete
TGLViewer::fEventHandler
TGEventHandler * fEventHandler
select record from last overlay select
Definition: TGLViewer.h:119
TGLViewer::fOrthoZOXCamera
TGLOrthoCamera fOrthoZOXCamera
Definition: TGLViewer.h:91
TGLViewer::kCameraOrthoXnOZ
@ kCameraOrthoXnOZ
Definition: TGLViewer.h:63
TGLOrthoCamera.h
TGLVertex3
Definition: TGLUtil.h:83
TGLViewer::RequestSecondarySelect
Bool_t RequestSecondarySelect(Int_t x, Int_t y)
Request secondary select.
Definition: TGLViewer.cxx:1381
TGLViewer::GetClipSet
TGLClipSet * GetClipSet() const
Definition: TGLViewer.h:262
TGLViewer::kCameraPerspXOY
@ kCameraPerspXOY
Definition: TGLViewer.h:61
TGLViewer::ViewportDiagonal
Int_t ViewportDiagonal() const
Definition: TGLViewer.h:250
TGLViewer::Activated
virtual void Activated()
Definition: TGLViewer.h:362
TGLViewer::PostRender
virtual void PostRender()
Restore state set in PreRender().
Definition: TGLViewer.cxx:536
TGLContextIdentity
Definition: TGLContext.h:80
TGedEditor
Definition: TGedEditor.h:41
TGLPerspectiveCamera.h
TGLViewer::ExecuteEvent
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Process event of type 'event' - one of EEventType types, occurring at window location px,...
Definition: TGLViewer.cxx:2227
TQObject::Emit
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition: TQObject.h:164
TGLViewer::GetPointScale
Float_t GetPointScale() const
Definition: TGLViewer.h:252
TGLViewer::AddObject
virtual Int_t AddObject(UInt_t, const TBuffer3D &, Bool_t *=0)
Definition: TGLViewer.h:214
TGLRnrCtx
Definition: TGLRnrCtx.h:40
TGLViewer::GetSelRec
TGLSelectRecord & GetSelRec()
Definition: TGLViewer.h:389
TGLLightSet
Definition: TGLLightSet.h:21
int
TGLViewer::SetClearColor
void SetClearColor(Color_t col)
Set background method.
Definition: TGLViewer.cxx:1671
TGLViewer::EPushAction
EPushAction
Definition: TGLViewer.h:125
TGLViewer::fAutoRotator
TGLAutoRotator * fAutoRotator
Definition: TGLViewer.h:97