#include <TGSpeedo.h>
Inheritance diagram for TGSpeedo:
Definition at line 46 of file TGSpeedo.h.
enum TGSpeedo::EGlowColor |
Definition at line 49 of file TGSpeedo.h.
enum TGSpeedo::EGlowColor |
Definition at line 49 of file TGSpeedo.h.
TGSpeedo::TGSpeedo | ( | const TGWindow * | p = 0 , |
|
int | id = -1 | |||
) |
TGSpeedo::TGSpeedo | ( | const TGWindow * | p, | |
Float_t | smin, | |||
Float_t | smax, | |||
const char * | lbl1 = "" , |
|||
const char * | lbl2 = "" , |
|||
const char * | dsp1 = "" , |
|||
const char * | dsp2 = "" , |
|||
int | id = -1 | |||
) |
Definition at line 78 of file TGSpeedo.cxx.
References TGFrame::AddInput(), Build(), TString::Data(), TObject::Error(), fAngle, fAngleMax, fAngleMin, fCounter, fDisplay1, fDisplay2, fImage, fLabel1, fLabel2, fMeanMark, fMeanVal, fPeakMark, fPeakVal, fPicName, fScaleMax, fScaleMin, fThreshold, fThresholdActive, fThresholdColor, fValue, TImage::IsValid(), kButtonPressMask, kButtonReleaseMask, kFALSE, kGreen, kOrange, kRed, and TImage::Open().
TGSpeedo::~TGSpeedo | ( | ) | [virtual] |
Definition at line 199 of file TGSpeedo.cxx.
References fBase, TGObject::fClient, fImage, fImage2, TGClient::FreePicture(), and TImage::IsValid().
TGSpeedo::TGSpeedo | ( | const TGWindow * | p = 0 , |
|
int | id = -1 | |||
) |
TGSpeedo::TGSpeedo | ( | const TGWindow * | p, | |
Float_t | smin, | |||
Float_t | smax, | |||
const char * | lbl1 = "" , |
|||
const char * | lbl2 = "" , |
|||
const char * | dsp1 = "" , |
|||
const char * | dsp2 = "" , |
|||
int | id = -1 | |||
) |
virtual TGSpeedo::~TGSpeedo | ( | ) | [virtual] |
void TGSpeedo::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
Definition at line 559 of file TGSpeedo.cxx.
References TImage::Clone(), TString::Data(), TGFrame::DoRedraw(), TImage::DrawText(), fAngle, fAngleMax, fAngleMin, fBase, fCounter, fDisplay1, fDisplay2, TGObject::fId, fImage, fImage2, fMeanMark, fMeanVal, fp, fPeakMark, fPeakVal, fScaleMax, fScaleMin, fTextFS, fValue, gEnv, TGPicture::GetHeight(), TEnv::GetValue(), TGPicture::GetWidth(), gVirtualX, TImage::IsValid(), kFALSE, kTRUE, TString::Length(), snprintf, and Translate().
void TGSpeedo::DrawNeedle | ( | ) | [protected] |
Definition at line 457 of file TGSpeedo.cxx.
References TImage::Clone(), fAngle, fAngleMax, fAngleMin, TGObject::fId, fImage2, fMeanMark, fMeanVal, fPeakMark, fPeakVal, fScaleMax, fScaleMin, fValue, gVirtualX, TImage::IsValid(), and Translate().
Referenced by SetDisplayText(), SetOdoValue(), and SetScaleValue().
void TGSpeedo::DrawText | ( | ) | [protected] |
Definition at line 505 of file TGSpeedo.cxx.
References TImage::Clone(), TString::Data(), TImage::DrawText(), fBase, fCounter, fDisplay1, fDisplay2, fImage, fImage2, fp, fTextFS, gEnv, TGPicture::GetHeight(), TEnv::GetValue(), TGPicture::GetWidth(), gVirtualX, TImage::IsValid(), TString::Length(), and snprintf.
Referenced by Glow(), SetDisplayText(), SetLabelText(), SetMinMaxScale(), and SetOdoValue().
Definition at line 446 of file TGSpeedo.cxx.
References cos(), fBase, TGPicture::GetHeight(), TGPicture::GetWidth(), TMath::Pi(), and sin().
Referenced by DoRedraw(), and DrawNeedle().
TGDimension TGSpeedo::GetDefaultSize | ( | ) | const [virtual] |
Reimplemented from TGFrame.
Definition at line 212 of file TGSpeedo.cxx.
References fBase, TGPicture::GetHeight(), and TGPicture::GetWidth().
Reimplemented from TGFrame.
Definition at line 271 of file TGSpeedo.cxx.
References fBase, Event_t::fCode, Event_t::fType, Event_t::fX, Event_t::fY, TGPicture::GetHeight(), TGPicture::GetWidth(), kButton1, kButton3, kButtonRelease, kTRUE, LedClicked(), OdoClicked(), and ResetPeakVal().
const TGPicture* TGSpeedo::GetPicture | ( | ) | const [inline] |
Definition at line 88 of file TGSpeedo.h.
References fBase.
Referenced by TGShapedMain::TGShapedMain().
TImage* TGSpeedo::GetImage | ( | ) | const [inline] |
Float_t TGSpeedo::GetPeakVal | ( | ) | const [inline] |
Float_t TGSpeedo::GetScaleMin | ( | ) | const [inline] |
Definition at line 91 of file TGSpeedo.h.
References fScaleMin.
Referenced by TProofProgressDialog::Progress().
Float_t TGSpeedo::GetScaleMax | ( | ) | const [inline] |
Definition at line 92 of file TGSpeedo.h.
References fScaleMax.
Referenced by TProofProgressDialog::Progress().
Bool_t TGSpeedo::IsThresholdActive | ( | ) | [inline] |
Definition at line 93 of file TGSpeedo.h.
References fThresholdActive.
Referenced by TProofProgressDialog::ToggleThreshold().
void TGSpeedo::Build | ( | ) |
Definition at line 114 of file TGSpeedo.cxx.
References TSystem::BaseName(), TString::Data(), TImage::DrawText(), fBase, TGObject::fClient, fCounterFS, TGObject::fId, fImage, fLabel1, fLabel2, TString::Form(), fp, fPicName, fScaleMax, fScaleMin, fTextFS, gEnv, TGClient::GetFont(), TGFont::GetFontStruct(), TGPicture::GetHeight(), TImage::GetMask(), TGPicture::GetMask(), TGPicturePool::GetPicture(), TGClient::GetPicturePool(), TImage::GetPixmap(), TEnv::GetValue(), TGPicture::GetWidth(), gSystem, gVirtualX, i, TImage::IsValid(), and TString::Length().
Referenced by Glow(), SetLabelText(), SetMinMaxScale(), and TGSpeedo().
void TGSpeedo::Glow | ( | EGlowColor | col = kGreen |
) |
Definition at line 222 of file TGSpeedo.cxx.
References Build(), DrawText(), TObject::Error(), fImage, fPicName, TImage::IsValid(), kGreen, kNoglow, kOrange, kRed, TImage::Merge(), and TImage::Open().
Referenced by DisableThreshold(), TProofProgressDialog::Progress(), SetScaleValue(), and TProofProgressDialog::ToggleThreshold().
void TGSpeedo::StepScale | ( | Float_t | step | ) |
void TGSpeedo::SetScaleValue | ( | Float_t | val | ) |
Definition at line 357 of file TGSpeedo.cxx.
References DrawNeedle(), fAngle, fAngleMax, fAngleMin, fPeakVal, fScaleMax, fScaleMin, fThreshold, fThresholdActive, fThresholdColor, fValue, Glow(), and kNoglow.
Referenced by CPUMeter(), TProofProgressDialog::DoEnableSpeedo(), TProofProgressDialog::Progress(), SetScaleValue(), StepScale(), and Update().
Definition at line 395 of file TGSpeedo.cxx.
References fAngleMax, fAngleMin, fScaleMax, fScaleMin, fValue, gSystem, gVirtualX, i, SetScaleValue(), and TSystem::Sleep().
void TGSpeedo::SetOdoValue | ( | Int_t | val | ) |
Definition at line 298 of file TGSpeedo.cxx.
References DrawNeedle(), DrawText(), and fCounter.
Referenced by TProofProgressDialog::Progress(), TProofProgressDialog::ToggleOdometerInfos(), and Update().
void TGSpeedo::SetDisplayText | ( | const char * | text1, | |
const char * | text2 = "" | |||
) |
Definition at line 311 of file TGSpeedo.cxx.
References TString::CompareTo(), DrawNeedle(), DrawText(), fDisplay1, and fDisplay2.
Referenced by TGShapedMain::TGShapedMain(), TGShapedMain::ToggleInfos(), and TProofProgressDialog::ToggleOdometerInfos().
void TGSpeedo::SetLabelText | ( | const char * | text1, | |
const char * | text2 = "" | |||
) |
Definition at line 325 of file TGSpeedo.cxx.
References Build(), TString::Data(), DrawText(), TObject::Error(), fImage, fLabel1, fLabel2, fPicName, TImage::IsValid(), and TImage::Open().
Definition at line 341 of file TGSpeedo.cxx.
References Build(), TString::Data(), DrawText(), TObject::Error(), fImage, fPicName, fScaleMax, fScaleMin, TImage::IsValid(), and TImage::Open().
Referenced by TProofProgressDialog::Progress(), and TProofProgressDialog::ResetProgressDialog().
void TGSpeedo::SetThresholdColors | ( | EGlowColor | col1, | |
EGlowColor | col2, | |||
EGlowColor | col3 | |||
) | [inline] |
void TGSpeedo::EnableThreshold | ( | ) | [inline] |
Definition at line 108 of file TGSpeedo.h.
References fThresholdActive, and kTRUE.
Referenced by CPUMeter(), and TProofProgressDialog::ToggleThreshold().
void TGSpeedo::DisableThreshold | ( | ) | [inline] |
Definition at line 109 of file TGSpeedo.h.
References TGObject::fClient, fThresholdActive, Glow(), kFALSE, kNoglow, and TGClient::NeedRedraw().
Referenced by TProofProgressDialog::ToggleThreshold().
void TGSpeedo::EnablePeakMark | ( | ) | [inline] |
Definition at line 110 of file TGSpeedo.h.
References fPeakMark, and kTRUE.
Referenced by CPUMeter().
void TGSpeedo::DisablePeakMark | ( | ) | [inline] |
void TGSpeedo::EnableMeanMark | ( | ) | [inline] |
void TGSpeedo::DisableMeanMark | ( | ) | [inline] |
void TGSpeedo::ResetPeakVal | ( | ) | [inline] |
Definition at line 114 of file TGSpeedo.h.
References TGObject::fClient, fPeakVal, fValue, and TGClient::NeedRedraw().
Referenced by HandleButton(), and TProofProgressDialog::ResetProgressDialog().
void TGSpeedo::SetMeanValue | ( | Float_t | mean | ) | [inline] |
Definition at line 115 of file TGSpeedo.h.
References TGObject::fClient, fMeanVal, and TGClient::NeedRedraw().
Referenced by TProofProgressDialog::Progress(), and TProofProgressDialog::ResetProgressDialog().
void TGSpeedo::OdoClicked | ( | ) | [inline] |
Definition at line 117 of file TGSpeedo.h.
References TQObject::Emit().
Referenced by HandleButton().
void TGSpeedo::LedClicked | ( | ) | [inline] |
Definition at line 118 of file TGSpeedo.h.
References TQObject::Emit().
Referenced by HandleButton().
virtual void TGSpeedo::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
void TGSpeedo::DrawNeedle | ( | ) | [protected] |
void TGSpeedo::DrawText | ( | ) | [protected] |
virtual TGDimension TGSpeedo::GetDefaultSize | ( | ) | const [virtual] |
Reimplemented from TGFrame.
const TGPicture* TGSpeedo::GetPicture | ( | ) | const [inline] |
TImage* TGSpeedo::GetImage | ( | ) | const [inline] |
Float_t TGSpeedo::GetPeakVal | ( | ) | const [inline] |
Float_t TGSpeedo::GetScaleMin | ( | ) | const [inline] |
Float_t TGSpeedo::GetScaleMax | ( | ) | const [inline] |
Bool_t TGSpeedo::IsThresholdActive | ( | ) | [inline] |
void TGSpeedo::Build | ( | ) |
void TGSpeedo::Glow | ( | EGlowColor | col = kGreen |
) |
void TGSpeedo::StepScale | ( | Float_t | step | ) |
void TGSpeedo::SetScaleValue | ( | Float_t | val | ) |
void TGSpeedo::SetOdoValue | ( | Int_t | val | ) |
void TGSpeedo::SetDisplayText | ( | const char * | text1, | |
const char * | text2 = "" | |||
) |
void TGSpeedo::SetLabelText | ( | const char * | text1, | |
const char * | text2 = "" | |||
) |
void TGSpeedo::SetThresholdColors | ( | EGlowColor | col1, | |
EGlowColor | col2, | |||
EGlowColor | col3 | |||
) | [inline] |
void TGSpeedo::EnableThreshold | ( | ) | [inline] |
void TGSpeedo::DisableThreshold | ( | ) | [inline] |
Definition at line 109 of file TGSpeedo.h.
References TGObject::fClient, fThresholdActive, Glow(), kFALSE, kNoglow, and TGClient::NeedRedraw().
void TGSpeedo::EnablePeakMark | ( | ) | [inline] |
void TGSpeedo::DisablePeakMark | ( | ) | [inline] |
void TGSpeedo::EnableMeanMark | ( | ) | [inline] |
void TGSpeedo::DisableMeanMark | ( | ) | [inline] |
void TGSpeedo::ResetPeakVal | ( | ) | [inline] |
Definition at line 114 of file TGSpeedo.h.
References TGObject::fClient, fPeakVal, fValue, and TGClient::NeedRedraw().
void TGSpeedo::SetMeanValue | ( | Float_t | mean | ) | [inline] |
Definition at line 115 of file TGSpeedo.h.
References TGObject::fClient, fMeanVal, and TGClient::NeedRedraw().
void TGSpeedo::OdoClicked | ( | ) | [inline] |
void TGSpeedo::LedClicked | ( | ) | [inline] |
TImage* TGSpeedo::fImage [protected] |
Definition at line 52 of file TGSpeedo.h.
Referenced by Build(), DoRedraw(), DrawText(), GetImage(), Glow(), SetLabelText(), SetMinMaxScale(), TGSpeedo(), and ~TGSpeedo().
TImage* TGSpeedo::fImage2 [protected] |
Definition at line 53 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawNeedle(), DrawText(), and ~TGSpeedo().
const TGPicture* TGSpeedo::fBase [protected] |
Definition at line 54 of file TGSpeedo.h.
Referenced by Build(), DoRedraw(), DrawText(), GetDefaultSize(), GetPicture(), HandleButton(), Translate(), and ~TGSpeedo().
FontStruct_t TGSpeedo::fTextFS [protected] |
FontStruct_t TGSpeedo::fCounterFS [protected] |
Int_t TGSpeedo::fCounter [protected] |
Definition at line 56 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawText(), SetOdoValue(), and TGSpeedo().
TString TGSpeedo::fPicName [protected] |
Definition at line 57 of file TGSpeedo.h.
Referenced by Build(), Glow(), SetLabelText(), SetMinMaxScale(), and TGSpeedo().
TString TGSpeedo::fLabel1 [protected] |
TString TGSpeedo::fLabel2 [protected] |
TString TGSpeedo::fDisplay1 [protected] |
Definition at line 60 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawText(), SetDisplayText(), and TGSpeedo().
TString TGSpeedo::fDisplay2 [protected] |
Definition at line 61 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawText(), SetDisplayText(), and TGSpeedo().
Float_t TGSpeedo::fAngle [protected] |
Definition at line 62 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawNeedle(), SetScaleValue(), and TGSpeedo().
Float_t TGSpeedo::fValue [protected] |
Definition at line 62 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawNeedle(), ResetPeakVal(), SetScaleValue(), StepScale(), and TGSpeedo().
Float_t TGSpeedo::fPeakVal [protected] |
Definition at line 63 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawNeedle(), GetPeakVal(), ResetPeakVal(), SetScaleValue(), and TGSpeedo().
Float_t TGSpeedo::fMeanVal [protected] |
Definition at line 64 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawNeedle(), SetMeanValue(), and TGSpeedo().
Float_t TGSpeedo::fAngleMin [protected] |
Definition at line 65 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawNeedle(), SetScaleValue(), and TGSpeedo().
Float_t TGSpeedo::fAngleMax [protected] |
Definition at line 65 of file TGSpeedo.h.
Referenced by DoRedraw(), DrawNeedle(), SetScaleValue(), and TGSpeedo().
Float_t TGSpeedo::fScaleMin [protected] |
Definition at line 66 of file TGSpeedo.h.
Referenced by Build(), DoRedraw(), DrawNeedle(), GetScaleMin(), SetMinMaxScale(), SetScaleValue(), and TGSpeedo().
Float_t TGSpeedo::fScaleMax [protected] |
Definition at line 66 of file TGSpeedo.h.
Referenced by Build(), DoRedraw(), DrawNeedle(), GetScaleMax(), SetMinMaxScale(), SetScaleValue(), and TGSpeedo().
Float_t TGSpeedo::fThreshold [protected] |
Definition at line 67 of file TGSpeedo.h.
Referenced by SetScaleValue(), SetThresholds(), and TGSpeedo().
EGlowColor TGSpeedo::fThresholdColor [protected] |
Definition at line 68 of file TGSpeedo.h.
Referenced by SetScaleValue(), SetThresholdColors(), and TGSpeedo().
Bool_t TGSpeedo::fThresholdActive [protected] |
Definition at line 69 of file TGSpeedo.h.
Referenced by DisableThreshold(), EnableThreshold(), IsThresholdActive(), SetScaleValue(), and TGSpeedo().
Bool_t TGSpeedo::fPeakMark [protected] |
Definition at line 70 of file TGSpeedo.h.
Referenced by DisablePeakMark(), DoRedraw(), DrawNeedle(), EnablePeakMark(), and TGSpeedo().
Bool_t TGSpeedo::fMeanMark [protected] |
Definition at line 71 of file TGSpeedo.h.
Referenced by DisableMeanMark(), DoRedraw(), DrawNeedle(), EnableMeanMark(), and TGSpeedo().
TImage* TGSpeedo::fImage [protected] |
Definition at line 52 of file TGSpeedo.h.
TImage* TGSpeedo::fImage2 [protected] |
Definition at line 53 of file TGSpeedo.h.
const TGPicture* TGSpeedo::fBase [protected] |
Definition at line 54 of file TGSpeedo.h.