VGUI::SpinningCar Class Reference

#include <spinning_car.h>

Inheritance diagram for VGUI::SpinningCar:

Inheritance graph
[legend]
Collaboration diagram for VGUI::SpinningCar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SpinningCar ()
 SpinningCar (Widget *w)
 ~SpinningCar ()
void Save ()
void Draw ()
void Draw (float opacity)
bool MouseOver (float x, float y)
string MousePress (float x, float y)
string MouseRelease (float x, float y)
void ResetValue ()
void HookIncValuePress ()
void HookDecValuePress ()
void HookIncValueRelease ()
void HookDecValueRelease ()
void HookRelease ()
void IncValuePress ()
void DecValuePress ()
void IncValueRelease ()
void DecValueRelease ()
void Release ()
void ClearCar ()
vector< string > GetFilenameList ()
vector< string > GetValueList ()
string GetValue ()
bool GetSelected ()
string GetSetting ()
float * GetCarPos ()
void SetFilenameList (vector< string > new_filename_list)
void SetValueList (vector< string > new_value_list)
void SetValue (string new_value)
void SetSelected (bool new_selected)
void SetSetting (string new_setting)
void SetCarPos (float *new_carpos)

Private Member Functions

void LoadCar ()

Private Attributes

vector< string > filename_list
vector< string > value_list
Vamos_Body::Gl_Carcar
Wheel< int > * wheel
string setting
TEXTURE_HANDLE img_tex
TEXTURE_HANDLE sphere_reflection
unsigned int cur_option
float last_t
float rotation
float fade_time
float carpos [3]
bool l_down
bool r_down
bool loaded
bool car_in
bool car_out
bool extra_clicks
Uint32 press_time

Detailed Description

Definition at line 14 of file spinning_car.h.


Constructor & Destructor Documentation

VGUI::SpinningCar::SpinningCar  )  [inline]
 

Definition at line 17 of file spinning_car.h.

SpinningCar::SpinningCar Widget w  ) 
 

Definition at line 6 of file spinning_car.cpp.

References car, car_in, car_out, VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, cur_option, VGUI::Widget::enabled, extra_clicks, fade_time, VGUI::Widget::font_size, VGUI::Widget::GetCancel(), VGUI::Widget::GetCenter(), VGUI::Widget::GetColorB(), VGUI::Widget::GetColorG(), VGUI::Widget::GetColorR(), VGUI::Widget::GetDefault(), VGUI::Widget::GetEnabled(), VGUI::Widget::GetFontSize(), VGUI::Widget::GetHasIcon(), VGUI::Widget::GetName(), VGUI::Widget::GetRelHeight(), VGUI::Widget::GetRelWidth(), VGUI::Widget::GetSelected(), SETTINGS::GetSkinPath(), VGUI::Widget::GetText(), VGUI::Widget::GetTip(), VGUI::Widget::GetType(), VGUI::Widget::has_icon, VGUI::Widget::height_auto, VGUI::Widget::is_cancel, VGUI::Widget::is_default, last_t, TEXTURE_HANDLE::Load(), loaded, VGUI::Widget::name, NULL, VGUI::Widget::rel_height, VGUI::Widget::rel_width, rotation, VGUI::Widget::selected, setting, settings, sphere_reflection, VGUI::Widget::text, VGUI::Widget::tip, VGUI::Widget::type, wheel, and VGUI::Widget::width_auto.

SpinningCar::~SpinningCar  ) 
 

Definition at line 41 of file spinning_car.cpp.

References ClearCar().


Member Function Documentation

void SpinningCar::ClearCar  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 105 of file spinning_car.cpp.

References car, loaded, NULL, and wheel.

Referenced by LoadCar(), and ~SpinningCar().

void SpinningCar::DecValuePress  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 305 of file spinning_car.cpp.

References VGUI::Wheel< wheel_t >::DecValuePress(), loaded, and wheel.

void SpinningCar::DecValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 311 of file spinning_car.cpp.

References car, VGUI::Wheel< wheel_t >::DecValueRelease(), VGUI::Wheel< wheel_t >::GetValue(), loaded, Vamos_Body::Gl_Car::SetPaint(), and wheel.

void SpinningCar::Draw float  opacity  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 145 of file spinning_car.cpp.

References car, car_in, car_out, carpos, VGUI::Wheel< wheel_t >::Draw(), Vamos_Body::Gl_Car::draw(), extra_clicks, fade_time, QUATERNION::GetMat(), last_t, LightAmbient, LightDiffuse, LightPosition, LightSpecular, LoadCar(), loaded, press_time, QUATERNION::Rotate(), rotation, VGUI::Widget::selected, UTILITY::SelectTU(), VERTEX::Set(), Vamos_Body::Gl_Car::SetReflectionTexture(), VGUI::Widget::SetSelected(), sphere_reflection, utility, wheel, VERTEX::x, VERTEX::y, and VERTEX::z.

