Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TGLClipSet Class Reference

A collection of concrete TGLClip objects to be selected from.

Definition at line 139 of file TGLClip.h.

Public Types

enum  ERole { kUser , kViewer , kAnnotation , kAll }
enum  EState { kInvisible = 1 , kDisabled = 2 , kActive = 4 , kAllVisible = kDisabled | kActive }

Public Member Functions

 TGLClipSet ()
 Constructor.
 ~TGLClipSet () override
 Destructor.
void FillPlaneSet (TGLPlaneSet_t &set) const
 Forward request to fill the plane-set to the current clip.
Bool_t GetAutoUpdate () const
void GetClipState (TGLClip::EType type, Double_t data[6]) const
 Get state of clip object 'type' into data vector:
TGLClip::EType GetClipType () const
 Get current type active in viewer - returns one of kClipNone kClipPlane or kClipBox.
TGLClipGetCurrentClip () const
ERole GetRole () const
Bool_t GetShowClip () const
Bool_t GetShowManip () const
EState GetState () const
Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event) override
 Handle overlay event.
void InvalidateClips ()
 Invalidate clip objects.
void InvalidateCurrentClip ()
 Invalidate current clip object.
TClassIsA () const override
Bool_t IsClipping () const
Bool_t MouseEnter (TGLOvlSelectRecord &selRec) override
 Mouse has entered this element.
void MouseLeave () override
 Mouse has left the element.
Bool_t MouseStillInside (TGLOvlSelectRecord &selRec) override
void Render (TGLRnrCtx &rnrCtx) override
 Render clip-shape and manipulator.
void SetAutoUpdate (Bool_t aup)
void SetBinaryState (Bool_t s)
void SetClipState (TGLClip::EType type, const Double_t data[6])
 Set state of clip object 'type' into data vector:
void SetClipType (TGLClip::EType type)
 Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox.
void SetRole (ERole r)
void SetShowClip (Bool_t show)
void SetShowManip (Bool_t show)
void SetState (EState s)
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 Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()

Protected Member Functions

void ProjectionMatrixPushIdentity ()

Protected Attributes

Bool_t fAutoUpdate
TGLClipBoxfClipBox
TGLClipPlanefClipPlane
TGLClipfCurrentClip
 ! the current clipping shape
TGLBoundingBox fLastBBox
TGLManipSetfManip
ERole fRole
Bool_t fShowClip
Bool_t fShowManip
EState fState

Private Member Functions

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

#include <TGLClip.h>

Inheritance diagram for TGLClipSet:
TGLOverlayElement

Member Enumeration Documentation

◆ ERole

enum TGLOverlayElement::ERole
inherited
Enumerator
kUser 
kViewer 
kAnnotation 
kAll 

Definition at line 25 of file TGLOverlay.h.

◆ EState

enum TGLOverlayElement::EState
inherited
Enumerator
kInvisible 
kDisabled 
kActive 
kAllVisible 

Definition at line 27 of file TGLOverlay.h.

Constructor & Destructor Documentation

◆ TGLClipSet() [1/2]

TGLClipSet::TGLClipSet ( const TGLClipSet & )
privatedelete

◆ TGLClipSet() [2/2]

TGLClipSet::TGLClipSet ( )

Constructor.

Definition at line 332 of file TGLClip.cxx.

◆ ~TGLClipSet()

TGLClipSet::~TGLClipSet ( )
override

Destructor.

Definition at line 347 of file TGLClip.cxx.

Member Function Documentation

◆ Class()

TClass * TGLClipSet::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

const char * TGLClipSet::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

constexpr Version_t TGLClipSet::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 195 of file TGLClip.h.

◆ DeclFileName()

const char * TGLClipSet::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 195 of file TGLClip.h.

◆ FillPlaneSet()

void TGLClipSet::FillPlaneSet ( TGLPlaneSet_t & set) const

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

Definition at line 412 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 473 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 556 of file TGLClip.cxx.

◆ GetCurrentClip()

TGLClip * TGLClipSet::GetCurrentClip ( ) const
inline

Definition at line 170 of file TGLClip.h.

◆ GetRole()

ERole TGLOverlayElement::GetRole ( ) const
inlineinherited

Definition at line 53 of file TGLOverlay.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.

◆ GetState()

