KinControlPanel Class Reference

#include <ControlPanel.h>

Inheritance diagram for KinControlPanel:

Observer List of all members.

Detailed Description

Kinematics control interface class.

This class is a control panel allowing the user to modify the joint variable values and also to set the position and orientation of the target position for the inverse kinematics.

Definition at line 89 of file ControlPanel.h.

Public Member Functions

 KinControlPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style, const wxString &name, const bool angle_in_degree)
virtual ~KinControlPanel ()
void UpdateData ()
 Updates the data for all the spin buttons present on the panel.
void OnSpinBtn_q (wxSpinEvent &event)
void OnSpinBtn_inv (wxSpinEvent &event)
void OnSpinBtn_q_t (wxCommandEvent &event)
void OnSpinBtn_inv_t (wxCommandEvent &event)
void OnInvKine (wxCommandEvent &event)
 Inverse kinematic button event handler.
void UpdateSpinBtn_q (int id)
void UpdateSpinBtn_inv ()
void InitSpinButton_q (const int dof)
void InitDialog ()
void Update (Subject *theChangedSubject)
 This method is a overloaded one, this method is called by the Subject object to refresh the content of this panel .
void set_active_ListBox ()

Public Attributes

vector< wxTextCtrl * > m_Txt_q
vector< wxStaticText * > m_STxt_q
vector< wxSpinButton * > m_Btn_q
wxStaticBox * m_STbox_q
wxStaticBox * m_STbox_inv
wxButton * m_Btn_InvKine
wxStaticText * m_STxt_x
wxStaticText * m_STxt_y
wxStaticText * m_STxt_z
wxStaticText * m_STxt_yaw
wxStaticText * m_STxt_pitch
wxStaticText * m_STxt_roll
wxTextCtrl * m_Txt_x
wxTextCtrl * m_Txt_y
wxTextCtrl * m_Txt_z
wxTextCtrl * m_Txt_yaw
wxTextCtrl * m_Txt_pitch
wxTextCtrl * m_Txt_roll
wxSpinButton * m_Btn_x
wxSpinButton * m_Btn_y
wxSpinButton * m_Btn_z
wxSpinButton * m_Btn_yaw
wxSpinButton * m_Btn_pitch
wxSpinButton * m_Btn_roll

Private Attributes

bool angle_in_degree
CModelm_model
boxLoggerm_logTarget
wxListBox * m_lboxLog


Member Function Documentation

void KinControlPanel::UpdateData (  ) 

Updates the data for all the spin buttons present on the panel.

Parameters:
None 
Returns:
None

Definition at line 638 of file ControlPanel.cpp.

References angle_in_degree, CModel::get_dof(), CModel::get_q(), InitSpinButton_q(), m_Btn_q, m_model, m_Txt_q, and UpdateSpinBtn_inv().

Referenced by InitDialog(), OnInvKine(), and Update().

void KinControlPanel::OnInvKine ( wxCommandEvent &  event  ) 

Inverse kinematic button event handler.

This methode will compute the inverse kinematic matrix and applies it to the model if the position and orientation of the target is valid.

Parameters:
event,: the button event
Returns:
None

Definition at line 586 of file ControlPanel.cpp.

References angle_in_degree, CModel::get_dof(), CModel::inv_kin(), CModel::IsInitialise(), m_Btn_InvKine, m_Btn_pitch, m_Btn_roll, m_Btn_x, m_Btn_y, m_Btn_yaw, m_Btn_z, m_model, Subject::Notify(), and UpdateData().

void KinControlPanel::Update ( Subject TheChangedSubject  )  [virtual]

This method is a overloaded one, this method is called by the Subject object to refresh the content of this panel .

Parameters:
*TheCangedSubject a pointer to the Subject object that requested the data update.

Implements Observer.

Definition at line 661 of file ControlPanel.cpp.

References UpdateData().


Generated on Fri Feb 9 08:52:22 2007 for GLroboop An OpenGL Robotics Object Oriented Package in C++ by  doxygen 1.5.1