Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLScenePad Class Reference

Implements VirtualViewer3D interface and fills the base-class visualization structures from pad contents.

Definition at line 26 of file TGLScenePad.h.

Public Member Functions

 TGLScenePad (TVirtualPad *pad)
 cache logicals during scene rebuilds
 
 ~TGLScenePad () override
 
void AddCompositeOp (UInt_t operation) override
 Add composite operation used to combine objects added via AddObject TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.
 
void AddHistoPhysical (TGLLogicalShape *log, const Float_t *histColor=nullptr)
 Scale and rotate a histo object to mimic placement in canvas.
 
Int_t AddObject (const TBuffer3D &buffer, Bool_t *addChildren=nullptr) override
 Add an object to the viewer, using internal physical IDs TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.
 
Int_t AddObject (UInt_t physicalID, const TBuffer3D &buffer, Bool_t *addChildren=nullptr) override
 Add an object to the scene, using an external physical ID TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.
 
void BeginScene () override
 Start building of the scene.
 
Bool_t BuildingScene () const override
 
Bool_t CanLoopOnPrimitives () const override
 
void CloseComposite () override
 Close composite container TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.
 
Int_t DistancetoPrimitive (Int_t, Int_t) override
 Computes distance from point (px,py) to the object.
 
void EndScene () override
 End building of the scene.
 
void ExecuteEvent (Int_t, Int_t, Int_t) override
 Execute action corresponding to an event at (px,py).
 
TVirtualPadGetPad () const
 
Bool_t GetSmartRefresh () const
 
TClassIsA () const override
 
void ObjectPaint (TObject *obj, Option_t *opt="") override
 Override of virtual TVirtualViewer3D::ObjectPaint().
 
Bool_t OpenComposite (const TBuffer3D &buffer, Bool_t *addChildren=nullptr) override
 Open new composite container.
 
void PadPaint (TVirtualPad *pad) override
 Entry point for updating scene contents via VirtualViewer3D interface.
 
virtual void PadPaintFromViewer (TGLViewer *viewer)
 Entry point for requesting update of scene's contents from gl-viewer.
 
Bool_t PreferLocalFrame () const override
 
void SetPad (TVirtualPad *p)
 
void SetSmartRefresh (Bool_t smart_ref)
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void SubPadPaint (TVirtualPad *pad)
 Iterate over pad-primitives and import them.
 
- Public Member Functions inherited from TVirtualViewer3D
virtual ~TVirtualViewer3D ()
 
virtual void DrawViewer ()
 
TClassIsA () const override
 
virtual void PrintObjects ()
 
virtual void ResetCameras ()
 
virtual void ResetCamerasAfterNextUpdate ()
 
virtual TObjectSelectObject (Int_t, Int_t)
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility.
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method.
 
virtual void Copy (TObject &object) const
 Copy this to obj.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual const char * GetName () const
 Returns name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object.
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
virtual ULong_t Hash () const
 Return hash value for this object.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout.
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *vp)
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 
- Public Member Functions inherited from TGLScene
 TGLScene ()
 
 ~TGLScene () override
 Destroy scene objects.
 
virtual void AdoptLogical (TGLLogicalShape &shape)
 Adopt dynamically created logical 'shape' - add to internal map and take responsibility for deleting.
 
virtual void AdoptPhysical (TGLPhysicalShape &shape)
 Adopt dynamically created physical 'shape' - add to internal map and take responsibility for deleting.
 
UInt_t BeginSmartRefresh ()
 Moves logicals that support smart-refresh to intermediate cache.
 
virtual Bool_t BeginUpdate ()
 Put scene in update mode, return true if lock acquired.
 
void CalcBoundingBox () const override
 Encapsulates all physical shapes bounding box with axes aligned box.
 
TSceneInfoCreateSceneInfo (TGLViewerBase *view) override
 Create a scene-info instance appropriate for this scene class.
 
virtual Bool_t DestroyLogical (TObject *logid, Bool_t mustFind=kTRUE)
 Destroy logical shape defined by unique 'ID'.
 
virtual Int_t DestroyLogicals ()
 Destroy all logical shapes in scene.
 
virtual Bool_t DestroyPhysical (UInt_t phid)
 Destroy physical shape defined by unique 'ID'.
 
virtual Int_t DestroyPhysicals ()
 Destroy physical shapes.
 
void DumpMapSizes () const
 Print sizes of logical and physical-shape maps.
 
