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; }
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
void SetDisplayText(const char *text1, const char *text2="")
Set small display text (two lines).
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)
void SetOdoValue(Int_t val)
Set actual value of odo meter.
void Emit(const char *signal)
Acitvate signal without args.
void SetThresholdColors(EGlowColor col1, EGlowColor col2, EGlowColor col3)
virtual TGDimension GetDefaultSize() const
Return default dimension of the widget.
const TGPicture * GetPicture() const
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).
Float_t GetScaleMin() const
virtual ~TGSpeedo()
TGSpeedo widget Destructor.
void Build()
Build TGSpeedo widget.
Float_t GetPeakVal() const
void SetMeanValue(Float_t mean)
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
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)
TImage * GetImage() const
Float_t GetScaleMax() const
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event.
virtual void DoRedraw()
Redraw speedo widget.