Logo ROOT   6.08/07
Reference Guide
List of all members | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
TGLClipSet Class Reference

A collection of concrete TGLClip objects to be selected from.

Definition at line 139 of file TGLClip.h.

Public Member Functions

 TGLClipSet ()
 Constructor. More...
 
virtual ~TGLClipSet ()
 Destructor. More...
 
void FillPlaneSet (TGLPlaneSet_t &set) const
 Forward request to fill the plane-set to the current clip. More...
 
Bool_t GetAutoUpdate () const
 
void GetClipState (TGLClip::EType type, Double_t data[6]) const
 Get state of clip object 'type' into data vector: More...
 
TGLClip::EType GetClipType () const
 Get current type active in viewer - returns one of kClipNone kClipPlane or kClipBox. More...
 
TGLClipGetCurrentClip () const
 
Bool_t GetShowClip () const
 
Bool_t GetShowManip () const
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
void InvalidateClips ()
 Invalidate clip objects. More...
 
void InvalidateCurrentClip ()
 Invalidate current clip object. More...
 
Bool_t IsClipping () const
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered this element. More...
 
virtual void MouseLeave ()
 Mouse has left the element. More...
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
virtual void Render (TGLRnrCtx &rnrCtx)
 Render clip-shape and manipulator. More...
 
void SetAutoUpdate (Bool_t aup)
 
void SetClipState (TGLClip::EType type, const Double_t data[6])
 Set state of clip object 'type' into data vector: More...
 
void SetClipType (TGLClip::EType type)
 Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox. More...
 
void SetShowClip (Bool_t show)
 
void SetShowManip (Bool_t show)
 
void SetupClips (const TGLBoundingBox &sceneBBox)
 Setup clipping objects for given scene bounding box. More...
 
void SetupCurrentClip (const TGLBoundingBox &sceneBBox)
 Setup current clipping object for given scene bounding box. More...
 
void SetupCurrentClipIfInvalid (const TGLBoundingBox &sceneBBox)
 Setup current clipping object for given scene bounding box. More...
 
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
ERole GetRole () const
 
EState GetState () const
 
void SetBinaryState (Bool_t s)
 
void SetRole (ERole r)
 
void SetState (EState s)
 

Protected Attributes

Bool_t fAutoUpdate
 the current clipping shape More...
 
TGLClipBoxfClipBox
 
TGLClipPlanefClipPlane
 
TGLClipfCurrentClip
 
TGLBoundingBox fLastBBox
 
TGLManipSetfManip
 
Bool_t fShowClip
 
Bool_t fShowManip
 
- Protected Attributes inherited from TGLOverlayElement
ERole fRole
 
EState fState
 

Private Member Functions

 TGLClipSet (const TGLClipSet &)
 
TGLClipSetoperator= (const TGLClipSet &)
 

Additional Inherited Members

- Public Types inherited from TGLOverlayElement
enum  ERole { kUser, kViewer, kAnnotation, kAll }
 
enum  EState { kInvisible = 1, kDisabled = 2, kActive = 4, kAllVisible = kDisabled | kActive }
 
- Protected Member Functions inherited from TGLOverlayElement
void ProjectionMatrixPushIdentity ()
 

#include <TGLClip.h>

Inheritance diagram for TGLClipSet:
[legend]

Constructor & Destructor Documentation

◆ TGLClipSet() [1/2]

TGLClipSet::TGLClipSet ( const TGLClipSet )
private

◆ TGLClipSet() [2/2]

TGLClipSet::TGLClipSet ( )

Constructor.

Definition at line 336 of file TGLClip.cxx.

◆ ~TGLClipSet()

TGLClipSet::~TGLClipSet ( )
virtual

Destructor.

Definition at line 351 of file TGLClip.cxx.

Member Function Documentation

◆ FillPlaneSet()

void TGLClipSet::FillPlaneSet ( TGLPlaneSet_t set) const

Forward request to fill the plane-set to the current clip.

Definition at line 416 of file TGLClip.cxx.

◆ GetAutoUpdate()

Bool_t TGLClipSet::GetAutoUpdate ( ) const
inline

Definition at line 188 of file TGLClip.h.

◆ GetClipState()

void TGLClipSet::GetClipState ( TGLClip::EType  type,
Double_t  data[6] 
) 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

Definition at line 477 of file TGLClip.cxx.

◆ GetClipType()

TGLClip::EType TGLClipSet::GetClipType ( ) const

Get current type active in viewer - returns one of kClipNone kClipPlane or kClipBox.

Definition at line 560 of file TGLClip.cxx.

◆ GetCurrentClip()

TGLClip* TGLClipSet::GetCurrentClip ( ) const
inline

Definition at line 170 of file TGLClip.h.

◆ GetShowClip()