void SpinningCar::Draw  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 140 of file spinning_car.cpp.

float* VGUI::SpinningCar::GetCarPos  )  [inline]
 

Definition at line 44 of file spinning_car.h.

References carpos.

vector<string> VGUI::SpinningCar::GetFilenameList  )  [inline]
 

Definition at line 39 of file spinning_car.h.

References filename_list.

bool VGUI::SpinningCar::GetSelected  )  [inline]
 

Reimplemented from VGUI::Widget.

Definition at line 42 of file spinning_car.h.

References VGUI::Widget::GetSelected(), and wheel.

string VGUI::SpinningCar::GetSetting  )  [inline]
 

Definition at line 43 of file spinning_car.h.

References setting.

string VGUI::SpinningCar::GetValue  )  [inline]
 

Definition at line 41 of file spinning_car.h.

References cur_option, and value_list.

vector<string> VGUI::SpinningCar::GetValueList  )  [inline]
 

Definition at line 40 of file spinning_car.h.

References value_list.

void SpinningCar::HookDecValuePress  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 267 of file spinning_car.cpp.

References HookRelease(), l_down, and press_time.

void SpinningCar::HookDecValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 274 of file spinning_car.cpp.

References car_out, cur_option, HookRelease(), and press_time.

void SpinningCar::HookIncValuePress  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 250 of file spinning_car.cpp.

References HookRelease(), and r_down.

void SpinningCar::HookIncValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 256 of file spinning_car.cpp.

References car_out, cur_option, filename_list, HookRelease(), and press_time.

void SpinningCar::HookRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 285 of file spinning_car.cpp.

References l_down, and r_down.

Referenced by HookDecValuePress(), HookDecValueRelease(), HookIncValuePress(), and HookIncValueRelease().

void SpinningCar::IncValuePress  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 290 of file spinning_car.cpp.

References VGUI::Wheel< wheel_t >::IncValuePress(), loaded, and wheel.

void SpinningCar::IncValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 296 of file spinning_car.cpp.

References car, VGUI::Wheel< wheel_t >::GetValue(), VGUI::Wheel< wheel_t >::IncValueRelease(), loaded, Vamos_Body::Gl_Car::SetPaint(), and wheel.

void SpinningCar::LoadCar  )  [private]
 

Definition at line 46 of file spinning_car.cpp.

References _c, car, VGUI::Widget::center, ClearCar(), cur_option, filename_list, SETTINGS::GetDataDir(), Vamos_Body::Gl_Car::GetNumPaintjobs(), VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), loaded, VGUI::Widget::name, NULL, Vamos_Body::Car::read(), VGUI::Widget::SetCancel(), VGUI::Widget::SetCenter(), VGUI::Widget::SetColor(), VGUI::Widget::SetDefault(), VGUI::Widget::SetEnabled(), VGUI::Widget::SetFontSize(), VGUI::Widget::SetHeightAuto(), VGUI::Widget::SetName(), VGUI::Widget::SetSelected(), VGUI::Widget::SetText(), settings, VGUI::Widget::SetTip(), VGUI::Widget::SetType(), VGUI::Widget::SetWidthAuto(), value_list, wheel, and VGUI::Widget::Widget().

Referenced by Draw(), and ResetValue().

bool SpinningCar::MouseOver float  x,
float  y
[virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 326 of file spinning_car.cpp.

References loaded, VGUI::Wheel< wheel_t >::MouseOver(), and wheel.

string SpinningCar::MousePress float  x,
float  y
[virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 345 of file spinning_car.cpp.

References loaded, VGUI::Wheel< wheel_t >::MousePress(), and wheel.

string SpinningCar::MouseRelease float  x,
float  y
[virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 374 of file spinning_car.cpp.

References car, VGUI::Wheel< wheel_t >::GetValue(), loaded, VGUI::Wheel< wheel_t >::MouseRelease(), Vamos_Body::Gl_Car::SetPaint(), and wheel.

void SpinningCar::Release  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 320 of file spinning_car.cpp.

References loaded, VGUI::Wheel< wheel_t >::Release(), and wheel.

void SpinningCar::ResetValue  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 120 of file spinning_car.cpp.

References car, car_in, SETTINGS::Get(), VGUI::Wheel< wheel_t >::GetValue(), LoadCar(), press_time, VGUI::Wheel< wheel_t >::ResetValue(), Vamos_Body::Gl_Car::SetPaint(), setting, settings, VGUI::Wheel< wheel_t >::SetValue(), SetValue(), and wheel.

void SpinningCar::Save  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 134 of file spinning_car.cpp.

References loaded, VGUI::Wheel< wheel_t >::Save(), and wheel.

void VGUI::SpinningCar::SetCarPos float *  new_carpos  )  [inline]
 

Definition at line 50 of file spinning_car.h.

References carpos.

void VGUI::SpinningCar::SetFilenameList vector< string >  new_filename_list  )  [inline]
 

Definition at line 45 of file spinning_car.h.

References filename_list.

void VGUI::SpinningCar::SetSelected bool  new_selected  )  [inline]
 

