Logo ROOT   6.10/09
Reference Guide
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
TGLScenePad Class Reference

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

Definition at line 25 of file TGLScenePad.h.

Public Member Functions

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

Protected Types

typedef std::pair< UInt_t, RootCsg::TBaseMesh * > CSPart_t
 
- 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. More...
 
RootCsg::TBaseMesh * BuildComposite ()
 Build and return composite shape mesh. More...
 
void ComposePolymarker (const TList *padPrimitives)
 
TGLLogicalShapeCreateNewLogical (const TBuffer3D &buffer) const
 Create and return a new TGLLogicalShape from the supplied buffer. More...
 
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'. More...
 
Int_t ValidateObjectBuffer (const TBuffer3D &buffer, Bool_t includeRaw) const
 Validate if the passed 'buffer' contains all sections we require to add object. More...
 
- 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). More...
 
void MakeZombie ()
 
- Protected Member Functions inherited from TGLScene
virtual void DestroyPhysicalInternal (PhysicalShapeMapIt_t pit)
 Virtual function to destroy a physical. More...
 
void ReleaseGLCtxIdentity ()
 Release all GL resources for current context identity. More...
 

Protected Attributes

Int_t fAcceptedPhysicals
 last physical ID that was processed in AddObject() More...
 
TGLFaceSetfComposite
 
UInt_t fCSLevel
 Paritally created composite. More...
 
std::vector< CSPart_tfCSTokens
 
Bool_t fInternalPIDs
 
UInt_t fLastPID
 next internal physical ID (from 1 - 0 reserved) More...
 
UInt_t fNextInternalPID
 using internal physical IDs More...
 
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 &)
 
TGLScenePadoperator= (const TGLScenePad &)
 

Additional Inherited Members

- Public Types inherited from TObject
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(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 }
 
- Static Public Member Functions inherited from TVirtualViewer3D
static TVirtualViewer3DViewer3D (TVirtualPad *pad=0, Option_t *type="")
 Create a Viewer 3D of specified type. More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 
- Static Public Member Functions inherited from TGLScene
static Bool_t IsOutside (const TGLBoundingBox &box, const TGLPlaneSet_t &planes)
 Check if box is outside of all planes. More...
 
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). More...
 
- Static Public Member Functions inherited from TGLLockable
static const char * LockName (ELock lock)
 Return name-string for given lock-type. More...
 
static Bool_t LockValid (ELock lock)
 Test if lock is a valid type to take/release. More...
 

#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 47 of file TGLScenePad.h.

Constructor & Destructor Documentation

◆ TGLScenePad() [1/2]

TGLScenePad::TGLScenePad ( const TGLScenePad )
private

◆ TGLScenePad() [2/2]

TGLScenePad::TGLScenePad ( TVirtualPad pad)

cache logicals during scene rebuilds

Definition at line 51 of file TGLScenePad.cxx.

◆ ~TGLScenePad()

virtual TGLScenePad::~TGLScenePad ( )
inlinevirtual

Definition at line 59 of file TGLScenePad.h.

Member Function Documentation

◆ AddCompositeOp()

void TGLScenePad::AddCompositeOp ( UInt_t  operation)
virtual

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 = 0 
)

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 = 0 
)
virtual

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 = 0 
)
virtual

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 773 of file TGLScenePad.cxx.

◆ BeginScene()

void TGLScenePad::BeginScene ( )
virtual

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 744 of file TGLScenePad.cxx.

◆ BuildingScene()

virtual Bool_t TGLScenePad::BuildingScene ( ) const
inlinevirtual

Implements TVirtualViewer3D.

Definition at line 88 of file TGLScenePad.h.

◆ CanLoopOnPrimitives()

virtual Bool_t TGLScenePad::CanLoopOnPrimitives ( ) const
inlinevirtual

Reimplemented from TVirtualViewer3D.

Definition at line 77 of file TGLScenePad.h.

◆ CloseComposite()

void TGLScenePad::CloseComposite ( )
virtual

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 704 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 611 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 688 of file TGLScenePad.cxx.

◆ DistancetoPrimitive()

virtual Int_t TGLScenePad::DistancetoPrimitive ( Int_t  px,
Int_t  py 
)
inlinevirtual

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 82 of file TGLScenePad.h.

◆ EndScene()

void TGLScenePad::EndScene ( )
virtual

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()

virtual void TGLScenePad::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
inlinevirtual

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 83 of file TGLScenePad.h.

◆ GetPad()

TVirtualPad* TGLScenePad::GetPad ( ) const
inline

Definition at line 61 of file TGLScenePad.h.

◆ GetSmartRefresh()

Bool_t TGLScenePad::GetSmartRefresh ( ) const
inline

Definition at line 71 of file TGLScenePad.h.

◆ ObjectPaint()

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

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 = 0 
)
virtual

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 )
private

◆ PadPaint()

void TGLScenePad::PadPaint ( TVirtualPad pad)
virtual

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()

virtual Bool_t TGLScenePad::PreferLocalFrame ( ) const
inlinevirtual

Implements TVirtualViewer3D.

Definition at line 85 of file TGLScenePad.h.

◆ SetPad()

void TGLScenePad::SetPad ( TVirtualPad p)
inline

Definition at line 62 of file TGLScenePad.h.

◆ SetSmartRefresh()

void TGLScenePad::SetSmartRefresh ( Bool_t  smart_ref)
inline

Definition at line 72 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 38 of file TGLScenePad.h.

◆ fComposite

TGLFaceSet* TGLScenePad::fComposite
mutableprotected

Definition at line 48 of file TGLScenePad.h.

◆ fCSLevel

UInt_t TGLScenePad::fCSLevel
protected

Paritally created composite.

Definition at line 49 of file TGLScenePad.h.

◆ fCSTokens

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

Definition at line 50 of file TGLScenePad.h.

◆ fInternalPIDs

Bool_t TGLScenePad::fInternalPIDs
protected

Definition at line 35 of file TGLScenePad.h.

◆ fLastPID

UInt_t TGLScenePad::fLastPID
protected

next internal physical ID (from 1 - 0 reserved)

Definition at line 37 of file TGLScenePad.h.

◆ fNextInternalPID

UInt_t TGLScenePad::fNextInternalPID
protected

using internal physical IDs

Definition at line 36 of file TGLScenePad.h.

◆ fPad

TVirtualPad* TGLScenePad::fPad
protected

Definition at line 32 of file TGLScenePad.h.

◆ fSmartRefresh

Bool_t TGLScenePad::fSmartRefresh
protected

Definition at line 55 of file TGLScenePad.h.


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