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

Combine all available manipulators in a collection.

At first I wanted to merge them back into TGLManip (to have a single class) but then it seemed somehow messy. Maybe next time.

Definition at line 20 of file TGLManipSet.h.

Public Types

enum  EManip { kTrans , kScale , kRotate , kEndType }
enum  ERole { kUser , kViewer , kAnnotation , kAll }
enum  EState { kInvisible = 1 , kDisabled = 2 , kActive = 4 , kAllVisible = kDisabled | kActive }

Public Member Functions

 TGLManipSet ()
 ~TGLManipSet () override
 Destructor.
TGLManipGetCurrentManip () const
Bool_t GetDrawBBox () const
Int_t GetManipType () const
TGLPhysicalShapeGetPShape () const
ERole GetRole () const
EState GetState () const
Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event) override
 Handle overlay event.
TClassIsA () const override
Bool_t MouseEnter (TGLOvlSelectRecord &selRec) override
 Mouse has entered this element.
void MouseLeave () override
 Mouse has left the element.
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
virtual void PShapeModified ()
 This is called from physical shape when it is modified.
void Render (TGLRnrCtx &rnrCtx) override
 Render the manipulator and bounding-box.
void SetBinaryState (Bool_t s)
void SetDrawBBox (Bool_t bb)
void SetManipType (Int_t type)
 Set manipulator type, range checked.
void SetPShape (TGLPhysicalShape *shape) override
 Set phys-shape, override of virtual from TGLPShapeRef.
void SetRole (ERole r)
void SetState (EState s)
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 fDrawBBox
 ! also draw bounding-box around physical
TGLManipfManip [3]
 ! manipulator store
TGLPhysicalShapefPShape
ERole fRole
EState fState
EManip fType
 ! current manipulator

Private Member Functions

 TGLManipSet (const TGLManipSet &)=delete
TGLManipSetoperator= (const TGLManipSet &)=delete

Private Attributes

TGLPShapeReffNextPSRef

#include <TGLManipSet.h>

Inheritance diagram for TGLManipSet:
TGLOverlayElement TGLPShapeRef

Member Enumeration Documentation

◆ EManip

Enumerator
kTrans 
kScale 
kRotate 
kEndType 

Definition at line 24 of file TGLManipSet.h.

◆ 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

◆ TGLManipSet() [1/2]

TGLManipSet::TGLManipSet ( const TGLManipSet & )
privatedelete

◆ TGLManipSet() [2/2]

TGLManipSet::TGLManipSet ( )

Definition at line 37 of file TGLManipSet.cxx.

◆ ~TGLManipSet()

TGLManipSet::~TGLManipSet ( )
override

Destructor.

Definition at line 52 of file TGLManipSet.cxx.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 66 of file TGLManipSet.h.

◆ DeclFileName()

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

Definition at line 66 of file TGLManipSet.h.

◆ GetCurrentManip()

TGLManip * TGLManipSet::GetCurrentManip ( ) const
inline

Definition at line 59 of file TGLManipSet.h.

◆ GetDrawBBox()

Bool_t TGLManipSet::GetDrawBBox ( ) const
inline

Definition at line 63 of file TGLManipSet.h.

◆ GetManipType()

Int_t TGLManipSet::GetManipType ( ) const
inline

Definition at line 61 of file TGLManipSet.h.

◆ GetPShape()

TGLPhysicalShape * TGLPShapeRef::GetPShape ( ) const
inlineinherited

Definition at line 36 of file TGLPShapeRef.h.

◆ GetRole()

ERole TGLOverlayElement::GetRole ( ) const
inlineinherited

Definition at line 53 of file TGLOverlay.h.

◆ GetState()

EState TGLOverlayElement::GetState ( ) const
inlineinherited

Definition at line 56 of file TGLOverlay.h.

◆ Handle()

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

Handle overlay event.

Return TRUE if event was handled.

Reimplemented from TGLOverlayElement.

Definition at line 85 of file TGLManipSet.cxx.

◆ IsA()

