VGUI::Calibrate Class Reference

#include <calibrate.h>

Inheritance diagram for VGUI::Calibrate:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Calibrate ()
 Calibrate (Widget *w)
 ~Calibrate ()
void Draw ()
void Draw (float opacity)
void Save ()
void ResetValue ()
void GrabJoyMove (Uint8 joy_idx, Uint8 joy_axis, bool joy_positive, float joy_value)
void HookIncValuePress ()
void HookDecValuePress ()
void HookIncValueRelease ()
void HookDecValueRelease ()

Private Attributes

map< int, map< int, CalSet * > > calibrations
TEXTURE_HANDLE axis_field_tex
TEXTURE_HANDLE joy_cursor_tex
TEXTURE_HANDLE joy_cal_box_tex
float field_width
float field_height
float cursor_width
float cursor_height
int cur_joy_idx

Detailed Description

Definition at line 27 of file calibrate.h.


Constructor & Destructor Documentation

VGUI::Calibrate::Calibrate  ) 
 

Calibrate::Calibrate Widget w  ) 
 

Definition at line 8 of file calibrate.cpp.

References axis_field_tex, VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, cur_joy_idx, cursor_height, cursor_width, VGUI::Widget::enabled, field_height, field_width, 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::GetHeightAuto(), 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::GetWidthAuto(), VGUI::Widget::has_icon, VGUI::Widget::height_auto, VGUI::Widget::is_cancel, VGUI::Widget::is_default, joy_cal_box_tex, joy_cursor_tex, TEXTURE_HANDLE::Load(), VGUI::Widget::name, VGUI::Widget::rel_height, VGUI::Widget::rel_width, VGUI::Widget::selected, settings, VGUI::Widget::text, VGUI::Widget::tip, VGUI::Widget::type, and VGUI::Widget::width_auto.

Calibrate::~Calibrate  ) 
 

Definition at line 59 of file calibrate.cpp.

References ResetValue().


Member Function Documentation

void Calibrate::Draw float  opacity  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 114 of file calibrate.cpp.

References axis_field_tex, calibrations, VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, cur_joy_idx, cursor_height, cursor_width, UTILITY::Draw2D(), VGUI::Widget::enabled, field_height, field_width, font, VGUI::Widget::font_size, VGUI::CalSet::GetCurrentValue(), VGUI::CalSet::GetLowerValue(), VGUI::CalSet::GetUpperValue(), VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), joy_cal_box_tex, joy_cursor_tex, FONT::Print(), VGUI::Widget::rel_height, VGUI::Widget::rel_width, VGUI::Widget::selected, utility, and FONT::Width().

void Calibrate::Draw  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 109 of file calibrate.cpp.

void Calibrate::GrabJoyMove Uint8  joy_idx,
Uint8  joy_axis,
bool  joy_positive,
float  joy_value
[virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 230 of file calibrate.cpp.

References calibrations, and NULL.

void VGUI::Calibrate::HookDecValuePress void   )  [inline, virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 46 of file calibrate.h.

void Calibrate::HookDecValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 263 of file calibrate.cpp.

References cur_joy_idx.

void VGUI::Calibrate::HookIncValuePress void   )  [inline, virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 45 of file calibrate.h.

void Calibrate::HookIncValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 255 of file calibrate.cpp.

References cur_joy_idx.

void Calibrate::ResetValue  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 89 of file calibrate.cpp.

References calibrations.

Referenced by ~Calibrate().

void Calibrate::Save  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 64 of file calibrate.cpp.

References calibrations, gamecontrols, VGUI::CalSet::GetLowerValue(), VGUI::CalSet::GetUpperValue(), GAMECONTROLS::MinimizeCalibration(), and GAMECONTROLS::SetCalibrationPoint().


Member Data Documentation

TEXTURE_HANDLE VGUI::Calibrate::axis_field_tex [private]
 

Definition at line 31 of file calibrate.h.

Referenced by Calibrate(), and Draw().

map< int, map<int, CalSet*> > VGUI::Calibrate::calibrations [private]
 

Definition at line 30 of file calibrate.h.

Referenced by Draw(), GrabJoyMove(), ResetValue(), and Save().

int VGUI::Calibrate::cur_joy_idx [private]
 

Definition at line 33 of file calibrate.h.

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

float VGUI::Calibrate::cursor_height [private]
 

Definition at line 32 of file calibrate.h.

Referenced by Calibrate(), and Draw().

float VGUI::Calibrate::cursor_width [private]
 

Definition at line 32 of file calibrate.h.

Referenced by Calibrate(), and Draw().

float VGUI::Calibrate::field_height [private]
 

Definition at line 32 of file calibrate.h.

Referenced by Calibrate(), and Draw().

float VGUI::Calibrate::field_width [private]
 

Definition at line 32 of file calibrate.h.

Referenced by Calibrate(), and Draw().

TEXTURE_HANDLE VGUI::Calibrate::joy_cal_box_tex [private]
 

Definition at line 31 of file calibrate.h.

Referenced by Calibrate(), and Draw().

TEXTURE_HANDLE VGUI::Calibrate::joy_cursor_tex [private]
 

Definition at line 31 of file calibrate.h.

Referenced by Calibrate(), and Draw().


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