ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 31 of file TGLScenePad.h.

Public Member Functions

 TGLScenePad (TVirtualPad *pad)
 cache logicals during scene rebuilds More...
 
virtual ~TGLScenePad ()
 
TVirtualPadGetPad () const
 
void SetPad (TVirtualPad *p)
 
void AddHistoPhysical (TGLLogicalShape *log, const Float_t *histColor=0)
 Scale and rotate a histo object to mimic placement in canvas. More...
 
void SubPadPaint (TVirtualPad *pad)
 Iterate over pad-primitives and import them. More...
 
virtual void PadPaintFromViewer (TGLViewer *viewer)
 Entry point for requesting update of scene's contents from gl-viewer. More...
 
Bool_t GetSmartRefresh () const
 
void SetSmartRefresh (Bool_t smart_ref)
 
virtual Bool_t CanLoopOnPrimitives () const
 
virtual void PadPaint (TVirtualPad *pad)
 Entry point for updating scene contents via VirtualViewer3D interface. More...
 
virtual void ObjectPaint (TObject *obj, Option_t *opt="")
 Override of virtual TVirtualViewer3D::ObjectPaint(). More...
 
virtual Int_t DistancetoPrimitive (Int_t, Int_t)
 Computes distance from point (px,py) to the object. More...
 
virtual void ExecuteEvent (Int_t, Int_t, Int_t)
 Execute action corresponding to an event at (px,py). More...
 
virtual Bool_t PreferLocalFrame () const
 
virtual void BeginScene ()
 Start building of the scene. More...
 
virtual Bool_t BuildingScene () const
 
virtual void EndScene ()
 End building of the scene. 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 Bool_t OpenComposite (const TBuffer3D &buffer, Bool_t *addChildren=0)
 Open new composite container. More...
 
virtual void CloseComposite ()
 Close composite container TVirtualViewer3D interface overload - see base/src/TVirtualViewer3D.cxx for description of viewer architecture. More...
 
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...
 
 ClassDef (TGLScenePad, 0)
 
- Public Member Functions inherited from TVirtualViewer3D
virtual ~TVirtualViewer3D ()
 
virtual TObjectSelectObject (Int_t, Int_t)
 
virtual void DrawViewer ()
 
virtual void PrintObjects ()
 
virtual void ResetCameras ()
 
virtual void ResetCamerasAfterNextUpdate ()
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. 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 pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. 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 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 UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual const char * GetTitle () const
 Returns title of object. 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 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...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
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 IsSortable () const
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. 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...
 
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...
 
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 UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. 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...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. 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)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. 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...
 
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...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
- Public Member Functions inherited from TGLScene
 TGLScene ()
 
virtual ~TGLScene ()
 Destroy scene objects. 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 void RebuildSceneInfo (TGLRnrCtx &rnrCtx)
 Major change in scene, need to rebuild all-element draw-vector and sort it. 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...
 
virtual void LodifySceneInfo (TGLRnrCtx &rnrCtx)
 Setup LOD-dependant values in scene-info. More...
 
virtual void PreDraw (TGLRnrCtx &rnrCtx)
 Initialize rendering. More...
 
virtual void RenderOpaque (TGLRnrCtx &rnrCtx)
 Render opaque elements. More...
 
virtual void RenderTransp (TGLRnrCtx &rnrCtx)
 Render transparent elements. More...
 
virtual void RenderSelOpaque (TGLRnrCtx &rnrCtx)
 Render selected opaque elements. More...
 
virtual void RenderSelTransp (TGLRnrCtx &rnrCtx)
 Render selected transparent elements. More...
 
virtual void RenderSelOpaqueForHighlight (TGLRnrCtx &rnrCtx)
 Render selected opaque elements for highlight. More...
 
virtual void RenderSelTranspForHighlight (TGLRnrCtx &rnrCtx)
 Render selected transparent elements for highlight. More...
 
virtual void RenderHighlight (TGLRnrCtx &rnrCtx, DrawElementPtrVec_t &elVec)
 
virtual void PostDraw (TGLRnrCtx &rnrCtx)
 Called after the rendering is finished. More...
 
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 Bool_t ResolveSelectRecord (TGLSelectRecord &rec, Int_t curIdx)
 Process selection record rec. More...
 
