157 static const TEveException kEH(
"TEveViewer::SpawnGLViewer ");
162 if (stereo && quad_buf)
174 catch (std::exception&)
176 Error(
"SpawnGLViewer",
"Insufficient support from the graphics hardware. Aborting.");
202 static const TEveException kEH(
"TEveViewer::SpawnGLEmbeddedViewer ");
238 Warning(
"SwitchStereo",
"Only supported for TGLSAViewer.");
251 catch (std::exception&)
253 Error(
"SwitchStereo",
"Insufficient support from the graphics hardware. Reverting.");
270 throw(eh +
"scene already in the viewer.");
300 throw(eh +
"fGLViewer not set.");
311 static const TEveException eh(
"TEveViewer::HandleElementPaste ");
318 Warning(eh.
Data(),
"class TEveViewer only accepts TEveScene paste argument.");
334 fShowTooltip (
kTRUE),
380 (*i)->DecParentIgnoreCnt();
392 "TEveViewerList",
this,
"OnMouseOver(TObject*,UInt_t)");
395 "TEveViewerList",
this,
"OnReMouseOver(TObject*,UInt_t)");
398 "TEveViewerList",
this,
"OnUnMouseOver(TObject*,UInt_t)");
401 "TEveViewerList",
this,
"OnClicked(TObject*,UInt_t,UInt_t)");
404 "TEveViewerList",
this,
"OnReClicked(TObject*,UInt_t,UInt_t)");
407 "TEveViewerList",
this,
"OnUnClicked(TObject*,UInt_t,UInt_t)");
416 this,
"OnMouseOver(TObject*,UInt_t)");
419 this,
"OnReMouseOver(TObject*,UInt_t)");
422 this,
"OnUnMouseOver(TObject*,UInt_t)");
425 this,
"OnClicked(TObject*,UInt_t,UInt_t)");
428 this,
"OnReClicked(TObject*,UInt_t,UInt_t)");
431 this,
"OnUnClicked(TObject*,UInt_t,UInt_t)");
517 if ( ! title.IsNull())
virtual void PostDock()
Virtual function called after a window is docked.
void ToggleEditObject()
Toggle state of the 'Edit Object' menu entry.
virtual void RemoveElementLocal(TEveElement *el)
Remove element 'el' from the list of children and also remove appropriate GLScene from GLViewer's lis...
TGCompositeFrame * GetFrame() const
virtual void PostDock()
Virtual function called after a window is docked.
void OnUnMouseOver(TObject *obj, UInt_t state)
Slot for global TGLViewer::UnMouseOver().
virtual void UserUnPickedElement(TEveElement *el)
Called when secondary selection becomes empty.
TEveCompositeFrame * fEveFrame
TEveElement * FirstChild() const
Returns the first child element or 0 if the list is empty.
Eve representation of TGLScene.
List of Viewers providing common operations on TEveViewer collections.
virtual void RemoveElementsLocal()
Remove all children, forwarded to GLViewer.
TGEventHandler * GetEventHandler() const
virtual Bool_t HandleElementPaste(TEveElement *el)
Receive a pasted object.
R__EXTERN void * gTQSender
virtual ~TEveViewer()
Destructor.
virtual void UserPickedElement(TEveElement *el, Bool_t multi=kFALSE)
Called when user picks/clicks on an element.
void SetColorBrightness(Float_t b)
Set color brightness.
virtual void RemoveElementLocal(TEveElement *el)
Perform additional local removal of el.
virtual void SetEventHandler(TGEventHandler *handler)
Set the event-handler.
static const TGPicture * fgListTreeIcons[9]
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
virtual void Disconnect()
Disconnect from TGLViewer class-signals.
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
This static function calls a slot after a given time interval.
void Redraw(Bool_t resetCameras=kFALSE)
Redraw viewer immediately.
void OnUnClicked(TObject *obj, UInt_t button, UInt_t state)
Slot for global TGLViewer::UnClicked().
TGLFormat * GetFormat() const
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
R__EXTERN TApplication * gApplication
void HandleTooltip()
Show / hide tooltip for various MouseOver events.
void DecParentIgnoreCnt()
Decrease number of parents ignored in reference-counting.
static Bool_t fgInitInternal
TEveUtil representation of TGLSceneInfo.
virtual TObject * GetEditorObject(const TEveException &eh="TEveViewer::GetEditorObject ") const
Object to be edited when this is selected, returns the TGLViewer.
void SetChildClass(TClass *c)
void UseLightColorSet()
Use the light color-set.
virtual void RemoveElementsLocal()
Perform additional local removal of all elements.
void SwitchColorSet()
Switch background color.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
virtual TString GetHighlightTooltip()
Minimal GL-viewer that can be embedded in a standard ROOT frames.
virtual void PreUndock()
Virtual function called before a window is undocked.
virtual void RemoveElement(TEveElement *el)
Remove el from the list of children.
virtual void RemoveElementLocal(TEveElement *el)
Decompoundofy el, call base-class version.
void IncParentIgnoreCnt()
Increase number of parents ignored in reference-counting.
void SetGLViewer(TGLViewer *viewer, TGFrame *frame)
Set TGLViewer that is represented by this object.
virtual void PostSceneBuildSetup(Bool_t resetCameras)
Perform post scene-build setup.
virtual void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0)
Reparent window, make p the new parent and position the window at position (x,y) in new parent...
TGCompositeFrame * GetGUICompositeFrame()
Returns the registered top-frame of this eve-window dynamic-casted to composite-frame.
void RepaintAllViewers(Bool_t resetCameras, Bool_t dropLogicals)
Repaint all viewers.
void SetSmartRefresh(Bool_t smart_ref)
virtual void UserRePickedElement(TEveElement *el)
Called when secondary selection becomes empty.
void OnClicked(TObject *obj, UInt_t button, UInt_t state)
Slot for global TGLViewer::Clicked().
The top level standalone GL-viewer - created via plugin manager.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
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...
TEveScene * GetScene() const
virtual void RemoveElementsLocal()
Decompoundofy children, call base-class version.
Bool_t IsPickable() const
TEveViewerList(const TEveViewerList &)
void DisableCloseMenuEntries()
Deactivate menu entries for closing the GL window and exiting ROOT.
virtual void CreateGLWidget()
Create a GLwidget, it is an error if it is already created.
R__EXTERN TEveManager * gEve
void EnableMenuBarHiding()
Enable hiding of menu bar.
TGLEmbeddedViewer * SpawnGLEmbeddedViewer(TGedEditor *ged=0, Int_t border=0)
Spawn new GLViewer and adopt it.
virtual void CreateGLWidget()
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void OnReMouseOver(TObject *obj, UInt_t state)
Slot for global TGLViewer::ReMouseOver().
static void InitInternal()
Initialize static data-members according to running conditions.
void UseDarkColorSet()
Use the dark color-set.
void OnReClicked(TObject *obj, UInt_t button, UInt_t state)
Slot for global TGLViewer::ReClicked().
Base GL viewer object - used by both standalone and embedded (in pad) GL.
virtual void AddElement(TEveElement *el)
Add el to the list of children.
void SetStereo(Bool_t stereo, Bool_t quad_buf=kTRUE)
Enable stereo rendering.
void SwitchStereo()
Switch stereo mode.
TEveSelection * GetHighlight() const
void DeleteAnnotations()
Delete annotations from all viewers.
virtual void TriggerTooltip(const char *text)
Trigger display of tooltip.
Int_t NumChildren() const
TGLSceneInfo * AddScene(TGLSceneBase *scene)
Add new scene, appropriate scene-info is created.
void OnMouseOver(TObject *obj, UInt_t state)
Slot for global TGLViewer::MouseOver() signal.
Base-class and default implementation of event-handler for TGLViewer.
TEveSelection * GetSelection() const
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
virtual void SetCleanup(Int_t=kLocalCleanup)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame * GetFrame() const
Return the main-frame.
void RemoveAllScenes()
Remove all scenes from the viewer, their scene-infos are deleted.
virtual const TGPicture * GetListTreeIcon(Bool_t open=kFALSE)
Return TEveViewer icon.
Mother of all ROOT objects.
virtual void UnmapWindow()
void RepaintChangedViewers(Bool_t resetCameras, Bool_t dropLogicals)
Repaint viewers that are tagged as changed.
void SceneDestructing(TEveScene *scene)
Callback done from a TEveScene destructor allowing proper removal of the scene from affected viewers...
virtual void DestroyGLWidget()
virtual void DeleteOverlayAnnotations()
Delete overlay elements that are annotations.
void RemoveScene(TGLSceneBase *scene)
Remove scene from the viewer, its scene-info is deleted.
virtual void AddElement(TEveElement *el)
Call base-class implementation.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
static void SetColorBrightness(Float_t value, Bool_t full_redraw=kFALSE)
Tweak all ROOT colors to become brighter (if value > 0) or darker (value < 0).
Base class for extended scene context.
Exception class thrown by TEve classes and macros.
const Mask_t kKeyControlMask
virtual void Connect()
Connect to TGLViewer class-signals.
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
virtual void DestroyGLWidget()
Destroy the GLwidget, it is an error if it does not exist.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
virtual void PreUndock()
Virtual function called before a window is undocked.
TGLScenePad * GetGLScene() const
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual ~TEveViewerList()
Destructor.
virtual Bool_t IsChanged() const
Encapsulates TGFrame into an eve-window.
TEveViewer(const TEveViewer &)
Eve representation of TGLViewer.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void RemoveTooltip()
Hide the tooltip.
static Bool_t fgRecreateGlOnDockOps
const char * Data() const
TGLSAViewer * SpawnGLViewer(TGedEditor *ged=0, Bool_t stereo=kFALSE, Bool_t quad_buf=kTRUE)
Spawn new GLViewer and adopt it.
TGLWidget * GetGLWidget()
virtual void AddScene(TEveScene *scene)
Add 'scene' to the list of scenes.