ROOT logo
ROOT » GRAF3D » GL » TGLClipSet

class TGLClipSet: public TGLOverlayElement


 TGLClipSet

 A collection of concrete TGLClip objects to be selected from.


Function Members (Methods)

public:
TGLClipSet()
virtual~TGLClipSet()
static TClass*Class()
voidFillPlaneSet(TGLPlaneSet_t& set) const
Bool_tGetAutoUpdate() const
voidGetClipState(EClipType type, Double_t* data) const
EClipTypeGetClipType() const
TGLClip*GetCurrentClip() const
TGLOverlayElement::ERoleTGLOverlayElement::GetRole() const
Bool_tGetShowClip() const
Bool_tGetShowManip() const
TGLOverlayElement::EStateTGLOverlayElement::GetState() const
virtual Bool_tHandle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
voidInvalidateClips()
voidInvalidateCurrentClip()
virtual TClass*IsA() const
Bool_tIsClipping() const
virtual Bool_tMouseEnter(TGLOvlSelectRecord& selRec)
virtual voidMouseLeave()
virtual Bool_tMouseStillInside(TGLOvlSelectRecord& selRec)
virtual voidRender(TGLRnrCtx& rnrCtx)
voidSetAutoUpdate(Bool_t aup)
voidTGLOverlayElement::SetBinaryState(Bool_t s)
voidSetClipState(EClipType type, const Double_t* data)
voidSetClipType(EClipType type)
voidTGLOverlayElement::SetRole(TGLOverlayElement::ERole r)
voidSetShowClip(Bool_t show)
voidSetShowManip(Bool_t show)
voidTGLOverlayElement::SetState(TGLOverlayElement::EState s)
voidSetupClips(const TGLBoundingBox& sceneBBox)
voidSetupCurrentClip(const TGLBoundingBox& sceneBBox)
voidSetupCurrentClipIfInvalid(const TGLBoundingBox& sceneBBox)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

public:
enum TGLOverlayElement::ERole { kUser
kViewer
kAnnotation
kAll
};
enum TGLOverlayElement::EState { kInvisible
kDisabled
kActive
kAllVisible
};
protected:
Bool_tfAutoUpdate
TGLClipBox*fClipBox
TGLClipPlane*fClipPlane
TGLClip*fCurrentClip! the current clipping shape
TGLBoundingBoxfLastBBox
TGLManipSet*fManip
TGLOverlayElement::ERoleTGLOverlayElement::fRole
Bool_tfShowClip
Bool_tfShowManip
TGLOverlayElement::EStateTGLOverlayElement::fState

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLClipSet()
 Constructor.
~TGLClipSet()
 Destructor.
Bool_t MouseEnter(TGLOvlSelectRecord& selRec)
 Mouse has enetered this element.
 Forward to ManipSet.
Bool_t MouseStillInside(TGLOvlSelectRecord& selRec)
 A new overlay hit is about to be processed.
 Forward to ManipSet.
Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
 Handle overlay event.
 Forward to ManipSet.
void MouseLeave()
 Mouse has left the element.
 Forward to ManipSet.
void Render(TGLRnrCtx& rnrCtx)
 Render clip-shape and manipulator.
void FillPlaneSet(TGLPlaneSet_t& set) const
 Forward request to fill the plane-set to the current clip.
void SetupClips(const TGLBoundingBox& sceneBBox)
 Setup clipping objects for given scene bounding box.
void SetupCurrentClip(const TGLBoundingBox& sceneBBox)
 Setup current clipping object for given scene bounding box.
void SetupCurrentClipIfInvalid(const TGLBoundingBox& sceneBBox)
 Setup current clipping object for given scene bounding box.
void InvalidateClips()
 Invalidate clip objects.
void InvalidateCurrentClip()
 Invalidate current clip object.
void GetClipState(EClipType type, Double_t* data) const
 Get state of clip object 'type' into data vector:

 'type' requested - 'data' contents returned
 kClipPlane   4 components - A,B,C,D - of plane eq : Ax+By+CZ+D = 0
 kBoxPlane    6 components - Box Center X/Y/Z - Box Extents X/Y/Z
void SetClipState(EClipType type, const Double_t* data)
 Set state of clip object 'type' into data vector:

 'type' specified        'data' contents interpretation
 kClipNone               ignored
 kClipPlane              4 components - A,B,C,D - of plane eq : Ax+By+CZ+D = 0
 kBoxPlane               6 components - Box Center X/Y/Z - Box Extents X/Y/Z
EClipType GetClipType() const
 Get current type active in viewer - returns one of kClipNone
 kClipPlane or kClipBox.
void SetClipType(EClipType type)
 Set current clip active in viewer - 'type' is one of kClipNone
 kClipPlane or kClipBox.
TGLClipSet(const TGLClipSet& )
TGLClipSet& operator=(const TGLClipSet& )
Bool_t IsClipping() const
{ return fCurrentClip != 0; }
TGLClip* GetCurrentClip() const
{ return fCurrentClip; }
Bool_t GetAutoUpdate() const
 Clip control flags
{ return fAutoUpdate; }
void SetAutoUpdate(Bool_t aup)
{ fAutoUpdate = aup; }
Bool_t GetShowManip() const
{ return fShowManip; }
void SetShowManip(Bool_t show)
{ fShowManip = show; }
Bool_t GetShowClip() const
{ return fShowClip; }
void SetShowClip(Bool_t show)
{ fShowClip = show; }