virtual void AdoptLogical (TGLLogicalShape &shape)
 Adopt dynamically created logical 'shape' - add to internal map and take responsibility for deleting. 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 TGLLogicalShapeFindLogical (TObject *logid) const
 Find and return logical shape identified by unique logid. More...
 
virtual void AdoptPhysical (TGLPhysicalShape &shape)
 Adopt dynamically created physical 'shape' - add to internal map and take responsibility for deleting. More...
 
virtual Bool_t DestroyPhysical (UInt_t phid)
 Destroy physical shape defined by unique 'ID'. More...
 
virtual Int_t DestroyPhysicals ()
 Destroy physical shapes. More...
 
virtual TGLPhysicalShapeFindPhysical (UInt_t phid) const
 Find and return physical shape identified by unique 'ID'. More...
 
virtual UInt_t GetMaxPhysicalID ()
 Returns the maximum used physical id. More...
 
virtual Bool_t BeginUpdate ()
 Put scene in update mode, return true if lock acquired. More...
 
virtual void EndUpdate (Bool_t minorChange=kTRUE, Bool_t sceneChanged=kTRUE, Bool_t updateViewers=kTRUE)
 Exit scene update mode. 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...
 
LogicalShapeMap_tRefLogicalShapes ()
 
UInt_t BeginSmartRefresh ()
 Moves logicals that support smart-refresh to intermediate cache. More...
 
void EndSmartRefresh ()
 Wipes logicals in refresh-cache. More...
 
TGLLogicalShapeFindLogicalSmartRefresh (TObject *ID) const
 Find and return logical shape identified by unique 'ID' in refresh-cache. More...
 
TGLContextIdentityGetGLCtxIdentity () const
 
UInt_t SizeOfScene () const
 Return memory cost of scene. More...
 
void DumpMapSizes () const
 Print sizes of logical and physical-shape maps. More...
 
 ClassDef (TGLScene, 0)
 
- Public Member Functions inherited from TGLSceneBase
 TGLSceneBase ()
 
virtual ~TGLSceneBase ()
 Destructor. More...
 
void AddViewer (TGLViewerBase *viewer)
 Add viewer to the list. More...
 
void RemoveViewer (TGLViewerBase *viewer)
 Remove viewer from the list. More...
 
void TagViewersChanged ()
 Tag all viewers as changed. More...
 
virtual const char * LockIdStr () const
 Name printed on locking info messages. More...
 
virtual const char * GetName () const
 
virtual const char * GetTitle () const
 
virtual void SetName (const char *name)
 
virtual void SetTitle (const char *title)
 
virtual void SetNameTitle (const char *name, const char *title)
 
virtual void PreRender (TGLRnrCtx &rnrCtx)
 Perform pre-render initialization - fill rnrCtx with values stored during PreDraw(). 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...
 
virtual void PostRender (TGLRnrCtx &rnrCtx)
 Perform post-render clean-up. More...
 
UInt_t GetTimeStamp () const
 
void IncTimeStamp ()
 
UInt_t GetMinorStamp () const
 
void IncMinorStamp ()
 
Short_t LOD () const
 
void SetLOD (Short_t lod)
 
Short_t Style () const
 
void SetStyle (Short_t st)
 
TGLClipClip () const
 
void SetClip (TGLClip *p)
 
Bool_t GetSelectable () const
 
void SetSelectable (Bool_t a)
 
Bool_t GetAutoDestruct () const
 
void SetAutoDestruct (Bool_t a)
 
void InvalidateBoundingBox ()
 
const TGLBoundingBoxBoundingBox () const
 
- Public Member Functions inherited from TGLLockable
 TGLLockable ()
 
virtual ~TGLLockable ()
 
Bool_t TakeLock (ELock lock) const
 Lock the object in mode 'lock'. More...
 
Bool_t ReleaseLock (ELock lock) const
 Release current lock, make sure it the same as the 'lock' argument. More...
 
Bool_t IsLocked () const
 
ELock CurrentLock () const
 
Bool_t IsDrawOrSelectLock () const
 
 ClassDef (TGLLockable, 0)
 

