ROOT logo
ROOT » GRAF3D » GL » TGLAnnotation

class TGLAnnotation: public TGLOverlayElement



 GL-overaly annotation.


Function Members (Methods)

Data Members

public:
enum EDrag { kMove
kResize
kNone
};
enum ENameStack { kMoveID
kEditID
kDeleteID
kResizeID
};
enum TGLOverlayElement::ERole { kUser
kViewer
kAnnotation
kAll
};
enum TGLOverlayElement::EState { kInvisible
kDisabled
kActive
kAllVisible
};
protected:
Bool_tfActiveactive item identifier
Bool_tfAllowCloseallow closing via 'X' button
Color_tfBackColorbackground color
TGLAnnotation::EDragfDrag!
Float_tfDrawH! width and height when drawing
Bool_tfDrawRefLinedraw 3D refrence line
Float_tfDrawW
TGLFontfFontfont used to render labels
Float_tfHeight
TGMainFrame*fMainFrameeditors
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
TGLOverlayElement::EStateTGLOverlayElement::fState
TStringfTextannotation text
TGLFont::ETextAlignH_efTextAlign
Color_tfTextColortext color
TGTextEdit*fTextEditeditors
Float_tfTextSizerelative font size
Float_tfTextSizeDrag! text-size at start of drag
Char_tfTransparencytransparency of background
Bool_tfUseColorSetuse color set from rnrCtx
Float_tfWidth
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.
Char_t GetLineTransparency() const
 Returns transparecy of annotation outline.
 If annotation is selected enforce visiblity of outline.
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 SetText(const TString& x)
{ fText = x; }
const TString& GetText() const
{ return fText; }
void SetTransparency(Char_t x)
{ fTransparency = 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; }
void SetAllowClose(Bool_t x)
{ fAllowClose = x; }
Bool_t GetAllowClose() const
{ return fAllowClose; }
TGLFont::ETextAlignH_e GetTextAlign() const
{ return fTextAlign; }
void SetTextAlign(TGLFont::ETextAlignH_e a)
{ fTextAlign = a; }