12 #ifndef ROOT_TGLScenePad 13 #define ROOT_TGLScenePad 47 typedef std::pair<UInt_t, RootCsg::TBaseMesh*>
CSPart_t;
virtual void AddCompositeOp(UInt_t operation)
Add composite operation used to combine objects added via AddObject TVirtualViewer3D interface overlo...
Bool_t GetSmartRefresh() const
void ComposePolymarker(const TList *padPrimitives)
Implements a native ROOT-GL representation of an arbitrary set of polygons.
void AddHistoPhysical(TGLLogicalShape *log, const Float_t *histColor=0)
Scale and rotate a histo object to mimic placement in canvas.
virtual Bool_t OpenComposite(const TBuffer3D &buffer, Bool_t *addChildren=0)
Open new composite container.
virtual Bool_t CanLoopOnPrimitives() const
TGLScenePad(const TGLScenePad &)
TGLLogicalShape * CreateNewLogical(const TBuffer3D &buffer) const
Create and return a new TGLLogicalShape from the supplied buffer.
Concrete physical shape - a GL drawable.
Int_t fAcceptedPhysicals
last physical ID that was processed in AddObject()
UInt_t fLastPID
next internal physical ID (from 1 - 0 reserved)
#define ClassDef(name, id)
virtual Bool_t PreferLocalFrame() const
Abstract 3D shapes viewer.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual void PadPaintFromViewer(TGLViewer *viewer)
Entry point for requesting update of scene's contents from gl-viewer.
TGLLogicalShape * AttemptDirectRenderer(TObject *id)
Try to construct an appropriate logical-shape sub-class based on id'class, following convention that ...
TGLPhysicalShape * CreateNewPhysical(UInt_t physicalID, const TBuffer3D &buffer, const TGLLogicalShape &logical) const
Create and return a new TGLPhysicalShape with id 'ID', using 'buffer' placement information (translat...
virtual Int_t DistancetoPrimitive(Int_t, Int_t)
Computes distance from point (px,py) to the object.
TVirtualPad * GetPad() const
virtual void ExecuteEvent(Int_t, Int_t, Int_t)
Execute action corresponding to an event at (px,py).
Int_t ValidateObjectBuffer(const TBuffer3D &buffer, Bool_t includeRaw) const
Validate if the passed 'buffer' contains all sections we require to add object.
Implements VirtualViewer3D interface and fills the base-class visualization structures from pad conte...
ELock CurrentLock() const
Generic 3D primitive description class.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
virtual void BeginScene()
Start building of the scene.
RootCsg::TBaseMesh * BuildComposite()
Build and return composite shape mesh.
Abstract logical shape - a GL 'drawable' - base for all shapes - faceset sphere etc.
UInt_t fNextInternalPID
using internal physical IDs
UInt_t fCSLevel
Paritally created composite.
virtual void CloseComposite()
Close composite container TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture.
void SubPadPaint(TVirtualPad *pad)
Iterate over pad-primitives and import them.
Mother of all ROOT objects.
TGLScenePad & operator=(const TGLScenePad &)
virtual Bool_t BuildingScene() const
std::vector< CSPart_t > fCSTokens
virtual void EndScene()
End building of the scene.
TGLScene provides management and rendering of ROOT's default 3D /object representation as logical and...
void SetSmartRefresh(Bool_t smart_ref)
std::pair< UInt_t, RootCsg::TBaseMesh * > CSPart_t
virtual void PadPaint(TVirtualPad *pad)
Entry point for updating scene contents via VirtualViewer3D interface.
void SetPad(TVirtualPad *p)
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 ba...
virtual void ObjectPaint(TObject *obj, Option_t *opt="")
Override of virtual TVirtualViewer3D::ObjectPaint().