Protected Types

typedef std::pair< UInt_t,
RootCsg::TBaseMesh * > 
CSPart_t
 
- Protected Types inherited from TGLSceneBase
typedef std::list
< TGLViewerBase * > 
ViewerList_t
 
typedef std::list
< TGLViewerBase * >::iterator 
ViewerList_i
 

Protected Member Functions

Int_t ValidateObjectBuffer (const TBuffer3D &buffer, Bool_t includeRaw) const
 Validate if the passed 'buffer' contains all sections we require to add object. More...
 
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...
 
void ComposePolymarker (const TList *padPrimitives)
 
RootCsg::TBaseMeshBuildComposite ()
 Build and return composite shape mesh. More...
 
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...
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
- 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

TVirtualPadfPad
 
Bool_t fInternalPIDs
 
UInt_t fNextInternalPID
 using internal physical IDs More...
 
UInt_t fLastPID
 next internal physical ID (from 1 - 0 reserved) More...
 
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 fSmartRefresh
 
- Protected Attributes inherited from TGLScene
LogicalShapeMap_t fLogicalShapes
 
PhysicalShapeMap_t fPhysicalShapes
 
TGLContextIdentityfGLCtxIdentity
 
Bool_t fInSmartRefresh
 
LogicalShapeMap_t fSmartRefreshCache
 
Float_t fLastPointSizeScale
 
Float_t fLastLineWidthScale
 
- Protected Attributes inherited from TGLSceneBase
UInt_t fSceneID
 
TString fName
 
TString fTitle
 
UInt_t fTimeStamp
 
UInt_t fMinorStamp
 
Short_t fLOD
 
Short_t fStyle
 
Float_t fWFLineW
 
Float_t fOLLineW
 
TGLClipfClip
 
Bool_t fSelectable
 
TGLBoundingBox fBoundingBox
 
Bool_t fBoundingBoxValid
 
Bool_t fDoFrustumCheck
 
Bool_t fDoClipCheck
 
ViewerList_t fViewers
 
Bool_t fAutoDestruct
 
- 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  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)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
- Public Types inherited from TGLScene
typedef std::map< TObject
*, TGLLogicalShape * > 
LogicalShapeMap_t
 
typedef
LogicalShapeMap_t::value_type 
LogicalShapeMapValueType_t
 
typedef LogicalShapeMap_t::iterator LogicalShapeMapIt_t
 
typedef
LogicalShapeMap_t::const_iterator 
LogicalShapeMapCIt_t
 
typedef std::map< UInt_t,
TGLPhysicalShape * > 
PhysicalShapeMap_t
 
typedef
PhysicalShapeMap_t::value_type 
PhysicalShapeMapValueType_t
 
typedef
PhysicalShapeMap_t::iterator 
PhysicalShapeMapIt_t
 
typedef
PhysicalShapeMap_t::const_iterator 
PhysicalShapeMapCIt_t
 
typedef std::vector
< DrawElement_t
DrawElementVec_t
 
typedef std::vector
< DrawElement_t >::iterator 
DrawElementVec_i
 
typedef std::vector
< DrawElement_t * > 
DrawElementPtrVec_t
 
typedef std::vector
< DrawElement_t * >::iterator 
DrawElementPtrVec_i
 
typedef std::vector< const
TGLPhysicalShape * > 
ShapeVec_t
 
typedef ShapeVec_t::iterator ShapeVec_i
 
- 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="")
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat 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 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 Bool_t IsOutside (const TGLBoundingBox &box, const TGLPlaneSet_t &planes)
 Check if box is outside of all planes. 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

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

Definition at line 53 of file TGLScenePad.h.

Constructor & Destructor Documentation

TGLScenePad::TGLScenePad ( const TGLScenePad )
private
TGLScenePad::TGLScenePad ( TVirtualPad pad)

cache logicals during scene rebuilds

virtual TGLScenePad::~TGLScenePad ( )
inlinevirtual

Definition at line 65 of file TGLScenePad.h.

Member Function Documentation

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.

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.

Referenced by ComposePolymarker(), and ObjectPaint().

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.

Referenced by OpenComposite().

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.

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.

Referenced by AddObject().

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.

