#include <cWidgetBase.h>
Public Member Functions | |
bool | Process (tXmlParser::node cur) |
Default constructor. | |
Protected Member Functions | |
WithAngles () | |
Protected Attributes | |
float | m_angle_min |
Stores the angle at the minimum value. | |
float | m_angle_max |
Stores the angle at the minimum value. |
Definition at line 220 of file cWidgetBase.h.
cWidget::WithAngles::WithAngles | ( | ) | [inline, protected] |
bool cWidget::WithAngles::Process | ( | tXmlParser::node | cur | ) | [virtual] |
Default constructor.
Processes an Angles node or passes on to Base::Process
Reimplemented from cWidget::Base.
Reimplemented in cWidget::BarGauge.
Definition at line 520 of file cWidgetBase.cpp.
References m_angle_max, m_angle_min, M_PI, and cWidget::Base::Process().
Referenced by cWidget::BarGauge::Process().
00521 { 00522 if(cur.IsOfType("Angles")) { 00523 cur.GetProp("min", m_angle_min); 00524 cur.GetProp("max", m_angle_max); 00525 m_angle_min *= M_PI / 180.; 00526 m_angle_max *= M_PI / 180.; 00527 return true; 00528 } 00529 return Base::Process(cur);
float cWidget::WithAngles::m_angle_min [protected] |
Stores the angle at the minimum value.
Definition at line 222 of file cWidgetBase.h.
Referenced by Process(), and cWidget::NeedleGauge::RenderGraph().
float cWidget::WithAngles::m_angle_max [protected] |
Stores the angle at the minimum value.
Definition at line 223 of file cWidgetBase.h.
Referenced by Process(), and cWidget::NeedleGauge::RenderGraph().