ROOT logo
ROOT » GRAF3D » GL » TGLAnnotation

class TGLAnnotation: public TGLOverlayElement



 GL-overaly annotation.


Function Members (Methods)

public:
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)
virtual~TGLAnnotation()
static TClass*Class()
voidCloseEditor()
Color_tGetBackColor() const
TGLOverlayElement::ERoleTGLOverlayElement::GetRole() const
TGLFont::ETextAlignH_eGetTextAlign() const
Color_tGetTextColor() const
Float_tGetTextSize() const
Char_tGetTransparency() const
Bool_tGetUseColorSet() const
virtual Bool_tHandle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
virtual TClass*IsA() const
virtual Bool_tMouseEnter(TGLOvlSelectRecord& selRec)
virtual voidMouseLeave()
virtual Bool_tTGLOverlayElement::MouseStillInside(TGLOvlSelectRecord& selRec)
virtual voidRender(TGLRnrCtx& rnrCtx)
voidSetBackColor(Color_t x)
voidTGLOverlayElement::SetRole(TGLOverlayElement::ERole r)
voidSetTextAlign(TGLFont::ETextAlignH_e a)
voidSetTextColor(Color_t x)
voidSetTextSize(Float_t x)
voidSetTransparency(Char_t x)
voidSetUseColorSet(Bool_t x)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidUpdateText()

Data Members

public:
enum TGLOverlayElement::ERole { kUser
kViewer
kAnnotation
kAll
};
protected:
Color_tfBackColorbackground color
Bool_tfDrawRefLinedraw 3D refrence line
TGLFontfFontfont used to render labels
TGLFontfMenuFontfont used to render menu buttons
TGLViewer*fParent
TGLOverlayElement::ERoleTGLOverlayElement::fRole
TStringfTextannotation text
TGLFont::ETextAlignH_efTextAlign
Color_tfTextColortext color
Float_tfTextSizerelative font size
Char_tfTransparencytransparency of background
Bool_tfUseColorSetuse color set from rnrCtx
private:
Bool_tfActiveactive item identifier
Float_tfDrawH! width/height of drawn annotation
Float_tfDrawW
Float_tfDrawY! y-position of annotation box
Bool_tfInDrag!
TGMainFrame*fMainFrameeditors
Int_tfMouseX
Int_tfMouseY! last mouse position
TGLVector3fPointerpicked location in 3D space
Float_tfPosXx position [0, 1]
Float_tfPosYy position [0, 1]
TGTextEdit*fTextEditeditors
static Color_tfgBackColor
static Color_tfgTextColor

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLAnnotation(TGLViewerBase* parent, const char* text, Float_t posx, Float_t posy)
 Constructor.
 Create annotation as plain text
TGLAnnotation(TGLViewerBase* parent, const char* text, Float_t posx, Float_t posy, TGLVector3 ref)
 Constructor.
 Create annotaton by picking an object.
~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& )
void SetTransparency(Char_t x)
Char_t GetTransparency() const
{ return fTransparency;}
void SetUseColorSet(Bool_t x)
{ fUseColorSet = x; }
Bool_t GetUseColorSet() const
{ return fUseColorSet;}
void SetBackColor(Color_t x)
{ fBackColor = x;}
Color_t GetBackColor() const
{ return fBackColor;}
void SetTextColor(Color_t x)
{ fTextColor = x; }
Color_t GetTextColor() const
{ return fTextColor;}
void SetTextSize(Float_t x)
{ fTextSize = x; }
Float_t GetTextSize() const
{ return fTextSize;}
TGLFont::ETextAlignH_e GetTextAlign() const
{ return fTextAlign; }
void SetTextAlign(TGLFont::ETextAlignH_e a)
{ fTextAlign = a; }