GL-overlay annotation.
Definition at line 25 of file TGLAnnotation.h.
Public Types | |
| enum | ERole { kUser , kViewer , kAnnotation , kAll } |
| enum | EState { kInvisible = 1 , kDisabled = 2 , kActive = 4 , kAllVisible = kDisabled | kActive } |
Public Member Functions | |
| TGLAnnotation (TGLViewerBase *parent, const char *text, Float_t posx, Float_t posy) | |
| TGLAnnotation (TGLViewerBase *parent, const char *text, Float_t posx, Float_t posy, TGLVector3 ref) | |
| ~TGLAnnotation () override | |
| Destructor. | |
| void | CloseEditor () |
| Close the annotation editor. | |
| Bool_t | GetAllowClose () const |
| Color_t | GetBackColor () const |
| ERole | GetRole () const |
| EState | GetState () const |
| const TString & | GetText () const |
| TGLFont::ETextAlignH_e | GetTextAlign () const |
| Color_t | GetTextColor () const |
| Float_t | GetTextSize () const |
| Char_t | GetTransparency () const |
| Bool_t | GetUseColorSet () const |
| Bool_t | Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event) override |
| Handle overlay event. | |
| TClass * | IsA () const override |
| Bool_t | MouseEnter (TGLOvlSelectRecord &selRec) override |
| Mouse has entered overlay area. | |
| void | MouseLeave () override |
| Mouse has left overlay area. | |
| virtual Bool_t | MouseStillInside (TGLOvlSelectRecord &selRec) |
| void | Render (TGLRnrCtx &rnrCtx) override |
| Render the annotation. | |
| void | SetAllowClose (Bool_t x) |
| void | SetBackColor (Color_t x) |
| void | SetBinaryState (Bool_t s) |
| void | SetRole (ERole r) |
| void | SetState (EState s) |
| void | SetText (const TString &x) |
| void | SetTextAlign (TGLFont::ETextAlignH_e a) |
| void | SetTextColor (Color_t x) |
| void | SetTextSize (Float_t x) |
| void | SetTransparency (Char_t x) |
| void | SetUseColorSet (Bool_t x) |
| void | Streamer (TBuffer &) override |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
| void | UpdateText () |
| Modify the annotation text from the text-edit widget. | |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
Protected Types | |
| enum | EDrag { kMove , kResize , kNone } |
| enum | ENameStack { kMoveID , kEditID , kDeleteID , kResizeID } |
Protected Member Functions | |
| Char_t | GetLineTransparency () const |
| Returns transparency of annotation outline. | |
| void | MakeEditor () |
| Show the annotation editor. | |
| void | ProjectionMatrixPushIdentity () |
Protected Attributes | |
| Bool_t | fActive |
| Bool_t | fAllowClose |
| Color_t | fBackColor |
| EDrag | fDrag |
| ! | |
| Float_t | fDrawH |
| ! width and height when drawing | |
| Bool_t | fDrawRefLine |
| Float_t | fDrawW |
| TGLFont | fFont |
| Float_t | fHeight |
| TGMainFrame * | fMainFrame |
| TGLFont | fMenuFont |
| Int_t | fMouseX |
| Int_t | fMouseY |
| ! last mouse position | |
| TGLViewer * | fParent |
| TGLVector3 | fPointer |
| Float_t | fPosX |
| Float_t | fPosY |
| ERole | fRole |
| EState | fState |
| TString | fText |
| TGLFont::ETextAlignH_e | fTextAlign |
| Color_t | fTextColor |
| TGTextEdit * | fTextEdit |
| Float_t | fTextSize |
| Float_t | fTextSizeDrag |
| ! text-size at start of drag | |
| Char_t | fTransparency |
| Bool_t | fUseColorSet |
| Float_t | fWidth |
Static Protected Attributes | |
| static Color_t | fgBackColor = kAzure + 10 |
| static Color_t | fgTextColor = kOrange |
Private Member Functions | |
| TGLAnnotation (const TGLAnnotation &)=delete | |
| TGLAnnotation & | operator= (const TGLAnnotation &)=delete |
#include <TGLAnnotation.h>
|
protected |
| Enumerator | |
|---|---|
| kMove | |
| kResize | |
| kNone | |
Definition at line 32 of file TGLAnnotation.h.
|
protected |
| Enumerator | |
|---|---|
| kMoveID | |
| kEditID | |
| kDeleteID | |
| kResizeID | |
Definition at line 52 of file TGLAnnotation.h.
|
inherited |
| Enumerator | |
|---|---|
| kUser | |
| kViewer | |
| kAnnotation | |
| kAll | |
Definition at line 25 of file TGLOverlay.h.
|
inherited |
| Enumerator | |
|---|---|
| kInvisible | |
| kDisabled | |
| kActive | |
| kAllVisible | |
Definition at line 27 of file TGLOverlay.h.
|
privatedelete |
| TGLAnnotation::TGLAnnotation | ( | TGLViewerBase * | parent, |
| const char * | text, | ||
| Float_t | posx, | ||
| Float_t | posy ) |
Definition at line 42 of file TGLAnnotation.cxx.
| TGLAnnotation::TGLAnnotation | ( | TGLViewerBase * | parent, |
| const char * | text, | ||
| Float_t | posx, | ||
| Float_t | posy, | ||
| TGLVector3 | ref ) |
Definition at line 73 of file TGLAnnotation.cxx.
|
override |
Destructor.
Definition at line 105 of file TGLAnnotation.cxx.
|
static |
|
static |
|
inlinestaticconstexpr |
Definition at line 132 of file TGLAnnotation.h.
| void TGLAnnotation::CloseEditor | ( | ) |
Close the annotation editor.
Definition at line 531 of file TGLAnnotation.cxx.
|
inlinestatic |
Definition at line 132 of file TGLAnnotation.h.
|
inline |
Definition at line 116 of file TGLAnnotation.h.
|
inline |
Definition at line 107 of file TGLAnnotation.h.
|
protected |
Returns transparency of annotation outline.
If annotation is selected enforce visibility of outline.
Definition at line 474 of file TGLAnnotation.cxx.
|
inlineinherited |
Definition at line 53 of file TGLOverlay.h.
|
inlineinherited |
Definition at line 56 of file TGLOverlay.h.
|
inline |
Definition at line 98 of file TGLAnnotation.h.
|
inline |
Definition at line 118 of file TGLAnnotation.h.
|
inline |
Definition at line 110 of file TGLAnnotation.h.
|
inline |
Definition at line 113 of file TGLAnnotation.h.
|
inline |
Definition at line 101 of file TGLAnnotation.h.
|
inline |
Definition at line 104 of file TGLAnnotation.h.
|
overridevirtual |
Handle overlay event.
Return TRUE if event was handled.
Reimplemented from TGLOverlayElement.
Definition at line 115 of file TGLAnnotation.cxx.
|
inlineoverride |
Definition at line 132 of file TGLAnnotation.h.
|
protected |
Show the annotation editor.
Definition at line 485 of file TGLAnnotation.cxx.
|
overridevirtual |
Mouse has entered overlay area.
Reimplemented from TGLOverlayElement.
Definition at line 192 of file TGLAnnotation.cxx.
|
overridevirtual |
Mouse has left overlay area.
Reimplemented from TGLOverlayElement.
Definition at line 201 of file TGLAnnotation.cxx.
|
virtualinherited |
Reimplemented in TGLClipSet.
Definition at line 29 of file TGLOverlay.cxx.
|
privatedelete |
|
protectedinherited |
|
overridevirtual |
Render the annotation.
Implements TGLOverlayElement.
Definition at line 209 of file TGLAnnotation.cxx.
|
inline |
Definition at line 115 of file TGLAnnotation.h.
|
inline |
Definition at line 106 of file TGLAnnotation.h.
|
inlineinherited |
Definition at line 59 of file TGLOverlay.h.
|
inlineinherited |
Definition at line 54 of file TGLOverlay.h.
|
inlineinherited |
Definition at line 57 of file TGLOverlay.h.
|
inline |
Definition at line 97 of file TGLAnnotation.h.
|
inline |
Definition at line 119 of file TGLAnnotation.h.
|
inline |
Definition at line 109 of file TGLAnnotation.h.
|
inline |
Definition at line 112 of file TGLAnnotation.h.
|
inline |
Definition at line 100 of file TGLAnnotation.h.
|
inline |
Definition at line 103 of file TGLAnnotation.h.
|
override |
|
inline |
Definition at line 132 of file TGLAnnotation.h.
| void TGLAnnotation::UpdateText | ( | ) |
Modify the annotation text from the text-edit widget.
Definition at line 539 of file TGLAnnotation.cxx.
|
protected |
Definition at line 68 of file TGLAnnotation.h.
|
protected |
Definition at line 90 of file TGLAnnotation.h.
|
protected |
Definition at line 84 of file TGLAnnotation.h.
|
protected |
!
Definition at line 63 of file TGLAnnotation.h.
|
protected |
! width and height when drawing
Definition at line 64 of file TGLAnnotation.h.
|
protected |
Definition at line 88 of file TGLAnnotation.h.
|
protected |
Definition at line 64 of file TGLAnnotation.h.
|
protected |
Definition at line 80 of file TGLAnnotation.h.
Definition at line 73 of file TGLAnnotation.h.
Definition at line 74 of file TGLAnnotation.h.
|
protected |
Definition at line 60 of file TGLAnnotation.h.
|
protected |
Definition at line 70 of file TGLAnnotation.h.
|
protected |
Definition at line 81 of file TGLAnnotation.h.
|
protected |
Definition at line 62 of file TGLAnnotation.h.
|
protected |
! last mouse position
Definition at line 62 of file TGLAnnotation.h.
|
protected |
Definition at line 76 of file TGLAnnotation.h.
|
protected |
Definition at line 67 of file TGLAnnotation.h.
|
protected |
Definition at line 57 of file TGLAnnotation.h.
|
protected |
Definition at line 58 of file TGLAnnotation.h.
|
protectedinherited |
Definition at line 35 of file TGLOverlay.h.
|
protectedinherited |
Definition at line 36 of file TGLOverlay.h.
|
protected |
Definition at line 78 of file TGLAnnotation.h.
|
protected |
Definition at line 82 of file TGLAnnotation.h.
|
protected |
Definition at line 85 of file TGLAnnotation.h.
|
protected |
Definition at line 71 of file TGLAnnotation.h.
|
protected |
Definition at line 79 of file TGLAnnotation.h.
|
protected |
! text-size at start of drag
Definition at line 65 of file TGLAnnotation.h.
|
protected |
Definition at line 86 of file TGLAnnotation.h.
|
protected |
Definition at line 89 of file TGLAnnotation.h.
|
protected |
Definition at line 59 of file TGLAnnotation.h.