61 fBoundingBoxValid (
kFALSE),
62 fDoFrustumCheck (
kTRUE),
79 (*i)->SceneDestructing(
this);
92 Warning(
"TGLSceneBase::AddViewer",
"viewer already in the list.");
106 Warning(
"TGLSceneBase::RemoveViewer",
"viewer not found in the list.");
111 Info(
"TGLSceneBase::RemoveViewer",
"scene '%s' not used - autodestructing.",
GetName());
176 Info(
"TGLSceneBase::UpdateSceneInfo",
240 std::vector<TGLPlane> planeSet;
244 std::vector<TGLPlane>::iterator it = planeSet.begin();
245 while (it != planeSet.end())
290 Info(
"TGLSceneBase::LodifySceneInfo",
291 "'%s' timestamp=%u lod=%d",
314 Error(
"TGLSceneBase::FullRender",
"expected Draw or Select Lock");
340 if (sInfo.
Clip() != 0) clip = sInfo.
Clip();
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.
TGLClip * ViewerClip() const
void SetLastClip(TGLClip *p)
void RemoveViewer(TGLViewerBase *viewer)
Remove viewer from the list.
Scene base-class – provides basic interface expected by the TGLViewer or its sub-classes: ...
Float_t LastOLLineW() const
virtual void PreRender(TGLRnrCtx &rnrCtx)
Perform pre-render initialization - fill rnrCtx with values stored during PreDraw().
void SetCameraStamp(UInt_t ts)
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.
TGLSceneInfo * GetSceneInfo()
Short_t Min(Short_t a, Short_t b)
virtual void RenderSelOpaque(TGLRnrCtx &rnrCtx)
Render selected opaque elements.
Base class for GL viewers.
virtual const char * GetName() const
const char * Data() const
std::vector< TGLPlane > & FrustumPlanes()
std::vector< TGLPlane > & ClipPlanes()
void SetSceneLOD(Short_t LOD)
TGLClip * LastClip() const
void SetLastLOD(Short_t ld)
virtual void UpdateSceneInfo(TGLRnrCtx &ctx)
Fill scene-info with information needed for rendering, take into account the render-context (viewer s...
virtual ~TGLSceneBase()
Destructor.
UInt_t CameraStamp() const
void Info(const char *location, const char *msgfmt,...)
void SetLastCamera(TGLCamera *p)
virtual const char * LockIdStr() const
Name printed on locking info messages.
void SetSceneStamp(UInt_t ts)
void Error(const char *location, const char *msgfmt,...)
static UInt_t fgSceneIDSrc
Short_t ViewerStyle() const
UInt_t SceneStamp() const
virtual void RenderTransp(TGLRnrCtx &rnrCtx)
Render transparent elements.
virtual void RenderSelOpaqueForHighlight(TGLRnrCtx &rnrCtx)
Render selected opaque elements for highlight.
Short_t ViewerLOD() const
void SetSceneStyle(Short_t sty)
void SetSceneWFLineW(Float_t w)
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. ...
void SetLastStyle(Short_t st)
void SetCombiLOD(Short_t LOD)
void SetSceneOLLineW(Float_t w)
Standard selection record including information about containing scene and details ob out selected ob...
virtual void PlaneSet(TGLPlaneSet_t &set) const =0
Float_t ViewerWFLineW() const
char * Form(const char *fmt,...)
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 Warning(const char *location, const char *msgfmt,...)
TGLCamera * LastCamera() const
Short_t LastStyle() const
Bool_t IsDrawOrSelectLock() const
Bool_t HasUpdateTimeouted() const
std::list< TGLViewerBase * >::iterator ViewerList_i
Rgl::EOverlap Overlap(const TGLPlane &plane) const
Find overlap (Inside, Outside, Partial) of plane c.f. bounding box.
Float_t ViewerOLLineW() const
Base class for extended scene context.
const TGLPlane & FrustumPlane(EFrustumPlane plane) const
virtual void RenderOpaque(TGLRnrCtx &rnrCtx)
Render opaque elements.
void TagViewersChanged()
Tag all viewers as changed.
void SetLastWFLineW(Float_t w)
virtual void PreDraw(TGLRnrCtx &rnrCtx)
Perform basic pre-render initialization:
Simple locking interface used by viewer and scene.
Float_t LastWFLineW() const
const TGLBoundingBox & BoundingBox() const
3D plane class - of format Ax + By + Cz + D = 0
virtual void PostRender(TGLRnrCtx &rnrCtx)
Perform post-render clean-up.
void SetLastOLLineW(Float_t w)
virtual void PostDraw(TGLRnrCtx &rnrCtx)
Finalize drawing.
void SetClipStamp(UInt_t ts)