Bool_t TGLClipSet::GetShowClip ( ) const
inline

Definition at line 192 of file TGLClip.h.

◆ GetShowManip()

Bool_t TGLClipSet::GetShowManip ( ) const
inline

Definition at line 190 of file TGLClip.h.

◆ Handle()

Bool_t TGLClipSet::Handle ( TGLRnrCtx rnrCtx,
TGLOvlSelectRecord selRec,
Event_t event 
)
virtual

Handle overlay event.

Forward to ManipSet.

Reimplemented from TGLOverlayElement.

Definition at line 379 of file TGLClip.cxx.

◆ InvalidateClips()

void TGLClipSet::InvalidateClips ( )

Invalidate clip objects.

Definition at line 455 of file TGLClip.cxx.

◆ InvalidateCurrentClip()

void TGLClipSet::InvalidateCurrentClip ( )

Invalidate current clip object.

Definition at line 464 of file TGLClip.cxx.

◆ IsClipping()

Bool_t TGLClipSet::IsClipping ( ) const
inline

Definition at line 169 of file TGLClip.h.

◆ MouseEnter()

Bool_t TGLClipSet::MouseEnter ( TGLOvlSelectRecord selRec)
virtual

Mouse has entered this element.

Forward to ManipSet.

Reimplemented from TGLOverlayElement.

Definition at line 362 of file TGLClip.cxx.

◆ MouseLeave()

void TGLClipSet::MouseLeave ( )
virtual

Mouse has left the element.

Forward to ManipSet.

Reimplemented from TGLOverlayElement.

Definition at line 389 of file TGLClip.cxx.

◆ MouseStillInside()

Bool_t TGLClipSet::MouseStillInside ( TGLOvlSelectRecord selRec)
virtual

Reimplemented from TGLOverlayElement.

Definition at line 367 of file TGLClip.cxx.

◆ operator=()

TGLClipSet& TGLClipSet::operator= ( const TGLClipSet )
private

◆ Render()

void TGLClipSet::Render ( TGLRnrCtx rnrCtx)
virtual

Render clip-shape and manipulator.

Implements TGLOverlayElement.

Definition at line 397 of file TGLClip.cxx.

◆ SetAutoUpdate()

void TGLClipSet::SetAutoUpdate ( Bool_t  aup)
inline

Definition at line 189 of file TGLClip.h.

◆ SetClipState()

void TGLClipSet::SetClipState ( TGLClip::EType  type,
const Double_t  data[6] 
)

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

Definition at line 524 of file TGLClip.cxx.

◆ SetClipType()

void TGLClipSet::SetClipType ( TGLClip::EType  type)

Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox.

Definition at line 580 of file TGLClip.cxx.

◆ SetShowClip()

void TGLClipSet::SetShowClip ( Bool_t  show)
inline

Definition at line 193 of file TGLClip.h.

◆ SetShowManip()

void TGLClipSet::SetShowManip ( Bool_t  show)
inline

Definition at line 191 of file TGLClip.h.

◆ SetupClips()

void TGLClipSet::SetupClips ( const TGLBoundingBox sceneBBox)

Setup clipping objects for given scene bounding box.

Definition at line 425 of file TGLClip.cxx.

◆ SetupCurrentClip()

void TGLClipSet::SetupCurrentClip ( const TGLBoundingBox sceneBBox)

Setup current clipping object for given scene bounding box.

Definition at line 435 of file TGLClip.cxx.

◆ SetupCurrentClipIfInvalid()

void TGLClipSet::SetupCurrentClipIfInvalid ( const TGLBoundingBox sceneBBox)

Setup current clipping object for given scene bounding box.

Definition at line 445 of file TGLClip.cxx.

Member Data Documentation

◆ fAutoUpdate

Bool_t TGLClipSet::fAutoUpdate
protected

the current clipping shape

Definition at line 150 of file TGLClip.h.

◆ fClipBox

TGLClipBox* TGLClipSet::fClipBox
protected

Definition at line 147 of file TGLClip.h.

◆ fClipPlane

TGLClipPlane* TGLClipSet::fClipPlane
protected

Definition at line 146 of file TGLClip.h.

◆ fCurrentClip

TGLClip* TGLClipSet::fCurrentClip
protected

Definition at line 148 of file TGLClip.h.

◆ fLastBBox

TGLBoundingBox TGLClipSet::fLastBBox
protected

Definition at line 155 of file TGLClip.h.

◆ fManip

TGLManipSet* TGLClipSet::fManip
protected

Definition at line 153 of file TGLClip.h.

◆ fShowClip

Bool_t TGLClipSet::fShowClip
protected

Definition at line 151 of file TGLClip.h.

◆ fShowManip

Bool_t TGLClipSet::fShowManip
protected

Definition at line 152 of file TGLClip.h.


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