Reimplemented from VGUI::Widget.

Definition at line 48 of file spinning_car.h.

References VGUI::Widget::SetSelected(), and wheel.

void VGUI::SpinningCar::SetSetting string  new_setting  )  [inline, virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 49 of file spinning_car.h.

References setting.

void VGUI::SpinningCar::SetValue string  new_value  )  [inline, virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 47 of file spinning_car.h.

References cur_option, and value_list.

Referenced by ResetValue().

void VGUI::SpinningCar::SetValueList vector< string >  new_value_list  )  [inline]
 

Definition at line 46 of file spinning_car.h.

References value_list.


Member Data Documentation

Vamos_Body::Gl_Car* VGUI::SpinningCar::car [private]
 

Definition at line 57 of file spinning_car.h.

Referenced by ClearCar(), DecValueRelease(), Draw(), IncValueRelease(), LoadCar(), MouseRelease(), ResetValue(), and SpinningCar().

bool VGUI::SpinningCar::car_in [private]
 

Definition at line 65 of file spinning_car.h.

Referenced by Draw(), ResetValue(), and SpinningCar().

bool VGUI::SpinningCar::car_out [private]
 

Definition at line 65 of file spinning_car.h.

Referenced by Draw(), HookDecValueRelease(), HookIncValueRelease(), and SpinningCar().

float VGUI::SpinningCar::carpos[3] [private]
 

Definition at line 64 of file spinning_car.h.

Referenced by Draw(), GetCarPos(), and SetCarPos().

unsigned int VGUI::SpinningCar::cur_option [private]
 

Definition at line 61 of file spinning_car.h.

Referenced by GetValue(), HookDecValueRelease(), HookIncValueRelease(), LoadCar(), SetValue(), and SpinningCar().

bool VGUI::SpinningCar::extra_clicks [private]
 

Definition at line 66 of file spinning_car.h.

Referenced by Draw(), and SpinningCar().

float VGUI::SpinningCar::fade_time [private]
 

Definition at line 63 of file spinning_car.h.

Referenced by Draw(), and SpinningCar().

vector<string> VGUI::SpinningCar::filename_list [private]
 

Definition at line 55 of file spinning_car.h.

Referenced by GetFilenameList(), HookIncValueRelease(), LoadCar(), and SetFilenameList().

TEXTURE_HANDLE VGUI::SpinningCar::img_tex [private]
 

Definition at line 60 of file spinning_car.h.

bool VGUI::SpinningCar::l_down [private]
 

Definition at line 65 of file spinning_car.h.

Referenced by HookDecValuePress(), and HookRelease().

float VGUI::SpinningCar::last_t [private]
 

Definition at line 62 of file spinning_car.h.

Referenced by Draw(), and SpinningCar().

bool VGUI::SpinningCar::loaded [private]
 

Definition at line 65 of file spinning_car.h.

Referenced by ClearCar(), DecValuePress(), DecValueRelease(), Draw(), IncValuePress(), IncValueRelease(), LoadCar(), MouseOver(), MousePress(), MouseRelease(), Release(), Save(), and SpinningCar().

Uint32 VGUI::SpinningCar::press_time [private]
 

Definition at line 67 of file spinning_car.h.

Referenced by Draw(), HookDecValuePress(), HookDecValueRelease(), HookIncValueRelease(), and ResetValue().

bool VGUI::SpinningCar::r_down [private]
 

Definition at line 65 of file spinning_car.h.

Referenced by HookIncValuePress(), and HookRelease().

float VGUI::SpinningCar::rotation [private]
 

Definition at line 62 of file spinning_car.h.

Referenced by Draw(), and SpinningCar().

string VGUI::SpinningCar::setting [private]
 

Definition at line 59 of file spinning_car.h.

Referenced by GetSetting(), ResetValue(), SetSetting(), and SpinningCar().

TEXTURE_HANDLE VGUI::SpinningCar::sphere_reflection [private]
 

Definition at line 60 of file spinning_car.h.

Referenced by Draw(), and SpinningCar().

vector<string> VGUI::SpinningCar::value_list [private]
 

Definition at line 56 of file spinning_car.h.

Referenced by GetValue(), GetValueList(), LoadCar(), SetValue(), and SetValueList().

Wheel<int>* VGUI::SpinningCar::wheel [private]
 

Definition at line 58 of file spinning_car.h.

Referenced by ClearCar(), DecValuePress(), DecValueRelease(), Draw(), GetSelected(), IncValuePress(), IncValueRelease(), LoadCar(), MouseOver(), MousePress(), MouseRelease(), Release(), ResetValue(), Save(), SetSelected(), and SpinningCar().


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