60            const char *
lbl1 = 
"", 
const char *
lbl2 = 
"",
 
   61            const char *
dsp1 = 
"", 
const char *
dsp2 = 
"", 
int id = -1);
 
 
Handle_t FontStruct_t
Pointer to font structure.
 
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
 
int Int_t
Signed integer 4 bytes (int)
 
float Float_t
Float 4 bytes (float)
 
#define ClassDefOverride(name, id)
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
Option_t Option_t TPoint TPoint angle
 
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
 
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
 
TGClient * fClient
Connection to display server.
 
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
 
TGSpeedo is a widget looking like a speedometer, with a needle, a counter and a small odometer window...
 
const TGPicture * fBase
picture used as background
 
Int_t fBufferSize
circular buffer size
 
void SetOdoValue(Int_t val)
Set actual value of odo meter.
 
Float_t GetMean()
Compute and return the mean of the circular buffer content.
 
Bool_t HandleButton(Event_t *event) override
Handle mouse button event.
 
Float_t GetScaleMin() const
 
TString fLabel1
main label (first line)
 
void StepScale(Float_t step)
Increment/decrement scale (needle position) of "step" value.
 
EGlowColor fThresholdColor[3]
glowing threshold colors
 
void SetDisplayText(const char *text1, const char *text2="")
Set small display text (two lines).
 
TString fDisplay1
first line in the small display
 
~TGSpeedo() override
TGSpeedo widget Destructor.
 
Bool_t IsThresholdActive()
 
void Glow(EGlowColor col=kGreen)
Make speedo glowing.
 
void SetMinMaxScale(Float_t min, Float_t max)
Set min and max scale values.
 
Float_t fMeanVal
mean value mark
 
const TGPicture * GetPicture() const
 
TGSpeedo(const TGWindow *p=nullptr, int id=-1)
TGSpeedo widget constructor.
 
Int_t fCounter
small odo meter (4 digits)
 
TImage * fImage
image used as background
 
Float_t GetPeakVal() const
 
void SetBufferSize(Int_t size)
Change the circular buffer size (used for the automatic mean calculation).
 
FontStruct_t fCounterFS
font structures for text rendering
 
void DrawText()
Draw text in speedo widget.
 
void SetThresholds(Float_t th1=0.0, Float_t th2=0.0, Float_t th3=0.0)
 
void SetThresholdColors(EGlowColor col1, EGlowColor col2, EGlowColor col3)
 
TString fDisplay2
second line in the small display
 
Float_t fScaleMax
needle min and max scale
 
Float_t fPeakVal
maximum peak mark
 
Int_t fBufferCount
circular buffer count
 
TString fPicName
name of picture used as background
 
Bool_t fThresholdActive
kTRUE if glowing thresholds are active
 
void Translate(Float_t val, Float_t angle, Int_t *x, Int_t *y)
Translate distance from center and angle to xy coordinates.
 
Float_t fThreshold[3]
glowing thresholds
 
void SetLabelText(const char *text1, const char *text2="")
Set main label text (two lines).
 
TImage * fImage2
intermediate image used as background
 
void SetScaleValue(Float_t val)
Set actual scale (needle position) value.
 
Bool_t fMeanMark
kTRUE if mean mark is active
 
void SetMeanValue(Float_t mean)
 
std::vector< Float_t > fBuffer
circular buffer for mean calculation
 
Float_t GetScaleMax() const
 
TString fLabel2
main label (second line)
 
Float_t fAngleMax
needle min and max angle
 
TGDimension GetDefaultSize() const override
Return default dimension of the widget.
 
TImage * GetImage() const
 
void Build()
Build TGSpeedo widget.
 
void DoRedraw() override
Redraw speedo widget.
 
void DrawNeedle()
Draw needle in speedo widget.
 
Bool_t fPeakMark
kTRUE if peak mark is active
 
Float_t fValue
needle angle and corresponding value
 
ROOT GUI Window base class.
 
An abstract interface to image processing library.
 
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.