From e0b180a728b4cb091fbf76172658409806121b6f Mon Sep 17 00:00:00 2001
From: darker <mr.darker@163.com>
Date: 星期四, 16 一月 2025 17:46:31 +0800
Subject: [PATCH] 1. 添加Robot移动标识 2. 添加Gdiplus模块 3. 添加Robot旋转的函数(未完成)

---
 SourceCode/Bond/Servo/ServoGraph.cpp |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/ServoGraph.cpp b/SourceCode/Bond/Servo/ServoGraph.cpp
index 718661c..32d4dfa 100644
--- a/SourceCode/Bond/Servo/ServoGraph.cpp
+++ b/SourceCode/Bond/Servo/ServoGraph.cpp
@@ -627,3 +627,21 @@
 		SendMessage(m_hWndTooltip, TTM_ADDTOOL, 0, (LPARAM)(LPTOOLINFO)&tti);
 	}
 }
+
+void CServoGraph::UpdateImageCoordinates(int id, int newX, int newY)
+{
+	IMAGE* pImage = GetImage(id);
+	if (pImage != nullptr) {
+		pImage->x = newX;
+		pImage->y = newY;
+	}
+}
+
+void CServoGraph::UpdateIndicateBoxCoordinates(int id, int newX, int newY)
+{
+	INDICATEBOX* pIndicateBox = GetIndicateBox(id);
+	if (pIndicateBox != nullptr) {
+		pIndicateBox->x = newX;
+		pIndicateBox->y = newY;
+	}
+}
\ No newline at end of file

--
Gitblit v1.9.3