12 #ifndef ROOT_TGLSceneBase_H 13 #define ROOT_TGLSceneBase_H 84 virtual void SetTitle(
const char *title) { fTitle = title; }
void AddViewer(TGLViewerBase *viewer)
Add viewer to the list.
Bool_t GetSelectable() const
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.
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().
Bool_t GetAutoDestruct() const
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
Base class for GL viewers.
#define ClassDef(name, id)
virtual const char * LockIdStr() const
Name printed on locking info messages.
virtual void UpdateSceneInfo(TGLRnrCtx &ctx)
Fill scene-info with information needed for rendering, take into account the render-context (viewer s...
virtual ~TGLSceneBase()
Destructor.
static UInt_t fgSceneIDSrc
virtual void RenderTransp(TGLRnrCtx &rnrCtx)
Render transparent elements.
virtual void RenderSelOpaqueForHighlight(TGLRnrCtx &rnrCtx)
Render selected opaque elements for highlight.
const TGLBoundingBox & BoundingBox() const
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. ...
Standard selection record including information about containing scene and details ob out selected ob...
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 const char * GetName() const
virtual void SetNameTitle(const char *name, const char *title)
std::list< TGLViewerBase * >::iterator ViewerList_i
UInt_t GetMinorStamp() const
Mother of all ROOT objects.
Concrete class describing an orientated (free) or axis aligned box of 8 vertices. ...
void SetSelectable(Bool_t a)
virtual TGLLogicalShape * FindLogical(TObject *) const
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.
UInt_t GetTimeStamp() const
virtual const char * GetTitle() const
virtual void PostRender(TGLRnrCtx &rnrCtx)
Perform post-render clean-up.
TGLSceneBase & operator=(const TGLSceneBase &)
virtual void PostDraw(TGLRnrCtx &rnrCtx)
Finalize drawing.