12 #ifndef ROOT_TGLSceneBase_H
13 #define ROOT_TGLSceneBase_H
void AddViewer(TGLViewerBase *viewer)
Add viewer to the list.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
virtual void Render(TGLRnrCtx &rnrCtx)
This function does rendering of all stages, the shapes are rendered in the following order: opaque...
virtual TGLSceneInfo * CreateSceneInfo(TGLViewerBase *view)
Create a scene-info instance appropriate for this scene class.
Bool_t GetAutoDestruct() const
void RemoveViewer(TGLViewerBase *viewer)
Remove viewer from the list.
Scene base-class – provides basic interface expected by the TGLViewer or its sub-classes: ...
virtual void PreRender(TGLRnrCtx &rnrCtx)
Perform pre-render initialization - fill rnrCtx with values stored during PreDraw().
void SetStyle(Short_t st)
Abstract clipping shape - derives from TGLPhysicalShape Adds clip mode (inside/outside) and pure virt...
virtual void RenderSelTransp(TGLRnrCtx &rnrCtx)
Render selected transparent elements for highlight.
void SetAutoDestruct(Bool_t a)
virtual void RenderSelOpaque(TGLRnrCtx &rnrCtx)
Render selected opaque elements.
std::list< TGLViewerBase * > ViewerList_t
TGLBoundingBox fBoundingBox
UInt_t GetTimeStamp() const
Base class for GL viewers.
virtual const char * GetName() const
virtual void UpdateSceneInfo(TGLRnrCtx &ctx)
Fill scene-info with information needed for rendering, take into account the render-context (viewer s...
virtual ~TGLSceneBase()
Destructor.
virtual const char * LockIdStr() const
Name printed on locking info messages.
static UInt_t fgSceneIDSrc
virtual void RenderTransp(TGLRnrCtx &rnrCtx)
Render transparent elements.
Bool_t GetSelectable() const
virtual void RenderSelOpaqueForHighlight(TGLRnrCtx &rnrCtx)
Render selected opaque elements for highlight.
virtual void RenderSelTranspForHighlight(TGLRnrCtx &rnrCtx)
Render selected transparent elements.
virtual void RebuildSceneInfo(TGLRnrCtx &ctx)
Fill scene-info with very basic information that is practically view independent. ...
virtual const char * GetTitle() const
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
Standard selection record including information about containing scene and details ob out selected ob...
virtual TGLLogicalShape * FindLogical(TObject *) const
virtual Bool_t ResolveSelectRecord(TGLSelectRecord &rec, Int_t curIdx)
Process selection record rec.
virtual void LodifySceneInfo(TGLRnrCtx &ctx)
Setup LOD-dependant values in scene-info.
void InvalidateBoundingBox()
virtual void SetName(const char *name)
Abstract logical shape - a GL 'drawable' - base for all shapes - faceset sphere etc.
virtual void CalcBoundingBox() const =0
virtual void SetTitle(const char *title)
virtual void SetNameTitle(const char *name, const char *title)
std::list< TGLViewerBase * >::iterator ViewerList_i
Mother of all ROOT objects.
Concrete class describing an orientated (free) or axis aligned box of 8 vertices. ...
UInt_t GetMinorStamp() const
void SetSelectable(Bool_t a)
Base class for extended scene context.
virtual void RenderOpaque(TGLRnrCtx &rnrCtx)
Render opaque elements.
void TagViewersChanged()
Tag all viewers as changed.
virtual void PreDraw(TGLRnrCtx &rnrCtx)
Perform basic pre-render initialization:
Simple locking interface used by viewer and scene.
const TGLBoundingBox & BoundingBox() const
virtual void PostRender(TGLRnrCtx &rnrCtx)
Perform post-render clean-up.
TGLSceneBase & operator=(const TGLSceneBase &)
virtual void PostDraw(TGLRnrCtx &rnrCtx)
Finalize drawing.