TClass * TGLManipSet::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TGLPShapeRef.

Definition at line 66 of file TGLManipSet.h.

◆ MouseEnter()

Bool_t TGLManipSet::MouseEnter ( TGLOvlSelectRecord & selRec)
overridevirtual

Mouse has entered this element.

Always accept.

Reimplemented from TGLOverlayElement.

Definition at line 73 of file TGLManipSet.cxx.

◆ MouseLeave()

void TGLManipSet::MouseLeave ( )
overridevirtual

Mouse has left the element.

Reimplemented from TGLOverlayElement.

Definition at line 140 of file TGLManipSet.cxx.

◆ MouseStillInside()

Bool_t TGLOverlayElement::MouseStillInside ( TGLOvlSelectRecord & selRec)
virtualinherited

Reimplemented in TGLClipSet.

Definition at line 29 of file TGLOverlay.cxx.

◆ operator=()

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

◆ ProjectionMatrixPushIdentity()

void TGLOverlayElement::ProjectionMatrixPushIdentity ( )
protectedinherited

◆ PShapeModified()

void TGLPShapeRef::PShapeModified ( )
virtualinherited

This is called from physical shape when it is modified.

Sub-classes can override and take appropriate action.

Reimplemented in TGLPShapeObjEditor.

Definition at line 70 of file TGLPShapeRef.cxx.

◆ Render()

void TGLManipSet::Render ( TGLRnrCtx & rnrCtx)
overridevirtual

Render the manipulator and bounding-box.

Implements TGLOverlayElement.

Definition at line 150 of file TGLManipSet.cxx.

◆ SetBinaryState()

void TGLOverlayElement::SetBinaryState ( Bool_t s)
inlineinherited

Definition at line 59 of file TGLOverlay.h.

◆ SetDrawBBox()

void TGLManipSet::SetDrawBBox ( Bool_t bb)
inline

Definition at line 64 of file TGLManipSet.h.

◆ SetManipType()

void TGLManipSet::SetManipType ( Int_t type)

Set manipulator type, range checked.

Definition at line 179 of file TGLManipSet.cxx.

◆ SetPShape()

void TGLManipSet::SetPShape ( TGLPhysicalShape * shape)
overridevirtual

Set phys-shape, override of virtual from TGLPShapeRef.

Forward to all managed manipulators.

Reimplemented from TGLPShapeRef.

Definition at line 62 of file TGLManipSet.cxx.

◆ SetRole()

void TGLOverlayElement::SetRole ( ERole r)
inlineinherited

Definition at line 54 of file TGLOverlay.h.

◆ SetState()

void TGLOverlayElement::SetState ( EState s)
inlineinherited

Definition at line 57 of file TGLOverlay.h.

◆ Streamer()

void TGLManipSet::Streamer ( TBuffer & )
overridevirtual

Reimplemented from TGLPShapeRef.

◆ StreamerNVirtual()

void TGLManipSet::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 66 of file TGLManipSet.h.

Member Data Documentation

◆ fDrawBBox

Bool_t TGLManipSet::fDrawBBox
protected

! also draw bounding-box around physical

Definition at line 44 of file TGLManipSet.h.

◆ fManip

TGLManip* TGLManipSet::fManip[3]
protected

! manipulator store

Definition at line 41 of file TGLManipSet.h.

◆ fNextPSRef

TGLPShapeRef* TGLPShapeRef::fNextPSRef
privateinherited

Definition at line 26 of file TGLPShapeRef.h.

◆ fPShape

TGLPhysicalShape* TGLPShapeRef::fPShape
protectedinherited

Definition at line 29 of file TGLPShapeRef.h.

◆ fRole

ERole TGLOverlayElement::fRole
protectedinherited

Definition at line 35 of file TGLOverlay.h.

◆ fState

EState TGLOverlayElement::fState
protectedinherited

Definition at line 36 of file TGLOverlay.h.

◆ fType

EManip TGLManipSet::fType
protected

! current manipulator

Definition at line 42 of file TGLManipSet.h.


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