156 static const TEveException kEH(
"TEveViewer::SpawnGLViewer ");
161 if (stereo && quad_buf)
173 catch (std::exception&)
175 Error(
"SpawnGLViewer",
"Insufficient support from the graphics hardware. Aborting.");
179 v->ToggleEditObject();
180 v->DisableCloseMenuEntries();
181 if (
gEnv->GetValue(
"Eve.Viewer.HideMenus", 1) == 1)
183 v->EnableMenuBarHiding();
188 v->SetStereo(
kTRUE, quad_buf);
201 static const TEveException kEH(
"TEveViewer::SpawnGLEmbeddedViewer ");
237 Warning(
"SwitchStereo",
"Only supported for TGLSAViewer.");
241 v->DestroyGLWidget();
244 f->SetStereo(!
f->IsStereo());
245 v->SetStereo(
f->IsStereo());
250 catch (std::exception&)
252 Error(
"SwitchStereo",
"Insufficient support from the graphics hardware. Reverting.");
265 if (glsi !=
nullptr) {
269 throw(eh +
"scene already in the viewer.");
299 throw(eh +
"fGLViewer not set.");
310 static const TEveException eh(
"TEveViewer::HandleElementPaste ");
313 if (scene !=
nullptr) {
317 Warning(eh.
Data(),
"class TEveViewer only accepts TEveScene paste argument.");
378 (*i)->DecParentIgnoreCnt();
390 "TEveViewerList",
this,
"OnMouseOver(TObject*,UInt_t)");
393 "TEveViewerList",
this,
"OnReMouseOver(TObject*,UInt_t)");
396 "TEveViewerList",
this,
"OnUnMouseOver(TObject*,UInt_t)");
399 "TEveViewerList",
this,
"OnClicked(TObject*,UInt_t,UInt_t)");
402 "TEveViewerList",
this,
"OnReClicked(TObject*,UInt_t,UInt_t)");
405 "TEveViewerList",
this,
"OnUnClicked(TObject*,UInt_t,UInt_t)");
414 this,
"OnMouseOver(TObject*,UInt_t)");
417 this,
"OnReMouseOver(TObject*,UInt_t)");
420 this,
"OnUnMouseOver(TObject*,UInt_t)");
423 this,
"OnClicked(TObject*,UInt_t,UInt_t)");
426 this,
"OnReClicked(TObject*,UInt_t,UInt_t)");
429 this,
"OnUnClicked(TObject*,UInt_t,UInt_t)");
512 if (
gEve->GetHighlight()->NumChildren() == 1)
514 TString title(
gEve->GetHighlight()->FirstChild()->GetHighlightTooltip());
515 if ( ! title.IsNull())
544 gEve->GetHighlight()->UserPickedElement(el,
kFALSE);
566 gEve->GetHighlight()->UserRePickedElement(el);
588 gEve->GetHighlight()->UserUnPickedElement(el);
625 gEve->GetSelection()->UserRePickedElement(el);
642 gEve->GetSelection()->UserUnPickedElement(el);
const Mask_t kKeyControlMask
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
externTApplication * gApplication
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
TEveElementList(const char *n="TEveElementList", const char *t="", Bool_t doColor=kFALSE, Bool_t doTransparency=kFALSE)
Constructor.
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.
Bool_t IsPickable() const
void DecParentIgnoreCnt()
Decrease number of parents ignored in reference-counting.
virtual void RemoveElement(TEveElement *el)
Remove el from the list of children.
TEveElement()
Default constructor.
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.
TEveUtil representation of TGLSceneInfo.
TEveScene * GetScene() const
Eve representation of TGLScene.
TGLScenePad * GetGLScene() const
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).
void SwitchColorSet()
Switch background color.
void RepaintChangedViewers(Bool_t resetCameras, Bool_t dropLogicals)
Repaint viewers that are tagged as changed.
~TEveViewerList() override
Destructor.
void RemoveElementsLocal() override
Decompoundofy children, call base-class version.
void AddElement(TEveElement *el) override
Call base-class implementation.
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().
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().
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 RemoveElementLocal(TEveElement *el) override
Decompoundofy el, call base-class version.
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.
TEveViewerList(const TEveViewerList &)
Eve representation of TGLViewer.
void SetGLViewer(TGLViewer *viewer, TGFrame *frame)
Set TGLViewer that is represented by this object.
static Bool_t fgInitInternal
void SwitchStereo()
Switch stereo mode.
TGLSAViewer * SpawnGLViewer(TGedEditor *ged=nullptr, Bool_t stereo=kFALSE, Bool_t quad_buf=kTRUE)
Spawn new GLViewer and adopt it.
void RemoveElementsLocal() override
Remove all children, forwarded to GLViewer.
TObject * GetEditorObject(const TEveException &eh="TEveViewer::GetEditorObject ") const override
Object to be edited when this is selected, returns the TGLViewer.
TGLEmbeddedViewer * SpawnGLEmbeddedViewer(TGedEditor *ged=nullptr, Int_t border=0)
Spawn new GLViewer and adopt it.
TEveViewer(const TEveViewer &)
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
Bool_t HandleElementPaste(TEveElement *el) override
Receive a pasted object.
void PreUndock() override
Virtual function called before a window is undocked.
const TGPicture * GetListTreeIcon(Bool_t open=kFALSE) override
Return TEveViewer icon.
static void InitInternal()
Initialize static data-members according to running conditions.
void PostDock() override
Virtual function called after a window is docked.
~TEveViewer() override
Destructor.
void RemoveElementLocal(TEveElement *el) override
Remove element 'el' from the list of children and also remove appropriate GLScene from GLViewer's lis...
TGCompositeFrame * GetGUICompositeFrame()
Returns the registered top-frame of this eve-window dynamic-casted to composite-frame.
TEveWindowFrame(const TEveWindowFrame &)
virtual void PreUndock()
Virtual function called before a window is undocked.
TEveCompositeFrame * fEveFrame
virtual void PostDock()
Virtual function called after a window is docked.
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
void SetEditable(Bool_t on=kTRUE) override
Switch ON/OFF edit mode.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
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.
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.
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...
void SetSmartRefresh(Bool_t smart_ref)
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.
This class describes layout hints used by the layout classes.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Mother of all ROOT objects.
TObject()
TObject constructor.
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=nullptr, void *receiver=nullptr, const char *slot=nullptr)
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.