void EndSmartRefresh ()
 Wipes logicals in refresh-cache.
 
virtual void EndUpdate (Bool_t minorChange=kTRUE, Bool_t sceneChanged=kTRUE, Bool_t updateViewers=kTRUE)
 Exit scene update mode.
 
TGLLogicalShapeFindLogical (TObject *logid) const override
 Find and return logical shape identified by unique logid.
 
TGLLogicalShapeFindLogicalSmartRefresh (TObject *ID) const
 Find and return logical shape identified by unique 'ID' in refresh-cache.
 
virtual TGLPhysicalShapeFindPhysical (UInt_t phid) const
 Find and return physical shape identified by unique 'ID'.
 
TGLContextIdentityGetGLCtxIdentity () const
 
virtual UInt_t GetMaxPhysicalID ()
 Returns the maximum used physical id.
 
void LodifySceneInfo (TGLRnrCtx &rnrCtx) override
 Setup LOD-dependant values in scene-info.
 
void PostDraw (TGLRnrCtx &rnrCtx) override
 Called after the rendering is finished.
 
void PreDraw (TGLRnrCtx &rnrCtx) override
 Initialize rendering.
 
void RebuildSceneInfo (TGLRnrCtx &rnrCtx) override
 Major change in scene, need to rebuild all-element draw-vector and sort it.
 
LogicalShapeMap_tRefLogicalShapes ()
 
virtual void RenderAllPasses (TGLRnrCtx &rnrCtx, DrawElementPtrVec_t &elVec, Bool_t check_timeout)
 Do full rendering of scene.
 
virtual void RenderElements (TGLRnrCtx &rnrCtx, DrawElementPtrVec_t &elVec, Bool_t check_timeout, const TGLPlaneSet_t *clipPlanes=nullptr)
 Render DrawElements in elementVec with given timeout.
 
virtual void RenderHighlight (TGLRnrCtx &rnrCtx, DrawElementPtrVec_t &elVec)
 
void RenderOpaque (TGLRnrCtx &rnrCtx) override
 Render opaque elements.
 
void RenderSelOpaque (TGLRnrCtx &rnrCtx) override
 Render selected opaque elements.
 
void RenderSelOpaqueForHighlight (TGLRnrCtx &rnrCtx) override
 Render selected opaque elements for highlight.
 
void RenderSelTransp (TGLRnrCtx &rnrCtx) override
 Render selected transparent elements.
 
void RenderSelTranspForHighlight (TGLRnrCtx &rnrCtx) override
 Render selected transparent elements for highlight.
 
void RenderTransp (TGLRnrCtx &rnrCtx) override
 Render transparent elements.
 
Bool_t ResolveSelectRecord (TGLSelectRecord &rec, Int_t curIdx) override
 Process selection record rec.
 
UInt_t SizeOfScene () const
 Return memory cost of scene.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void UpdateLogical (TObject *logid)
 Drop display-lists for the logical (assume TGLObject/direct rendering).
 
virtual void UpdatePhysical (UInt_t phid, Double_t *trans, Color_t cidx=-1, UChar_t transp=0)
 Reposition/recolor physical shape.
 
virtual void UpdatePhysical (UInt_t phid, Double_t *trans, UChar_t *col)
 Reposition/recolor physical shape.
 
virtual void UpdatePhysioLogical (TObject *logid, Double_t *trans, Color_t cidx, UChar_t transp)
 Reposition/recolor physical for given logical (assume TGLObject and a single physical).
 
virtual void UpdatePhysioLogical (TObject *logid, Double_t *trans, UChar_t *col)
 Reposition/recolor physical for given logical (assume TGLObject and a single physical).
 
void UpdateSceneInfo (TGLRnrCtx &rnrCtx) override
 Fill scene-info with information needed for rendering, take into account the render-context (viewer state, camera, clipping).
 
- Public Member Functions inherited from TGLSceneBase
 TGLSceneBase ()
 
 ~TGLSceneBase () override
 Destructor.
 
void AddViewer (TGLViewerBase *viewer)
 Add viewer to the list.
 
const TGLBoundingBoxBoundingBox () const
 
TGLClipClip () const
 
Bool_t GetAutoDestruct () const
 
UInt_t GetMinorStamp () const
 
virtual const char * GetName () const
 
Bool_t GetSelectable () const
 
UInt_t GetTimeStamp () const
 
virtual const char * GetTitle () const
 
void IncMinorStamp ()
 
void IncTimeStamp ()
 
