ClockHand Class Reference

#include <Aclock.h>

Inheritance diagram for ClockHand:

TPolygon TPolyLine TObject TAttLine TAttFill TObject TAttLine TAttFill HourHand MinuteHand SecondHand List of all members.

Public Member Functions

 ClockHand (Int_t n, Float_t *x, Float_t *y)
virtual ~ClockHand ()
UInt_t GetTime ()
UInt_t GetHour ()
UInt_t GetMinute ()
UInt_t GetSecond ()
void Update ()
Bool_t IsModified ()

Protected Member Functions

void Move (Float_t angle)
virtual UInt_t GetTimeValue ()
virtual Float_t GetHandAngle ()

Protected Attributes

UInt_t fPrevTimeValue
Float_tfX0
Float_tfY0

Static Protected Attributes

static TDatimefgTime

Detailed Description

Definition at line 68 of file Aclock.h.


Constructor & Destructor Documentation

ClockHand::ClockHand ( Int_t  n,
Float_t x,
Float_t y 
)

Definition at line 67 of file Aclock.cxx.

References fPrevTimeValue, TPolyLine::fX, fX0, TPolyLine::fY, fY0, TPolyLine::GetN(), i, and TAttFill::SetFillColor().

virtual ClockHand::~ClockHand (  )  [inline, virtual]

Definition at line 83 of file Aclock.h.


Member Function Documentation

void ClockHand::Move ( Float_t  angle  )  [protected]

Definition at line 92 of file Aclock.cxx.

References TPolygon::fPad, TPolyLine::fX, fX0, TPolyLine::fY, fY0, TPolyLine::GetN(), TPad::GetX2(), TPad::GetY1(), i, n, points, TPad::XtoPixel(), and TPad::YtoPixel().

Referenced by Update().

virtual UInt_t ClockHand::GetTimeValue (  )  [inline, protected, virtual]

Definition at line 78 of file Aclock.h.

References GetMinute().

Referenced by IsModified(), and Update().

virtual Float_t ClockHand::GetHandAngle (  )  [inline, protected, virtual]

Definition at line 79 of file Aclock.h.

Referenced by Update().

UInt_t ClockHand::GetTime (  )  [inline]

Definition at line 85 of file Aclock.h.

References fgTime, TDatime::GetTime(), and TDatime::Set().

Referenced by GetHour(), GetMinute(), and GetSecond().

UInt_t ClockHand::GetHour (  )  [inline]

Definition at line 86 of file Aclock.h.

References GetTime().

Referenced by HourHand::GetHandAngle().

UInt_t ClockHand::GetMinute (  )  [inline]

Definition at line 87 of file Aclock.h.

References GetTime().

Referenced by HourHand::GetHandAngle(), MinuteHand::GetHandAngle(), and GetTimeValue().

UInt_t ClockHand::GetSecond (  )  [inline]

Definition at line 88 of file Aclock.h.

References GetTime().

Referenced by MinuteHand::GetHandAngle(), SecondHand::GetHandAngle(), and SecondHand::GetTimeValue().

void ClockHand::Update (  ) 

Definition at line 82 of file Aclock.cxx.

References fPrevTimeValue, GetHandAngle(), GetTimeValue(), IsModified(), and Move().

Referenced by Aclock::Animate().

Bool_t ClockHand::IsModified (  )  [inline]

Definition at line 92 of file Aclock.h.

References fPrevTimeValue, and GetTimeValue().

Referenced by Aclock::Animate(), and Update().


Member Data Documentation

UInt_t ClockHand::fPrevTimeValue [protected]

Definition at line 71 of file Aclock.h.

Referenced by ClockHand(), IsModified(), and Update().

Float_t* ClockHand::fX0 [protected]

Definition at line 72 of file Aclock.h.

Referenced by ClockHand(), and Move().

Float_t* ClockHand::fY0 [protected]

Definition at line 73 of file Aclock.h.

Referenced by ClockHand(), and Move().

TDatime * ClockHand::fgTime [static, protected]

Definition at line 75 of file Aclock.h.

Referenced by GetTime().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:25:06 2011 for ROOT_528-00b_version by  doxygen 1.5.1