cWidget::WithAngles Class Reference

Able to parse and store an Angles node. More...

#include <cWidgetBase.h>

Inheritance diagram for cWidget::WithAngles:

Inheritance graph
[legend]
Collaboration diagram for cWidget::WithAngles:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Able to parse and store an Angles node.

Definition at line 220 of file cWidgetBase.h.


Constructor & Destructor Documentation

cWidget::WithAngles::WithAngles (  )  [inline, protected]

Definition at line 224 of file cWidgetBase.h.

00224 : m_angle_min(0), m_angle_max(M_PI){}; 


Member Function Documentation

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);

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:05:03 2008 for Armagetron Advanced by  doxygen 1.5.4