void InvalidateBoundingBox ()
 
const char * LockIdStr () const override
 Name printed on locking info messages.
 
Short_t LOD () const
 
virtual void PostRender (TGLRnrCtx &rnrCtx)
 Perform post-render clean-up.
 
virtual void PreRender (TGLRnrCtx &rnrCtx)
 Perform pre-render initialization - fill rnrCtx with values stored during PreDraw().
 
void RemoveViewer (TGLViewerBase *viewer)
 Remove viewer from the list.
 
virtual void Render (TGLRnrCtx &rnrCtx)
 This function does rendering of all stages, the shapes are rendered in the following order: opaque, transparent, selected-opaque, selected-transparent.
 
void SetAutoDestruct (Bool_t a)
 
void SetClip (TGLClip *p)
 
void SetLOD (Short_t lod)
 
virtual void SetName (const char *name)
 
virtual void SetNameTitle (const char *name, const char *title)
 
void SetSelectable (Bool_t a)
 
void SetStyle (Short_t st)
 
virtual void SetTitle (const char *title)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
Short_t Style () const
 
void TagViewersChanged ()
 Tag all viewers as changed.
 
- Public Member Functions inherited from TGLLockable
 TGLLockable ()
 
virtual ~TGLLockable ()
 
ELock CurrentLock () const
 
Bool_t IsDrawOrSelectLock () const
 
Bool_t IsLocked () const
 
Bool_t ReleaseLock (ELock lock) const
 Release current lock, make sure it the same as the 'lock' argument.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
Bool_t TakeLock (ELock lock) const
 Lock the object in mode 'lock'.
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TVirtualViewer3D
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TVirtualViewer3DViewer3D (TVirtualPad *pad=nullptr, Option_t *type="")
 Create a Viewer 3D of specified type.
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 
- Static Public Member Functions inherited from TGLScene
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Bool_t IsOutside (const TGLBoundingBox &box, const TGLPlaneSet_t &planes)
 Check if box is outside of all planes.
 
static void RGBAFromColorIdx (Float_t rgba[4], Color_t ci, Char_t transp=0)
 Fill rgba color from ROOT color-index ci and transparency (0->100).
 
- Static Public Member Functions inherited from TGLSceneBase
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGLLockable
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static const char * LockName (ELock lock)
 Return name-string for given lock-type.
 
static Bool_t LockValid (ELock lock)
 Test if lock is a valid type to take/release.
 

Protected Types

typedef std::pair< UInt_t, RootCsg::TBaseMesh * > CSPart_t
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 
- Protected Types inherited from TGLSceneBase
typedef std::list< TGLViewerBase * >::iterator ViewerList_i
 
typedef std::list< TGLViewerBase * > ViewerList_t
 

Protected Member Functions

TGLLogicalShapeAttemptDirectRenderer (TObject *id)
 Try to construct an appropriate logical-shape sub-class based on id'class, following convention that SomeClassGL is a suitable renderer for class SomeClass.
 
RootCsg::TBaseMesh * BuildComposite ()
 Build and return composite shape mesh.
 
void ComposePolymarker (const TList *padPrimitives)
 
TGLLogicalShapeCreateNewLogical (const TBuffer3D &buffer) const
 Create and return a new TGLLogicalShape from the supplied buffer.
 
TGLPhysicalShapeCreateNewPhysical (UInt_t physicalID, const TBuffer3D &buffer, const TGLLogicalShape &logical) const
 Create and return a new TGLPhysicalShape with id 'ID', using 'buffer' placement information (translation etc), and bound to suppled 'logical'.
 
Int_t ValidateObjectBuffer (const TBuffer3D &buffer, Bool_t includeRaw) const
 Validate if the passed 'buffer' contains all sections we require to add object.
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 
- Protected Member Functions inherited from TGLScene
virtual void DestroyPhysicalInternal (PhysicalShapeMapIt_t pit)
 Virtual function to destroy a physical.
 
void ReleaseGLCtxIdentity ()
 Release all GL resources for current context identity.
 

Protected Attributes

Int_t fAcceptedPhysicals
 last physical ID that was processed in AddObject()
 
TGLFaceSetfComposite
 
UInt_t fCSLevel
 Paritally created composite.
 
std::vector< CSPart_tfCSTokens
 
Bool_t fInternalPIDs
 
UInt_t fLastPID
 next internal physical ID (from 1 - 0 reserved)
 
UInt_t fNextInternalPID
 using internal physical IDs
 
