#include <srActuator.h>
Public Member Functions | |
bool | IsSnap () |
void | WriteLayout () |
CDoc * | GetDocument () |
virtual void | OnInitialUpdate () |
Protected Member Functions | |
CActuator () | |
virtual void | OnDraw (CDC *pDC) |
virtual void | OnUpdate (CView *pSender, LPARAM lHint, CObject *pHint) |
virtual | ~CActuator () |
afx_msg void | OnRButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnViewSnap () |
afx_msg void | OnUpdateViewSnap (CCmdUI *pCmdUI) |
afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
Private Member Functions | |
bool | RestoreLayout () |
Private Attributes | |
CMenu | m_menuPopup |
CActuatorSlider | m_slider |
CString | m_sActuator |
int | m_ap |
bool | m_bSnap |
Definition at line 9 of file srActuator.h.
CActuator::CActuator | ( | ) | [protected] |
Definition at line 20 of file srActuator.cpp.
CActuator::~CActuator | ( | ) | [protected, virtual] |
Definition at line 25 of file srActuator.cpp.
CDoc * CActuator::GetDocument | ( | ) | [inline] |
Definition at line 65 of file srActuator.h.
Referenced by OnInitialUpdate(), OnUpdate(), RestoreLayout(), and WriteLayout().
bool CActuator::IsSnap | ( | ) | [inline] |
void CActuator::OnDraw | ( | CDC * | pDC | ) | [protected, virtual] |
Definition at line 93 of file srActuator.cpp.
BOOL CActuator::OnEraseBkgnd | ( | CDC * | pDC | ) | [protected] |
Definition at line 230 of file srActuator.cpp.
void CActuator::OnInitialUpdate | ( | ) | [virtual] |
Definition at line 123 of file srActuator.cpp.
References GetDocument(), CDoc::GetSelectedObject(), IDP_ACTUATOR, m_bSnap, m_menuPopup, m_sActuator, m_slider, and RestoreLayout().
void CActuator::OnRButtonUp | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
void CActuator::OnSize | ( | UINT | nType, | |
int | cx, | |||
int | cy | |||
) | [protected] |
void CActuator::OnUpdate | ( | CView * | pSender, | |
LPARAM | lHint, | |||
CObject * | pHint | |||
) | [protected, virtual] |
Definition at line 155 of file srActuator.cpp.
References Simulation::getActuatorportId(), Simulation::getActuatorportMaxValue(), Simulation::getActuatorportMinValue(), GetDocument(), CDoc::GetSimulation(), m_ap, m_sActuator, m_slider, OBJECT_TYPE_ACTUATORPORT, Simulation::setActuatorport(), UPDATE_ACTORS, UPDATE_OBJECTS, and UPDATE_SENSORS.
void CActuator::OnUpdateViewSnap | ( | CCmdUI * | pCmdUI | ) | [protected] |
void CActuator::OnViewSnap | ( | ) | [protected] |
bool CActuator::RestoreLayout | ( | ) | [private] |
Definition at line 53 of file srActuator.cpp.
References GetDocument(), CDoc::IsRestoringLayout(), m_bSnap, m_sActuator, m_slider, CDoc::NewSection(), CDoc::ReadInt(), and CDoc::ReadString().
Referenced by OnInitialUpdate().
void CActuator::WriteLayout | ( | ) |
Definition at line 29 of file srActuator.cpp.
References GetDocument(), m_bSnap, m_sActuator, m_slider, CDoc::NewSection(), CDoc::WriteInt(), and CDoc::WriteString().
int CActuator::m_ap [private] |
Definition at line 15 of file srActuator.h.
Referenced by OnUpdate(), OnUpdateViewSnap(), and OnViewSnap().
bool CActuator::m_bSnap [private] |
Definition at line 16 of file srActuator.h.
Referenced by IsSnap(), OnInitialUpdate(), OnUpdateViewSnap(), OnViewSnap(), RestoreLayout(), and WriteLayout().
CMenu CActuator::m_menuPopup [private] |
CString CActuator::m_sActuator [private] |
Definition at line 14 of file srActuator.h.
Referenced by OnInitialUpdate(), OnUpdate(), RestoreLayout(), and WriteLayout().
CActuatorSlider CActuator::m_slider [private] |
Definition at line 13 of file srActuator.h.
Referenced by OnInitialUpdate(), OnSize(), OnUpdate(), RestoreLayout(), and WriteLayout().