Referenced by TEveGeoPolyShape::Construct(), TEveGeoNode::DumpShapeTree(), and PadPaint().

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

Build and return composite shape mesh.

Definition at line 744 of file TGLScenePad.cxx.

Referenced by CloseComposite().

virtual Bool_t TGLScenePad::BuildingScene ( ) const
inlinevirtual

Implements TVirtualViewer3D.

Definition at line 94 of file TGLScenePad.h.

virtual Bool_t TGLScenePad::CanLoopOnPrimitives ( ) const
inlinevirtual

Reimplemented from TVirtualViewer3D.

Definition at line 83 of file TGLScenePad.h.

TGLScenePad::ClassDef ( TGLScenePad  ,
 
)
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.

void TGLScenePad::ComposePolymarker ( const TList padPrimitives)
protected

Definition at line 704 of file TGLScenePad.cxx.

Referenced by SubPadPaint().

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.

Referenced by AddObject().

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.

Referenced by AddObject().

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

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.

Referenced by TEveGeoPolyShape::Construct(), TEveGeoNode::DumpShapeTree(), and PadPaint().

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

TVirtualPad* TGLScenePad::GetPad ( ) const
inline

Definition at line 67 of file TGLScenePad.h.

Referenced by TGLViewer::PadPaint().

Bool_t TGLScenePad::GetSmartRefresh ( ) const
inline

Definition at line 77 of file TGLScenePad.h.

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.

Referenced by ComposePolymarker(), and SubPadPaint().

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.

TGLScenePad& TGLScenePad::operator= ( const TGLScenePad )
private
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.

Referenced by PadPaintFromViewer(), and TEveScene::Repaint().

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.

Referenced by TGLViewer::PadPaint(), and TGLViewer::UpdateScene().

virtual Bool_t TGLScenePad::PreferLocalFrame ( ) const
inlinevirtual

Implements TVirtualViewer3D.

Definition at line 91 of file TGLScenePad.h.

void TGLScenePad::SetPad ( TVirtualPad p)
inline

Definition at line 68 of file TGLScenePad.h.

Referenced by TEveScene::TEveScene().

void TGLScenePad::SetSmartRefresh ( Bool_t  smart_ref)
inline

Definition at line 78 of file TGLScenePad.h.

Referenced by TEveScene::Repaint(), and TEveScene::TEveScene().

void TGLScenePad::SubPadPaint ( TVirtualPad pad)

Iterate over pad-primitives and import them.

Definition at line 162 of file TGLScenePad.cxx.

Referenced by ObjectPaint(), and PadPaint().

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.

Referenced by AddObject().

Member Data Documentation

Int_t TGLScenePad::fAcceptedPhysicals
protected

last physical ID that was processed in AddObject()

Definition at line 44 of file TGLScenePad.h.

Referenced by AddObject(), BeginScene(), and EndScene().

TGLFaceSet* TGLScenePad::fComposite
mutableprotected
UInt_t TGLScenePad::fCSLevel
protected

Paritally created composite.

Definition at line 55 of file TGLScenePad.h.

Referenced by BuildComposite(), and CloseComposite().

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

Definition at line 56 of file TGLScenePad.h.

Referenced by AddCompositeOp(), AddObject(), BuildComposite(), and CloseComposite().

Bool_t TGLScenePad::fInternalPIDs
protected

Definition at line 41 of file TGLScenePad.h.

Referenced by AddObject(), and BeginScene().

UInt_t TGLScenePad::fLastPID
protected

next internal physical ID (from 1 - 0 reserved)

Definition at line 43 of file TGLScenePad.h.

Referenced by AddObject(), and BeginScene().

UInt_t TGLScenePad::fNextInternalPID
protected

using internal physical IDs

Definition at line 42 of file TGLScenePad.h.

Referenced by AddHistoPhysical(), AddObject(), and BeginScene().

TVirtualPad* TGLScenePad::fPad
protected

Definition at line 38 of file TGLScenePad.h.

Referenced by GetPad(), PadPaint(), PadPaintFromViewer(), and SetPad().

Bool_t TGLScenePad::fSmartRefresh
protected
Collaboration diagram for TGLScenePad:
[legend]

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