TVirtualPadfPad
 
Bool_t fSmartRefresh
 
- Protected Attributes inherited from TGLScene
TGLContextIdentityfGLCtxIdentity
 
Bool_t fInSmartRefresh
 
Float_t fLastLineWidthScale
 
Float_t fLastPointSizeScale
 
LogicalShapeMap_t fLogicalShapes
 
PhysicalShapeMap_t fPhysicalShapes
 
LogicalShapeMap_t fSmartRefreshCache
 
- Protected Attributes inherited from TGLSceneBase
Bool_t fAutoDestruct
 
TGLBoundingBox fBoundingBox
 
Bool_t fBoundingBoxValid
 
TGLClipfClip
 
Bool_t fDoClipCheck
 
Bool_t fDoFrustumCheck
 
Short_t fLOD
 
UInt_t fMinorStamp
 
TString fName
 
Float_t fOLLineW
 
UInt_t fSceneID
 
Bool_t fSelectable
 
Short_t fStyle
 
UInt_t fTimeStamp
 
TString fTitle
 
ViewerList_t fViewers
 
Float_t fWFLineW
 
- Protected Attributes inherited from TGLLockable
ELock fLock
 

Private Member Functions

 TGLScenePad (const TGLScenePad &)=delete
 
TGLScenePadoperator= (const TGLScenePad &)=delete
 

Additional Inherited Members

- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 
- Public Types inherited from TGLScene
typedef std::vector< DrawElement_t * >::iterator DrawElementPtrVec_i
 
typedef std::vector< DrawElement_t * > DrawElementPtrVec_t
 
typedef std::vector< DrawElement_t >::iterator DrawElementVec_i
 
typedef std::vector< DrawElement_tDrawElementVec_t
 
typedef std::map< TObject *, TGLLogicalShape * > LogicalShapeMap_t
 
typedef LogicalShapeMap_t::const_iterator LogicalShapeMapCIt_t
 
typedef LogicalShapeMap_t::iterator LogicalShapeMapIt_t
 
typedef LogicalShapeMap_t::value_type LogicalShapeMapValueType_t
 
typedef std::map< UInt_t, TGLPhysicalShape * > PhysicalShapeMap_t
 
typedef PhysicalShapeMap_t::const_iterator PhysicalShapeMapCIt_t
 
typedef PhysicalShapeMap_t::iterator PhysicalShapeMapIt_t
 
typedef PhysicalShapeMap_t::value_type PhysicalShapeMapValueType_t
 
typedef ShapeVec_t::iterator ShapeVec_i
 
typedef std::vector< const TGLPhysicalShape * > ShapeVec_t
 
- Public Types inherited from TGLLockable
enum  ELock { kUnlocked , kDrawLock , kSelectLock , kModifyLock }
 

#include <TGLScenePad.h>

Inheritance diagram for TGLScenePad:
[legend]

Member Typedef Documentation

◆ CSPart_t

typedef std::pair<UInt_t, RootCsg::TBaseMesh*> TGLScenePad::CSPart_t
protected

Definition at line 48 of file TGLScenePad.h.

Constructor & Destructor Documentation

◆ TGLScenePad() [1/2]

TGLScenePad::TGLScenePad ( const TGLScenePad )
privatedelete

◆ TGLScenePad() [2/2]

TGLScenePad::TGLScenePad ( TVirtualPad pad)

cache logicals during scene rebuilds

Definition at line 51 of file TGLScenePad.cxx.

◆ ~TGLScenePad()

TGLScenePad::~TGLScenePad ( )
inlineoverride

Definition at line 60 of file TGLScenePad.h.

Member Function Documentation

◆ AddCompositeOp()

void TGLScenePad::AddCompositeOp ( UInt_t  operation)
overridevirtual

Add composite operation used to combine objects added via AddObject TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.

Implements TVirtualViewer3D.

Definition at line 528 of file TGLScenePad.cxx.

◆ AddHistoPhysical()

void TGLScenePad::AddHistoPhysical ( TGLLogicalShape log,
const Float_t histColor = nullptr 
)

Scale and rotate a histo object to mimic placement in canvas.

Definition at line 75 of file TGLScenePad.cxx.

◆ AddObject() [1/2]

Int_t TGLScenePad::AddObject ( const TBuffer3D buffer,
Bool_t addChildren = nullptr 
)
overridevirtual

Add an object to the viewer, using internal physical IDs TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.

