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

GL-overlay button.

Definition at line 22 of file TGLOverlayButton.h.

Public Member Functions

 TGLOverlayButton (TGLViewerBase *parent, const char *text, Float_t posx, Float_t posy, Float_t width, Float_t height)
 Constructor.
 
 ~TGLOverlayButton () override
 
virtual void Clicked (TGLViewerBase *viewer)
 Emits "Clicked(TGLViewerBase*)" signal.
 
virtual Pixel_t GetBackColor () const
 
virtual const char * GetText () const
 
virtual Pixel_t GetTextColor () 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 overlay area.
 
void MouseLeave () override
 Mouse has left overlay area.
 
void Render (TGLRnrCtx &rnrCtx) override
 Render the overlay elements.
 
virtual void ResetState ()
 
virtual void SetAlphaValues (Float_t norm, Float_t high)
 
virtual void SetBackColor (Pixel_t col)
 
virtual void SetPosition (Float_t x, Float_t y)
 
virtual void SetSize (Float_t w, Float_t h)
 
virtual void SetText (const char *text)
 
virtual void SetTextColor (Pixel_t col)
 
void Streamer (TBuffer &) override
 Stream an object of class TQObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
ERole GetRole () const
 
EState GetState () const
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
void SetBinaryState (Bool_t s)
 
void SetRole (ERole r)
 
void SetState (EState s)
 
- Public Member Functions inherited from TQObject
 TQObject ()
 TQObject Constructor.
 
virtual ~TQObject ()
 TQObject Destructor.
 
Bool_t AreSignalsBlocked () const
 
Bool_t BlockSignals (Bool_t b)
 
virtual void ChangedBy (const char *method)
 
void CollectClassSignalLists (TList &list, TClass *cls)
 Collect class signal lists from class cls and all its base-classes.
 
Bool_t Connect (const char *signal, const char *receiver_class, void *receiver, const char *slot)
 Non-static method is used to connect from the signal of this object to the receiver slot.
 
virtual void Connected (const char *)
 
virtual void Destroyed ()
 
