ROOT  6.06/09
Reference Guide
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
TGLOverlayButton Class Reference

GL-overlay button.

Definition at line 30 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. More...
 
virtual ~TGLOverlayButton ()
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered overlay area. More...
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
virtual void MouseLeave ()
 Mouse has left overlay area. More...
 
virtual void Render (TGLRnrCtx &rnrCtx)
 Render the overlay elements. More...
 
virtual void ResetState ()
 
virtual const char * GetText () const
 
virtual Pixel_t GetBackColor () const
 
virtual Pixel_t GetTextColor () const
 
virtual void SetText (const char *text)
 
virtual void SetPosition (Float_t x, Float_t y)
 
virtual void SetSize (Float_t w, Float_t h)
 
virtual void SetAlphaValues (Float_t norm, Float_t high)
 
virtual void SetBackColor (Pixel_t col)
 
virtual void SetTextColor (Pixel_t col)
 
virtual void Clicked (TGLViewerBase *viewer)
 Emits "Clicked(TGLViewerBase*)" signal. More...
 
 ClassDef (TGLOverlayButton, 0)
 
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
ERole GetRole () const
 
void SetRole (ERole r)
 
EState GetState () const
 
void SetState (EState s)
 
void SetBinaryState (Bool_t s)
 
- Public Member Functions inherited from TQObject
 TQObject ()
 TQObject Constructor. More...
 
virtual ~TQObject ()
 TQObject Destructor. More...
 
TListGetListOfClassSignals () const
 Returns pointer to list of signals of this class. More...
 
TListGetListOfSignals () const
 
TListGetListOfConnections () const
 
Bool_t AreSignalsBlocked () const
 
Bool_t BlockSignals (Bool_t b)
 
void CollectClassSignalLists (TList &list, TClass *cls)
 Collect class signal lists from class cls and all its base-classes. More...
 
template<typename... T>
void EmitVA (const char *signal_name, Int_t, const T &...params)
 
void EmitVA (const char *signal, Int_t nargs, va_list va)=delete
 
void Emit (const char *signal)
 Acitvate signal without args. More...
 
void Emit (const char *signal, Long_t *paramArr)
 Emit a signal with a varying number of arguments, paramArr is an array of the parameters. More...
 
void Emit (const char *signal, const char *params)
 Activate signal with parameter text string. More...
 
void Emit (const char *signal, Double_t param)
 Activate signal with single parameter. More...
 
void Emit (const char *signal, Long_t param)
 Activate signal with single parameter. More...
 
void Emit (const char *signal, Long64_t param)
 Activate signal with single parameter. More...
 
void Emit (const char *signal, Bool_t param)
 
void Emit (const char *signal, Char_t param)
 
void Emit (const char *signal, UChar_t param)
 
void Emit (const char *signal, Short_t param)
 
void Emit (const char *signal, UShort_t param)
 
void Emit (const char *signal, Int_t param)
 
void Emit (const char *signal, UInt_t param)
 
void Emit (const char *signal, ULong_t param)
 
void Emit (const char *signal, ULong64_t param)
 
void Emit (const char *signal, Float_t param)
 
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. More...
 
Bool_t Disconnect (const char *signal=0, void *receiver=0, const char *slot=0)
 Disconnects signal of this object from slot of receiver. More...
 
virtual void HighPriority (const char *signal_name, const char *slot_name=0)
 
virtual void LowPriority (const char *signal_name, const char *slot_name=0)
 
virtual Bool_t HasConnection (const char *signal_name) const
 Return true if there is any object connected to this signal. More...
 
virtual Int_t NumberOfSignals () const
 Return number of signals for this object. More...
 
virtual Int_t NumberOfConnections () const
 Return number of connections for this object. More...
 
virtual void Connected (const char *)
 
virtual void Disconnected (const char *)
 
virtual void Destroyed ()
 
virtual void ChangedBy (const char *method)
 
virtual void Message (const char *msg)
 

Protected Attributes

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

Private Member Functions

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

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 }
 