Implements TVirtualViewer3D.

Definition at line 329 of file TGLScenePad.cxx.

◆ AddObject() [2/2]

Int_t TGLScenePad::AddObject ( UInt_t  physicalID,
const TBuffer3D buffer,
Bool_t addChildren = nullptr 
)
overridevirtual

Add an object to the scene, using an external physical ID TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.

Implements TVirtualViewer3D.

Definition at line 342 of file TGLScenePad.cxx.

◆ AttemptDirectRenderer()

TGLLogicalShape * TGLScenePad::AttemptDirectRenderer ( TObject id)
protected

Try to construct an appropriate logical-shape sub-class based on id'class, following convention that SomeClassGL is a suitable renderer for class SomeClass.

Definition at line 778 of file TGLScenePad.cxx.

◆ BeginScene()

void TGLScenePad::BeginScene ( )
overridevirtual

Start building of the scene.

Old contents is dropped, unless smart-refresh is in active. Then the object supporting it are kept in a cache and possibly reused.

TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.

Implements TVirtualViewer3D.

Definition at line 259 of file TGLScenePad.cxx.

◆ BuildComposite()

RootCsg::TBaseMesh * TGLScenePad::BuildComposite ( )
protected

Build and return composite shape mesh.

Definition at line 749 of file TGLScenePad.cxx.

◆ BuildingScene()

Bool_t TGLScenePad::BuildingScene ( ) const
inlineoverridevirtual

Implements TVirtualViewer3D.

Definition at line 89 of file TGLScenePad.h.

◆ CanLoopOnPrimitives()

Bool_t TGLScenePad::CanLoopOnPrimitives ( ) const
inlineoverridevirtual

Reimplemented from TVirtualViewer3D.

Definition at line 78 of file TGLScenePad.h.

◆ Class()

static TClass * TGLScenePad::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLScenePad::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLScenePad::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 98 of file TGLScenePad.h.

◆ CloseComposite()

void TGLScenePad::CloseComposite ( )
overridevirtual

Close composite container TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.

Implements TVirtualViewer3D.

Definition at line 507 of file TGLScenePad.cxx.

◆ ComposePolymarker()

void TGLScenePad::ComposePolymarker ( const TList padPrimitives)
protected

Definition at line 709 of file TGLScenePad.cxx.

◆ CreateNewLogical()

TGLLogicalShape * TGLScenePad::CreateNewLogical ( const TBuffer3D buffer) const
protected

Create and return a new TGLLogicalShape from the supplied buffer.

Definition at line 616 of file TGLScenePad.cxx.

◆ CreateNewPhysical()

TGLPhysicalShape * TGLScenePad::CreateNewPhysical ( UInt_t  physicalID,
const TBuffer3D buffer,
const TGLLogicalShape logical 
) const
protected

Create and return a new TGLPhysicalShape with id 'ID', using 'buffer' placement information (translation etc), and bound to suppled 'logical'.

Definition at line 693 of file TGLScenePad.cxx.

◆ DeclFileName()

static const char * TGLScenePad::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 98 of file TGLScenePad.h.

◆ DistancetoPrimitive()

Int_t TGLScenePad::DistancetoPrimitive ( Int_t  px,
Int_t  py 
)
inlineoverridevirtual

Computes distance from point (px,py) to the object.

This member function must be implemented for each graphics primitive. This default function returns a big number (999999).

Reimplemented from TObject.

Definition at line 83 of file TGLScenePad.h.

◆ EndScene()

void TGLScenePad::EndScene ( )
overridevirtual

End building of the scene.

TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture

Implements TVirtualViewer3D.

Definition at line 310 of file TGLScenePad.cxx.

◆ ExecuteEvent()

void TGLScenePad::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
inlineoverridevirtual

Execute action corresponding to an event at (px,py).

This method must be overridden if an object can react to graphics events.

Reimplemented from TObject.

Definition at line 84 of file TGLScenePad.h.

◆ GetPad()

TVirtualPad * TGLScenePad::GetPad ( ) const
inline

Definition at line 62 of file TGLScenePad.h.

◆ GetSmartRefresh()

Bool_t TGLScenePad::GetSmartRefresh ( ) const
inline

Definition at line 72 of file TGLScenePad.h.

◆ IsA()

TClass * TGLScenePad::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TObject.

Definition at line 98 of file TGLScenePad.h.

◆ ObjectPaint()

void TGLScenePad::ObjectPaint ( TObject obj,
Option_t opt = "" 
)
overridevirtual

