ROOT logo
ROOT » GRAF3D » GL » TGLAnnotation

class TGLAnnotation: public TGLOverlayElement



 GL-overaly annotation.


Function Members (Methods)

Data Members

private:
enum TGLOverlayElement::ERole { kUser
kViewer
kAnnotation
kAll
};
protected:
Bool_tfActiveactive item identifier
Float_tfAlphalabel transparency
Pixel_tfBackColorbackground color
Pixel_tfBackHighColorbackground active color
Bool_tfInDrag!
TGLFontfLabelFontfont used to render labels
Float_tfLabelFontSizerelative font size
TGMainFrame*fMainFrame
TGLFontfMenuFontfont used to render menu buttons
Int_tfMouseX
Int_tfMouseY! last mouse position
TGLViewer*fParent
TGLVector3fPointerpicked location in 3D space
Float_tfPosXx position [0, 1]
Float_tfPosYy position [0, 1]
TGLOverlayElement::ERoleTGLOverlayElement::fRole
TStringfTextannotation text
Pixel_tfTextColortext color
TGTextEdit*fTextEdit
Pixel_tfTextHighColortext active color

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLAnnotation(TGLViewerBase* parent, const char* text, Float_t posx, Float_t posy, TGLVector3 ref)
 Constructor.
~TGLAnnotation()
 Destructor.
Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
 Handle overlay event.
 Return TRUE if event was handled.
Bool_t MouseEnter(TGLOvlSelectRecord& selRec)
 Mouse has entered overlay area.
void MouseLeave()
 Mouse has left overlay area.
void Render(TGLRnrCtx& rnrCtx)
 Render the annotation.
void MakeEditor()
 Show the annotation editor.
void CloseEditor()
 Close the annotation editor.
void UpdateText()
 Modify the annotation text from the text-edit widget.
TGLAnnotation(const TGLAnnotation& )
TGLAnnotation& operator=(const TGLAnnotation& )