- Static Public Member Functions inherited from TQObject
static Bool_t Connect (TQObject *sender, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver. More...
 
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. More...
 
static Bool_t Disconnect (TQObject *sender, const char *signal=0, void *receiver=0, const char *slot=0)
 Disconnects signal in object sender from slot_method in object receiver. More...
 
static Bool_t Disconnect (const char *class_name, const char *signal, void *receiver=0, const char *slot=0)
 Disconnects "class signal". More...
 
static Bool_t AreAllSignalsBlocked ()
 Returns true if all signals are blocked. More...
 
static Bool_t BlockAllSignals (Bool_t b)
 Block or unblock all signals. Returns the previous block status. More...
 
- Protected Member Functions inherited from TGLOverlayElement
void ProjectionMatrixPushIdentity ()
 
- Protected Member Functions inherited from TQObject
virtual voidGetSender ()
 
virtual const char * GetSenderClassName () const
 
- Static Protected Member Functions inherited from TQObject
static Bool_t ConnectToClass (TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver. More...
 
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. More...
 
static Int_t CheckConnectArgs (TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot)
 Checking of consitency of sender/receiver methods/arguments. More...
 
static TString CompressName (const char *method_name)
 
- Static Protected Attributes inherited from TQObject
static Bool_t fgAllSignalsBlocked = kFALSE
 flag used for suppression of signals More...
 

#include <TGLOverlayButton.h>

+ Inheritance diagram for TGLOverlayButton:
+ Collaboration diagram for TGLOverlayButton:

Constructor & Destructor Documentation

TGLOverlayButton::TGLOverlayButton ( const TGLOverlayButton )
private
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.

virtual TGLOverlayButton::~TGLOverlayButton ( )
inlinevirtual

Definition at line 57 of file TGLOverlayButton.h.

Member Function Documentation

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

Referenced by Handle().

virtual Pixel_t TGLOverlayButton::GetBackColor ( ) const
inlinevirtual

Definition at line 67 of file TGLOverlayButton.h.

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

Definition at line 66 of file TGLOverlayButton.h.

virtual Pixel_t TGLOverlayButton::GetTextColor ( ) const
inlinevirtual

Definition at line 68 of file TGLOverlayButton.h.

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

Handle overlay event.

Return TRUE if event was handled.

Reimplemented from TGLOverlayElement.

Definition at line 155 of file TGLOverlayButton.cxx.

Bool_t TGLOverlayButton::MouseEnter ( TGLOvlSelectRecord selRec)
virtual

Mouse has entered overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 183 of file TGLOverlayButton.cxx.

void TGLOverlayButton::MouseLeave ( )
virtual

Mouse has left overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 192 of file TGLOverlayButton.cxx.

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

Render the overlay elements.

Implements TGLOverlayElement.

Definition at line 54 of file TGLOverlayButton.cxx.

virtual void TGLOverlayButton::ResetState ( )
inlinevirtual

Definition at line 64 of file TGLOverlayButton.h.

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

Definition at line 72 of file TGLOverlayButton.h.

virtual void TGLOverlayButton::SetBackColor ( Pixel_t  col)
inlinevirtual

Definition at line 73 of file TGLOverlayButton.h.

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

Definition at line 70 of file TGLOverlayButton.h.

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

Definition at line 71 of file TGLOverlayButton.h.

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

Definition at line 69 of file TGLOverlayButton.h.

virtual void TGLOverlayButton::SetTextColor ( Pixel_t  col)
inlinevirtual

Definition at line 74 of file TGLOverlayButton.h.

Member Data Documentation

Int_t TGLOverlayButton::fActiveID
protected

Definition at line 41 of file TGLOverlayButton.h.

Referenced by MouseEnter(), MouseLeave(), and Render().

Pixel_t TGLOverlayButton::fBackColor
protected

Definition at line 42 of file TGLOverlayButton.h.

Referenced by GetBackColor(), and Render().

TGLFont TGLOverlayButton::fFont
mutableprotected

Definition at line 52 of file TGLOverlayButton.h.

Referenced by Render().

Float_t TGLOverlayButton::fHeight
protected

Definition at line 50 of file TGLOverlayButton.h.

Referenced by Render().

Float_t TGLOverlayButton::fHighAlpha
protected

Definition at line 45 of file TGLOverlayButton.h.

Referenced by Render().

Float_t TGLOverlayButton::fNormAlpha
protected

Definition at line 44 of file TGLOverlayButton.h.

Referenced by Render().

Float_t TGLOverlayButton::fPosX
protected

Definition at line 47 of file TGLOverlayButton.h.

Referenced by Render().

Float_t TGLOverlayButton::fPosY
protected

Definition at line 48 of file TGLOverlayButton.h.

Referenced by Render().

TString TGLOverlayButton::fText
protected

Definition at line 40 of file TGLOverlayButton.h.

Referenced by Render().

Pixel_t TGLOverlayButton::fTextColor
protected

Definition at line 43 of file TGLOverlayButton.h.

Referenced by GetTextColor(), and Render().

Float_t TGLOverlayButton::fWidth
protected

Definition at line 49 of file TGLOverlayButton.h.

Referenced by Render().


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