EState TGLOverlayElement::GetState ( ) const
inlineinherited

Definition at line 56 of file TGLOverlay.h.

◆ Handle()

Bool_t TGLClipSet::Handle ( TGLRnrCtx & rnrCtx,
TGLOvlSelectRecord & selRec,
Event_t * event )
overridevirtual

Handle overlay event.

Forward to ManipSet.

Reimplemented from TGLOverlayElement.

Definition at line 375 of file TGLClip.cxx.

◆ InvalidateClips()

void TGLClipSet::InvalidateClips ( )

Invalidate clip objects.

Definition at line 451 of file TGLClip.cxx.

◆ InvalidateCurrentClip()

void TGLClipSet::InvalidateCurrentClip ( )

Invalidate current clip object.

Definition at line 460 of file TGLClip.cxx.

◆ IsA()

TClass * TGLClipSet::IsA ( ) const
inlineoverride
Returns
TClass describing current object

Definition at line 195 of file TGLClip.h.

◆ IsClipping()

Bool_t TGLClipSet::IsClipping ( ) const
inline

Definition at line 169 of file TGLClip.h.

◆ MouseEnter()

Bool_t TGLClipSet::MouseEnter ( TGLOvlSelectRecord & selRec)
overridevirtual

Mouse has entered this element.

Forward to ManipSet.

Reimplemented from TGLOverlayElement.

Definition at line 358 of file TGLClip.cxx.

◆ MouseLeave()

void TGLClipSet::MouseLeave ( )
overridevirtual

Mouse has left the element.

Forward to ManipSet.

Reimplemented from TGLOverlayElement.

Definition at line 385 of file TGLClip.cxx.

◆ MouseStillInside()

Bool_t TGLClipSet::MouseStillInside ( TGLOvlSelectRecord & selRec)
overridevirtual

Reimplemented from TGLOverlayElement.

Definition at line 363 of file TGLClip.cxx.

◆ operator=()

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

◆ ProjectionMatrixPushIdentity()

void TGLOverlayElement::ProjectionMatrixPushIdentity ( )
protectedinherited

◆ Render()

void TGLClipSet::Render ( TGLRnrCtx & rnrCtx)
overridevirtual

Render clip-shape and manipulator.

Implements TGLOverlayElement.

Definition at line 393 of file TGLClip.cxx.

◆ SetAutoUpdate()

void TGLClipSet::SetAutoUpdate ( Bool_t aup)
inline

Definition at line 189 of file TGLClip.h.

◆ SetBinaryState()

void TGLOverlayElement::SetBinaryState ( Bool_t s)
inlineinherited

Definition at line 59 of file TGLOverlay.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 520 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 576 of file TGLClip.cxx.

◆ SetRole()

void TGLOverlayElement::SetRole ( ERole r)
inlineinherited

Definition at line 54 of file TGLOverlay.h.

◆ 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.

◆ SetState()

void TGLOverlayElement::SetState ( EState s)
inlineinherited

Definition at line 57 of file TGLOverlay.h.

◆ SetupClips()

void TGLClipSet::SetupClips ( const TGLBoundingBox & sceneBBox)

Setup clipping objects for given scene bounding box.

Definition at line 421 of file TGLClip.cxx.

◆ SetupCurrentClip()

void TGLClipSet::SetupCurrentClip ( const TGLBoundingBox & sceneBBox)

Setup current clipping object for given scene bounding box.

Definition at line 431 of file TGLClip.cxx.

◆ SetupCurrentClipIfInvalid()

void TGLClipSet::SetupCurrentClipIfInvalid ( const TGLBoundingBox & sceneBBox)

Setup current clipping object for given scene bounding box.

Definition at line 441 of file TGLClip.cxx.

◆ Streamer()

void TGLClipSet::Streamer ( TBuffer & )
override

◆ StreamerNVirtual()

void TGLClipSet::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 195 of file TGLClip.h.

Member Data Documentation

◆ fAutoUpdate

Bool_t TGLClipSet::fAutoUpdate
protected

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

! the current clipping shape

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.

◆ fRole

ERole TGLOverlayElement::fRole
protectedinherited

Definition at line 35 of file TGLOverlay.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.

◆ fState

EState TGLOverlayElement::fState
protectedinherited

Definition at line 36 of file TGLOverlay.h.


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