chenluhua1980
5 天以前 22f2984276ff75433ebeab877c96b48905826e6c
SourceCode/Bond/Servo/CPageGraph1.h
@@ -1,6 +1,12 @@
#pragma once
#include "ServoGraph.h"
#include "ServoCommo.h"
#include "CSlotTableCtrl.h"
namespace SERVO {
   class CEquipment;
   class CGlass;
}
enum DeviceStatus {
   ONLINE,       // 在线
@@ -38,12 +44,22 @@
   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;
   // ===== 机器人动画相关成员变量 =====
@@ -73,6 +89,13 @@
   // 两个机械臂相对于机器人中心的偏移(像素坐标)
   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;
// 对话框数据