38 #ifndef ROOT_TGPicture 81 const char *lbl1 =
"",
const char *lbl2 =
"",
82 const char *dsp1 =
"",
const char *dsp2 =
"",
int id = -1);
102 void SetLabelText(
const char *text1,
const char *text2 =
"");
105 { fThreshold[0] =
th1; fThreshold[1] =
th2; fThreshold[2] =
th3; }
107 { fThresholdColor[0] = col1; fThresholdColor[1] = col2; fThresholdColor[2] = col3; }
const TGPicture * GetPicture() const
void SetDisplayText(const char *text1, const char *text2="")
Set small display text (two lines).
Float_t GetScaleMax() const
void DrawNeedle()
Draw needle in speedo widget.
void StepScale(Float_t step)
Increment/decrement scale (needle position) of "step" value.
Bool_t IsThresholdActive()
void DrawText()
Draw text in speedo widget.
void Translate(Float_t val, Float_t angle, Int_t *x, Int_t *y)
Translate distance from center and angle to xy coordinates.
An abstract interface to image processing library.
void SetMinMaxScale(Float_t min, Float_t max)
Set min and max scale values.
#define ClassDef(name, id)
TGSpeedo(const TGWindow *p=0, int id=-1)
TGSpeedo widget constructor.
virtual TGDimension GetDefaultSize() const
Return default dimension of the widget.
void SetOdoValue(Int_t val)
Set actual value of odo meter.
Float_t GetPeakVal() const
void Emit(const char *signal)
Acitvate signal without args.
void SetThresholdColors(EGlowColor col1, EGlowColor col2, EGlowColor col3)
void SetScaleValue(Float_t val)
Set actual scale (needle position) value.
void Glow(EGlowColor col=kGreen)
Make speedo glowing.
void SetLabelText(const char *text1, const char *text2="")
Set main label text (two lines).
virtual ~TGSpeedo()
TGSpeedo widget Destructor.
TImage * GetImage() const
void Build()
Build TGSpeedo widget.
Float_t GetScaleMin() const
void SetMeanValue(Float_t mean)
EGlowColor fThresholdColor[3]
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
void SetThresholds(Float_t th1=0.0, Float_t th2=0.0, Float_t th3=0.0)
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event.
virtual void DoRedraw()
Redraw speedo widget.