#include <ControlPanel.h>
Inheritance diagram for KinControlPanel:

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 |
| CModel * | m_model |
| boxLogger * | m_logTarget |
| wxListBox * | m_lboxLog |
| void KinControlPanel::UpdateData | ( | ) |
Updates the data for all the spin buttons present on the panel.
| 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.
| event,: | the button event |
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 .
| *TheCangedSubject | a pointer to the Subject object that requested the data update. |
Implements Observer.
Definition at line 661 of file ControlPanel.cpp.
References UpdateData().
1.5.1