ROOT  6.06/09
Reference Guide
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...
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered this element. More...
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
virtual void MouseLeave ()
 Mouse has left the element. More...
 
virtual void Render (TGLRnrCtx &rnrCtx)
 Render clip-shape and manipulator. More...
 
Bool_t IsClipping () const
 
TGLClipGetCurrentClip () const
 
void FillPlaneSet (TGLPlaneSet_t &set) const
 Forward request to fill the plane-set to the current clip. More...
 
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...
 
void InvalidateClips ()
 Invalidate clip objects. More...
 
void InvalidateCurrentClip ()
 Invalidate current clip object. More...
 
void GetClipState (TGLClip::EType type, Double_t data[6]) const
 Get state of clip object 'type' into data vector: More...
 
void SetClipState (TGLClip::EType type, const Double_t data[6])
 Set 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...
 
void SetClipType (TGLClip::EType type)
 Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox. More...
 
Bool_t GetAutoUpdate () const
 
void SetAutoUpdate (Bool_t aup)
 
Bool_t GetShowManip () const
 
void SetShowManip (Bool_t show)
 
Bool_t GetShowClip () const
 
void SetShowClip (Bool_t show)
 
 ClassDef (TGLClipSet, 0)
 
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
ERole GetRole () const
 
void SetRole (ERole r)
 
EState GetState () const
 
void SetState (EState s)
 
void SetBinaryState (Bool_t s)
 

Protected Attributes

TGLClipPlanefClipPlane
 
TGLClipBoxfClipBox
 
TGLClipfCurrentClip
 
Bool_t fAutoUpdate
 the current clipping shape More...
 
Bool_t fShowClip
 
Bool_t fShowManip
 
TGLManipSetfManip
 
TGLBoundingBox fLastBBox
 
- 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:
+ Collaboration diagram for TGLClipSet:

Constructor & Destructor Documentation

TGLClipSet::TGLClipSet ( const TGLClipSet )
private
TGLClipSet::TGLClipSet ( )

Constructor.

Definition at line 336 of file TGLClip.cxx.

TGLClipSet::~TGLClipSet ( )
virtual

Destructor.

Definition at line 351 of file TGLClip.cxx.

Member Function Documentation

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

Bool_t TGLClipSet::GetAutoUpdate ( ) const
inline

Definition at line 188 of file TGLClip.h.

Referenced by TGLViewer::GetClipAutoUpdate(), and TGLClipSetSubEditor::SetModel().

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.

Referenced by TGLClipSetSubEditor::SetModel().

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.

Referenced by TGLClipSetSubEditor::ResetViewerClip(), and TGLClipSetSubEditor::SetModel().

TGLClip* TGLClipSet::GetCurrentClip ( ) const
inline
Bool_t TGLClipSet::GetShowClip ( ) const
inline

Definition at line 192 of file TGLClip.h.

Referenced by TGLClipSetSubEditor::SetModel().

Bool_t TGLClipSet::GetShowManip ( ) const
inline

Definition at line 190 of file TGLClip.h.

Referenced by TGLClipSetSubEditor::SetModel().

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.

void TGLClipSet::InvalidateClips ( )

Invalidate clip objects.

Definition at line 455 of file TGLClip.cxx.

void TGLClipSet::InvalidateCurrentClip ( )

Invalidate current clip object.

Definition at line 464 of file TGLClip.cxx.

Bool_t TGLClipSet::IsClipping ( ) const
inline

Definition at line 169 of file TGLClip.h.

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.

void TGLClipSet::MouseLeave ( )
virtual

Mouse has left the element.

Forward to ManipSet.

Reimplemented from TGLOverlayElement.

Definition at line 389 of file TGLClip.cxx.

Bool_t TGLClipSet::MouseStillInside ( TGLOvlSelectRecord selRec)
virtual

Reimplemented from TGLOverlayElement.

Definition at line 367 of file TGLClip.cxx.

TGLClipSet& TGLClipSet::operator= ( const TGLClipSet )
private
void TGLClipSet::Render ( TGLRnrCtx rnrCtx)
virtual

Render clip-shape and manipulator.

Implements TGLOverlayElement.

Definition at line 397 of file TGLClip.cxx.

void TGLClipSet::SetAutoUpdate ( Bool_t  aup)
inline
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.

Referenced by TGLClipSetSubEditor::UpdateViewerClip().

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.

Referenced by TGLClipSetSubEditor::ClipTypeChanged().

void TGLClipSet::SetShowClip ( Bool_t  show)
inline

Definition at line 193 of file TGLClip.h.

Referenced by TGLClipSetSubEditor::UpdateViewerClip().

void TGLClipSet::SetShowManip ( Bool_t  show)
inline

Definition at line 191 of file TGLClip.h.

Referenced by TGLClipSetSubEditor::UpdateViewerClip().

void TGLClipSet::SetupClips ( const TGLBoundingBox sceneBBox)

Setup clipping objects for given scene bounding box.

Definition at line 425 of file TGLClip.cxx.

void TGLClipSet::SetupCurrentClip ( const TGLBoundingBox sceneBBox)

Setup current clipping object for given scene bounding box.

Definition at line 435 of file TGLClip.cxx.

Referenced by TGLViewer::SetupClipObject().

void TGLClipSet::SetupCurrentClipIfInvalid ( const TGLBoundingBox sceneBBox)

Setup current clipping object for given scene bounding box.

Definition at line 445 of file TGLClip.cxx.

Referenced by TGLViewer::SetupClipObject().

Member Data Documentation

Bool_t TGLClipSet::fAutoUpdate
protected

the current clipping shape

Definition at line 150 of file TGLClip.h.

Referenced by GetAutoUpdate().

TGLClipBox* TGLClipSet::fClipBox
protected
TGLClipPlane* TGLClipSet::fClipPlane
protected
TGLClip* TGLClipSet::fCurrentClip
protected
TGLBoundingBox TGLClipSet::fLastBBox
protected

Definition at line 155 of file TGLClip.h.

Referenced by GetClipState(), SetupClips(), SetupCurrentClip(), and SetupCurrentClipIfInvalid().

TGLManipSet* TGLClipSet::fManip
protected
Bool_t TGLClipSet::fShowClip
protected

Definition at line 151 of file TGLClip.h.

Referenced by GetShowClip(), and Render().

Bool_t TGLClipSet::fShowManip
protected

Definition at line 152 of file TGLClip.h.

Referenced by GetShowManip(), and Render().


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