Bool_t Disconnect (const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
 Disconnects signal of this object from slot of receiver.
 
virtual void Disconnected (const char *)
 
void Emit (const char *signal)
 Activate signal without args.
 
template<typename T >
void Emit (const char *signal, const T &arg)
 Activate signal with single parameter.
 
template<typename... T>
void EmitVA (const char *signal_name, Int_t, const T &... params)
 Emit a signal with a varying number of arguments.
 
TListGetListOfClassSignals () const
 Returns pointer to list of signals of this class.
 
TListGetListOfConnections () const
 
TListGetListOfSignals () const
 
virtual Bool_t HasConnection (const char *signal_name) const
 Return true if there is any object connected to this signal.
 
virtual void HighPriority (const char *signal_name, const char *slot_name=nullptr)
 
virtual void LowPriority (const char *signal_name, const char *slot_name=nullptr)
 
virtual void Message (const char *msg)
 
virtual Int_t NumberOfConnections () const
 Return number of connections for this object.
 
virtual Int_t NumberOfSignals () const
 Return number of signals for this object.
 
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 ()
 
- Static Public Member Functions inherited from TQObject
static Bool_t AreAllSignalsBlocked ()
 Returns true if all signals are blocked.
 
static Bool_t BlockAllSignals (Bool_t b)
 Block or unblock all signals. Returns the previous block status.
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static Bool_t Connect (const char *sender_class, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 This method allows to make a connection from any object of the same class to a single slot.
 
static Bool_t Connect (TQObject *sender, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver.
 
static const char * DeclFileName ()
 
static Bool_t Disconnect (const char *class_name, const char *signal, void *receiver=nullptr, const char *slot=nullptr)
 Disconnects "class signal".
 
static Bool_t Disconnect (TQObject *sender, const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
 Disconnects signal in object sender from slot_method in object receiver.
 

Protected Attributes

Int_t fActiveID
 
Pixel_t fBackColor
 
TGLFont fFont
 
Float_t fHeight
 
Float_t fHighAlpha
 
Float_t fNormAlpha
 
Float_t fPosX
 
Float_t fPosY
 
TString fText
 
Pixel_t fTextColor
 
Float_t fWidth
 
- Protected Attributes inherited from TGLOverlayElement
ERole fRole
 
EState fState
 
- Protected Attributes inherited from TQObject
TListfListOfConnections
 list of signals from this object
 
TListfListOfSignals
 
Bool_t fSignalsBlocked
 list of connections to this object
 

Private Member Functions

 TGLOverlayButton (const TGLOverlayButton &)=delete
 
TGLOverlayButtonoperator= (const TGLOverlayButton &)=delete
 

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 ()
 
- Protected Member Functions inherited from TQObject
virtual void * GetSender ()
 
virtual const char * GetSenderClassName () const
 
- Static Protected Member Functions inherited from TQObject
static Int_t CheckConnectArgs (TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot)
 Checking of consistency of sender/receiver methods/arguments.
 
static TString CompressName (const char *method_name)
 Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in the method signature.
 
static Bool_t ConnectToClass (const char *sender_class, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 This method allows to make connection from any object of the same class to the receiver object.
 
static Bool_t ConnectToClass (TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver.
 
- Static Protected Attributes inherited from TQObject
static Bool_t fgAllSignalsBlocked = kFALSE
 flag used for suppression of signals
 

#include <TGLOverlayButton.h>

Inheritance diagram for TGLOverlayButton:
[legend]

Constructor & Destructor Documentation

◆ TGLOverlayButton() [1/2]

TGLOverlayButton::TGLOverlayButton ( const TGLOverlayButton )
privatedelete

◆ TGLOverlayButton() [2/2]

TGLOverlayButton::TGLOverlayButton ( TGLViewerBase parent,
const char *  text,
Float_t  posx,
Float_t  posy,
Float_t  width,
Float_t  height 
)

Constructor.

Definition at line 33 of file TGLOverlayButton.cxx.

◆ ~TGLOverlayButton()

TGLOverlayButton::~TGLOverlayButton ( )
inlineoverride

Definition at line 49 of file TGLOverlayButton.h.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 70 of file TGLOverlayButton.h.

◆ Clicked()

void TGLOverlayButton::Clicked ( TGLViewerBase viewer)
virtual

Emits "Clicked(TGLViewerBase*)" signal.

Called when user click on the GL button.

Definition at line 142 of file TGLOverlayButton.cxx.

◆ DeclFileName()

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

Definition at line 70 of file TGLOverlayButton.h.

◆ GetBackColor()

virtual Pixel_t TGLOverlayButton::GetBackColor ( ) const
inlinevirtual

Definition at line 59 of file TGLOverlayButton.h.

◆ GetText()

virtual const char * TGLOverlayButton::GetText ( ) const
inlinevirtual

Definition at line 58 of file TGLOverlayButton.h.

◆ GetTextColor()

virtual Pixel_t TGLOverlayButton::GetTextColor ( ) const
inlinevirtual

Definition at line 60 of file TGLOverlayButton.h.

◆ Handle()

Bool_t TGLOverlayButton::Handle ( TGLRnrCtx rnrCtx,
TGLOvlSelectRecord rec,
Event_t event 
)
overridevirtual

Handle overlay event.

Return TRUE if event was handled.

Reimplemented from TGLOverlayElement.

Definition at line 155 of file TGLOverlayButton.cxx.

◆ IsA()

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

Reimplemented from TQObject.

Definition at line 70 of file TGLOverlayButton.h.

◆ MouseEnter()

Bool_t TGLOverlayButton::MouseEnter ( TGLOvlSelectRecord selRec)
overridevirtual

Mouse has entered overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 183 of file TGLOverlayButton.cxx.

◆ MouseLeave()

void TGLOverlayButton::MouseLeave ( )
overridevirtual

Mouse has left overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 192 of file TGLOverlayButton.cxx.

◆ operator=()

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

◆ Render()

void TGLOverlayButton::Render ( TGLRnrCtx rnrCtx)
overridevirtual

Render the overlay elements.

Implements TGLOverlayElement.

Definition at line 54 of file TGLOverlayButton.cxx.

◆ ResetState()

virtual void TGLOverlayButton::ResetState ( )
inlinevirtual

Definition at line 56 of file TGLOverlayButton.h.

◆ SetAlphaValues()

virtual void TGLOverlayButton::SetAlphaValues ( Float_t  norm,
Float_t  high 
)
inlinevirtual

Definition at line 64 of file TGLOverlayButton.h.

◆ SetBackColor()

virtual void TGLOverlayButton::SetBackColor ( Pixel_t  col)
inlinevirtual

Definition at line 65 of file TGLOverlayButton.h.

◆ SetPosition()

virtual void TGLOverlayButton::SetPosition ( Float_t  x,
Float_t  y 
)
inlinevirtual

Definition at line 62 of file TGLOverlayButton.h.

◆ SetSize()

virtual void TGLOverlayButton::SetSize ( Float_t  w,
Float_t  h 
)
inlinevirtual

Definition at line 63 of file TGLOverlayButton.h.

◆ SetText()

virtual void TGLOverlayButton::SetText ( const char *  text)
inlinevirtual

Definition at line 61 of file TGLOverlayButton.h.

◆ SetTextColor()

virtual void TGLOverlayButton::SetTextColor ( Pixel_t  col)
inlinevirtual

Definition at line 66 of file TGLOverlayButton.h.

◆ Streamer()

void TGLOverlayButton::Streamer ( TBuffer R__b)
overridevirtual

Stream an object of class TQObject.

Reimplemented from TQObject.

◆ StreamerNVirtual()

void TGLOverlayButton::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 70 of file TGLOverlayButton.h.

Member Data Documentation

◆ fActiveID

Int_t TGLOverlayButton::fActiveID
protected

Definition at line 33 of file TGLOverlayButton.h.

◆ fBackColor

Pixel_t TGLOverlayButton::fBackColor
protected

Definition at line 34 of file TGLOverlayButton.h.

◆ fFont

TGLFont TGLOverlayButton::fFont
mutableprotected

Definition at line 44 of file TGLOverlayButton.h.

◆ fHeight

Float_t TGLOverlayButton::fHeight
protected

Definition at line 42 of file TGLOverlayButton.h.

◆ fHighAlpha

Float_t TGLOverlayButton::fHighAlpha
protected

Definition at line 37 of file TGLOverlayButton.h.

◆ fNormAlpha

Float_t TGLOverlayButton::fNormAlpha
protected

Definition at line 36 of file TGLOverlayButton.h.

◆ fPosX

Float_t TGLOverlayButton::fPosX
protected

Definition at line 39 of file TGLOverlayButton.h.

◆ fPosY

Float_t TGLOverlayButton::fPosY
protected

Definition at line 40 of file TGLOverlayButton.h.

◆ fText

TString TGLOverlayButton::fText
protected

Definition at line 32 of file TGLOverlayButton.h.

◆ fTextColor

Pixel_t TGLOverlayButton::fTextColor
protected

Definition at line 35 of file TGLOverlayButton.h.

◆ fWidth

Float_t TGLOverlayButton::fWidth
protected

Definition at line 41 of file TGLOverlayButton.h.

Libraries for TGLOverlayButton:

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