ROOT » GRAF3D » GL » TGLAnnotation

class TGLAnnotation: public TGLOverlayElement



 GL-overaly annotation.


Function Members (Methods)

public:
virtual~TGLAnnotation()
static TClass*Class()
voidCloseEditor()
Bool_tGetAllowClose() const
Color_tGetBackColor() const
TGLOverlayElement::ERoleTGLOverlayElement::GetRole() const
TGLOverlayElement::EStateTGLOverlayElement::GetState() const
const TString&GetText() 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)
voidSetAllowClose(Bool_t x)
voidSetBackColor(Color_t x)
voidTGLOverlayElement::SetBinaryState(Bool_t s)
voidTGLOverlayElement::SetRole(TGLOverlayElement::ERole r)
voidTGLOverlayElement::SetState(TGLOverlayElement::EState s)
voidSetText(const TString& x)
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) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
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)
voidUpdateText()

Data Members

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! width and height when drawing
TGLFontfFontfont used to render labels
Float_tfHeight
TGMainFrame*fMainFrameeditors
TGLFontfMenuFontfont used to render menu buttons
Int_tfMouseX! last mouse position
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
static TGLAnnotation::ENameStackkDeleteID
static TGLAnnotation::ENameStackkEditID
static TGLAnnotation::EDragkMove
static TGLAnnotation::ENameStackkMoveID
static TGLAnnotation::EDragkNone
static TGLAnnotation::EDragkResize
static TGLAnnotation::ENameStackkResizeID

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; }