Override of virtual TVirtualViewer3D::ObjectPaint().

Special handling of 2D/3D histograms to activate Timur's histo-painters.

Reimplemented from TVirtualViewer3D.

Definition at line 189 of file TGLScenePad.cxx.

◆ OpenComposite()

Bool_t TGLScenePad::OpenComposite ( const TBuffer3D buffer,
Bool_t addChildren = nullptr 
)
overridevirtual

Open new composite container.

TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.

Implements TVirtualViewer3D.

Definition at line 482 of file TGLScenePad.cxx.

◆ operator=()

TGLScenePad & TGLScenePad::operator= ( const TGLScenePad )
privatedelete

◆ PadPaint()

void TGLScenePad::PadPaint ( TVirtualPad pad)
overridevirtual

Entry point for updating scene contents via VirtualViewer3D interface.

For now this is handled by TGLViewer as it remains the 'Viewer3D' of given pad.

Reimplemented from TVirtualViewer3D.

Definition at line 233 of file TGLScenePad.cxx.

◆ PadPaintFromViewer()

void TGLScenePad::PadPaintFromViewer ( TGLViewer viewer)
virtual

Entry point for requesting update of scene's contents from gl-viewer.

Definition at line 217 of file TGLScenePad.cxx.

◆ PreferLocalFrame()

Bool_t TGLScenePad::PreferLocalFrame ( ) const
inlineoverridevirtual

Implements TVirtualViewer3D.

Definition at line 86 of file TGLScenePad.h.

◆ SetPad()

void TGLScenePad::SetPad ( TVirtualPad p)
inline

Definition at line 63 of file TGLScenePad.h.

◆ SetSmartRefresh()

void TGLScenePad::SetSmartRefresh ( Bool_t  smart_ref)
inline

Definition at line 73 of file TGLScenePad.h.

◆ Streamer()

void TGLScenePad::Streamer ( TBuffer R__b)
overridevirtual

Stream an object of class TObject.

Reimplemented from TObject.

◆ StreamerNVirtual()

void TGLScenePad::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 98 of file TGLScenePad.h.

◆ SubPadPaint()

void TGLScenePad::SubPadPaint ( TVirtualPad pad)

Iterate over pad-primitives and import them.

Definition at line 162 of file TGLScenePad.cxx.

◆ ValidateObjectBuffer()

Int_t TGLScenePad::ValidateObjectBuffer ( const TBuffer3D buffer,
Bool_t  includeRaw 
) const
protected

Validate if the passed 'buffer' contains all sections we require to add object.

Returns Int_t combination of TBuffer::ESection flags still required - or TBuffer3D::kNone if buffer is valid. If 'includeRaw' is kTRUE check for kRaw/kRawSizes - skip otherwise. See base/src/TVirtualViewer3D.cxx for description of viewer architecture

Definition at line 543 of file TGLScenePad.cxx.

Member Data Documentation

◆ fAcceptedPhysicals

Int_t TGLScenePad::fAcceptedPhysicals
protected

last physical ID that was processed in AddObject()

Definition at line 39 of file TGLScenePad.h.

◆ fComposite

TGLFaceSet* TGLScenePad::fComposite
mutableprotected

Definition at line 49 of file TGLScenePad.h.

◆ fCSLevel

UInt_t TGLScenePad::fCSLevel
protected

Paritally created composite.

Definition at line 50 of file TGLScenePad.h.

◆ fCSTokens

std::vector<CSPart_t> TGLScenePad::fCSTokens
protected

Definition at line 51 of file TGLScenePad.h.

◆ fInternalPIDs

Bool_t TGLScenePad::fInternalPIDs
protected

Definition at line 36 of file TGLScenePad.h.

◆ fLastPID

UInt_t TGLScenePad::fLastPID
protected

next internal physical ID (from 1 - 0 reserved)

Definition at line 38 of file TGLScenePad.h.

◆ fNextInternalPID

UInt_t TGLScenePad::fNextInternalPID
protected

using internal physical IDs

Definition at line 37 of file TGLScenePad.h.

◆ fPad

TVirtualPad* TGLScenePad::fPad
protected

Definition at line 33 of file TGLScenePad.h.

◆ fSmartRefresh

Bool_t TGLScenePad::fSmartRefresh
protected

Definition at line 56 of file TGLScenePad.h.

Libraries for TGLScenePad:

The documentation for this class was generated from the following files: