Vamos_Body::Gear_Indicator Class Reference

#include <Gauge.h>

Inheritance diagram for Vamos_Body::Gear_Indicator:

Inheritance graph
[legend]
Collaboration diagram for Vamos_Body::Gear_Indicator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Gear_Indicator (double x, double y, double above, double width, double height, int numbers, std::string image, bool on_wheel)
 ~Gear_Indicator ()
virtual void set (int gear)
virtual void draw () const
bool on_steering_wheel () const

Protected Attributes

double m_x
double m_y
double m_above
double m_width
double m_height
int m_gear

Private Attributes

bool m_on_steering_wheel
double m_number_width
Vamos_Geometry::Gl_Texture_Imagemp_numbers

Detailed Description

Definition at line 152 of file Gauge.h.


Constructor & Destructor Documentation

Vamos_Body::Gear_Indicator::Gear_Indicator double  x,
double  y,
double  above,
double  width,
double  height,
int  numbers,
std::string  image,
bool  on_wheel
 

Definition at line 321 of file Gauge.cc.

References m_on_steering_wheel, and mp_numbers.

Vamos_Body::Gear_Indicator::~Gear_Indicator  ) 
 

Definition at line 340 of file Gauge.cc.

References mp_numbers.


Member Function Documentation

void Vamos_Body::Gear_Indicator::draw  )  const [virtual]
 

Reimplemented in Vamos_Body::Gear_Shift.

Definition at line 346 of file Gauge.cc.

References Vamos_Geometry::Gl_Texture_Image::activate(), m_above, m_gear, m_height, m_number_width, m_width, m_x, m_y, and mp_numbers.

bool Vamos_Body::Gear_Indicator::on_steering_wheel  )  const [inline]
 

Definition at line 176 of file Gauge.h.

References m_on_steering_wheel.

virtual void Vamos_Body::Gear_Indicator::set int  gear  )  [inline, virtual]
 

Reimplemented in Vamos_Body::Gear_Shift.

Definition at line 174 of file Gauge.h.

References m_gear.

Referenced by Vamos_Body::Dashboard::set_gear_indicator().


Member Data Documentation

double Vamos_Body::Gear_Indicator::m_above [protected]
 

Definition at line 163 of file Gauge.h.

Referenced by draw().

int Vamos_Body::Gear_Indicator::m_gear [protected]
 

Definition at line 166 of file Gauge.h.

Referenced by Vamos_Body::Gear_Shift::draw(), draw(), Vamos_Body::Gear_Shift::set(), and set().

double Vamos_Body::Gear_Indicator::m_height [protected]
 

Definition at line 165 of file Gauge.h.

Referenced by draw().

double Vamos_Body::Gear_Indicator::m_number_width [private]
 

Definition at line 156 of file Gauge.h.

Referenced by draw().

bool Vamos_Body::Gear_Indicator::m_on_steering_wheel [private]
 

Definition at line 154 of file Gauge.h.

Referenced by Gear_Indicator(), and on_steering_wheel().

double Vamos_Body::Gear_Indicator::m_width [protected]
 

Definition at line 164 of file Gauge.h.

Referenced by draw().

double Vamos_Body::Gear_Indicator::m_x [protected]
 

Definition at line 161 of file Gauge.h.

Referenced by draw().

double Vamos_Body::Gear_Indicator::m_y [protected]
 

Definition at line 162 of file Gauge.h.

Referenced by draw().

Vamos_Geometry::Gl_Texture_Image* Vamos_Body::Gear_Indicator::mp_numbers [private]
 

Definition at line 158 of file Gauge.h.

Referenced by draw(), Gear_Indicator(), and ~Gear_Indicator().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:13:17 2006 by  doxygen 1.4.6