158 static const TEveException kEH(
"TEveViewer::SpawnGLViewer ");
163 if (stereo && quad_buf)
175 catch (std::exception&)
177 Error(
"SpawnGLViewer",
"Insufficient support from the graphics hardware. Aborting.");
181 v->ToggleEditObject();
182 v->DisableCloseMenuEntries();
185 v->EnableMenuBarHiding();
190 v->SetStereo(
kTRUE, quad_buf);
203 static const TEveException kEH(
"TEveViewer::SpawnGLEmbeddedViewer ");
239 Warning(
"SwitchStereo",
"Only supported for TGLSAViewer.");
243 v->DestroyGLWidget();
246 f->SetStereo(!
f->IsStereo());
247 v->SetStereo(
f->IsStereo());
252 catch (std::exception&)
254 Error(
"SwitchStereo",
"Insufficient support from the graphics hardware. Reverting.");
271 throw(eh +
"scene already in the viewer.");
301 throw(eh +
"fGLViewer not set.");
312 static const TEveException eh(
"TEveViewer::HandleElementPaste ");
319 Warning(eh.
Data(),
"class TEveViewer only accepts TEveScene paste argument.");
335 fShowTooltip (
kTRUE),
381 (*i)->DecParentIgnoreCnt();
393 "TEveViewerList",
this,
"OnMouseOver(TObject*,UInt_t)");
396 "TEveViewerList",
this,
"OnReMouseOver(TObject*,UInt_t)");
399 "TEveViewerList",
this,
"OnUnMouseOver(TObject*,UInt_t)");
402 "TEveViewerList",
this,
"OnClicked(TObject*,UInt_t,UInt_t)");
405 "TEveViewerList",
this,
"OnReClicked(TObject*,UInt_t,UInt_t)");
408 "TEveViewerList",
this,
"OnUnClicked(TObject*,UInt_t,UInt_t)");
417 this,
"OnMouseOver(TObject*,UInt_t)");
420 this,
"OnReMouseOver(TObject*,UInt_t)");
423 this,
"OnUnMouseOver(TObject*,UInt_t)");
426 this,
"OnClicked(TObject*,UInt_t,UInt_t)");
429 this,
"OnReClicked(TObject*,UInt_t,UInt_t)");
432 this,
"OnUnClicked(TObject*,UInt_t,UInt_t)");
const Mask_t kKeyControlMask
R__EXTERN TApplication * gApplication
R__EXTERN TEveManager * gEve
R__EXTERN void * gTQSender
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
void SetChildClass(TClass *c)
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual void AddElement(TEveElement *el)
Add el to the list of children.
virtual TString GetHighlightTooltip()
TEveElement * FirstChild() const
Returns the first child element or 0 if the list is empty.
Bool_t IsPickable() const
Int_t NumChildren() const
void DecParentIgnoreCnt()
Decrease number of parents ignored in reference-counting.
virtual void RemoveElement(TEveElement *el)
Remove el from the list of children.
virtual void RemoveElementLocal(TEveElement *el)
Perform additional local removal of el.
static const TGPicture * fgListTreeIcons[9]
virtual void RemoveElementsLocal()
Perform additional local removal of all elements.
void IncParentIgnoreCnt()
Increase number of parents ignored in reference-counting.
Exception class thrown by TEve classes and macros.
TEveSelection * GetSelection() const
TEveSelection * GetHighlight() const
TEveUtil representation of TGLSceneInfo.
TEveScene * GetScene() const
Eve representation of TGLScene.
TGLScenePad * GetGLScene() const
virtual void UserRePickedElement(TEveElement *el)
Called when secondary selection becomes empty.
virtual void UserPickedElement(TEveElement *el, Bool_t multi=kFALSE)
Called when user picks/clicks on an element.
virtual void UserUnPickedElement(TEveElement *el)
Called when secondary selection becomes empty.
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).
List of Viewers providing common operations on TEveViewer collections.
void SwitchColorSet()
Switch background color.
void RepaintChangedViewers(Bool_t resetCameras, Bool_t dropLogicals)
Repaint viewers that are tagged as changed.
virtual void RemoveElementLocal(TEveElement *el)
Decompoundofy el, call base-class version.
void OnMouseOver(TObject *obj, UInt_t state)
Slot for global TGLViewer::MouseOver() signal.
void SetColorBrightness(Float_t b)
Set color brightness.
void OnClicked(TObject *obj, UInt_t button, UInt_t state)
Slot for global TGLViewer::Clicked().
void OnUnMouseOver(TObject *obj, UInt_t state)
Slot for global TGLViewer::UnMouseOver().
virtual void RemoveElementsLocal()
Decompoundofy children, call base-class version.
void OnReClicked(TObject *obj, UInt_t button, UInt_t state)
Slot for global TGLViewer::ReClicked().
void OnReMouseOver(TObject *obj, UInt_t state)
Slot for global TGLViewer::ReMouseOver().
virtual void AddElement(TEveElement *el)
Call base-class implementation.
void RepaintAllViewers(Bool_t resetCameras, Bool_t dropLogicals)
Repaint all viewers.
void SceneDestructing(TEveScene *scene)
Callback done from a TEveScene destructor allowing proper removal of the scene from affected viewers.
void HandleTooltip()
Show / hide tooltip for various MouseOver events.
virtual void Disconnect()
Disconnect from TGLViewer class-signals.
virtual void Connect()
Connect to TGLViewer class-signals.
void OnUnClicked(TObject *obj, UInt_t button, UInt_t state)
Slot for global TGLViewer::UnClicked().
void DeleteAnnotations()
Delete annotations from all viewers.
virtual ~TEveViewerList()
Destructor.
TEveViewerList(const TEveViewerList &)
Eve representation of TGLViewer.
virtual void RemoveElementLocal(TEveElement *el)
Remove element 'el' from the list of children and also remove appropriate GLScene from GLViewer's lis...
void SetGLViewer(TGLViewer *viewer, TGFrame *frame)
Set TGLViewer that is represented by this object.
static Bool_t fgInitInternal
virtual void PostDock()
Virtual function called after a window is docked.
void SwitchStereo()
Switch stereo mode.
virtual Bool_t HandleElementPaste(TEveElement *el)
Receive a pasted object.
TEveViewer(const TEveViewer &)
virtual const TGPicture * GetListTreeIcon(Bool_t open=kFALSE)
Return TEveViewer icon.
void Redraw(Bool_t resetCameras=kFALSE)
Redraw viewer immediately.
virtual void AddScene(TEveScene *scene)
Add 'scene' to the list of scenes.
static Bool_t fgRecreateGlOnDockOps
TGLSAViewer * SpawnGLViewer(TGedEditor *ged=0, Bool_t stereo=kFALSE, Bool_t quad_buf=kTRUE)
Spawn new GLViewer and adopt it.
virtual void PreUndock()
Virtual function called before a window is undocked.
static void InitInternal()
Initialize static data-members according to running conditions.
virtual void RemoveElementsLocal()
Remove all children, forwarded to GLViewer.
virtual ~TEveViewer()
Destructor.
virtual TObject * GetEditorObject(const TEveException &eh="TEveViewer::GetEditorObject ") const
Object to be edited when this is selected, returns the TGLViewer.
TGLEmbeddedViewer * SpawnGLEmbeddedViewer(TGedEditor *ged=0, Int_t border=0)
Spawn new GLViewer and adopt it.
Encapsulates TGFrame into an eve-window.
TGCompositeFrame * GetGUICompositeFrame()
Returns the registered top-frame of this eve-window dynamic-casted to composite-frame.
virtual void PreUndock()
Virtual function called before a window is undocked.
TEveCompositeFrame * fEveFrame
virtual void PostDock()
Virtual function called after a window is docked.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
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.
virtual void SetCleanup(Int_t=kLocalCleanup)
virtual void MapWindow()
map window
virtual void UnmapWindow()
unmap window
Minimal GL-viewer that can be embedded in a standard ROOT frames.
Base-class and default implementation of event-handler for TGLViewer.
virtual void TriggerTooltip(const char *text)
Trigger display of tooltip.
virtual void RemoveTooltip()
Hide the tooltip.
The top level standalone GL-viewer - created via plugin manager.
Base class for extended scene context.
TGLSceneInfo * AddScene(TGLSceneBase *scene)
Add new scene, appropriate scene-info is created.
void RemoveAllScenes()
Remove all scenes from the viewer, their scene-infos are deleted.
void RemoveScene(TGLSceneBase *scene)
Remove scene from the viewer, its scene-info is deleted.
virtual Bool_t IsChanged() const
virtual void DeleteOverlayAnnotations()
Delete overlay elements that are annotations.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
virtual void SetEventHandler(TGEventHandler *handler)
Set the event-handler.
TGEventHandler * GetEventHandler() const
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...
virtual void CreateGLWidget()
void SetSmartRefresh(Bool_t smart_ref)
virtual void DestroyGLWidget()
void UseLightColorSet()
Use the light color-set.
virtual void PostSceneBuildSetup(Bool_t resetCameras)
Perform post scene-build setup.
void UseDarkColorSet()
Use the dark color-set.
TGLWidget * GetGLWidget()
Mother of all ROOT objects.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
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.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
const char * Data() const
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.