| | |
| | | #pragma once |
| | | #include "ServoGraph.h" |
| | | #include "ServoCommo.h" |
| | | #include "CSlotTableCtrl.h" |
| | | |
| | | namespace SERVO { |
| | | class CEquipment; |
| | | class CGlass; |
| | | } |
| | | |
| | | enum DeviceStatus { |
| | | ONLINE, // 在线 |
| | |
| | | POINT LoadArmOffset(const std::string& armName); |
| | | void SaveArmOffset(const std::string& armName, const POINT& pt); |
| | | |
| | | void UpdateSlotBars(); |
| | | void BuildSlotColors(SERVO::CEquipment* pEq, std::vector<COLORREF>& colors); |
| | | COLORREF GetSlotColor(SERVO::CGlass* pGlass, BOOL isProcessing); |
| | | |
| | | void ApplySlotBarTestPattern(int mode); |
| | | void UpdateLegendPosition(); |
| | | void UpdateSlotTable(SERVO::CEquipment* pEquipment); |
| | | void LayoutSlotTable(); |
| | | |
| | | private: |
| | | IObserver* m_pObserver; |
| | | CServoGraph* m_pGraph; |
| | | BOOL m_bIsRobotMoving; |
| | | COLORREF m_crBkgnd; |
| | | HBRUSH m_hbrBkgnd; |
| | | int m_slotBarTestMode; |
| | | |
| | | // ===== 机器人动画相关成员变量 ===== |
| | | |
| | |
| | | // 两个机械臂相对于机器人中心的偏移(像素坐标) |
| | | POINT m_arm1Offset; |
| | | POINT m_arm2Offset; |
| | | SERVO::CEquipment* m_pSelectedEquipment; |
| | | CSlotTableCtrl m_slotTable; |
| | | int m_slotTableRowCount; |
| | | int m_slotTableRowHeight; |
| | | int m_slotTablePadding; |
| | | int m_slotTableHeaderHeight; |
| | | int m_slotTableTitleHeight; |
| | | |
| | | |
| | | // 对话框数据 |