From 0c66940a8e2cf64c9890519901f433b3668216b6 Mon Sep 17 00:00:00 2001
From: KEJ <kimeungju@diteam.co.kr>
Date: 수, 26 6월 2024 15:13:18 +0900
Subject: [PATCH] Ongoing80 #4942 CF AOI Review Bin File Loading 실패 개선  1. GlassRawMessenger 동기화  2. BIN파일 FindFile 제거(RawMessenger, Review 공통)  3. Unloading 시 BIN파일 제거

---
 ReviewHistory/include/akGraph/akGraphUtil.h |   61 ++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/ReviewHistory/include/akGraph/akGraphUtil.h b/ReviewHistory/include/akGraph/akGraphUtil.h
new file mode 100644
index 0000000..c23daf9
--- /dev/null
+++ b/ReviewHistory/include/akGraph/akGraphUtil.h
@@ -0,0 +1,61 @@
+#pragma once
+
+#include "akGraph/akGraphLinker.h"
+#include "akSTL/akStruct.h"
+
+
+
+#define AKSWAP_INT(a,b) { int t=a; a=b; b=t; }
+#define AKSWAP_DOUBLE(a,b) { double t=a; a=b; b=t; }
+#define AKSWAP_FLOAT(a,b) { float t=a; a=b; b=t; }
+
+class AFX_EXT_CLASS CakGraphUtil
+{
+public:
+	CakGraphUtil(void);
+	~CakGraphUtil(void);
+
+	static CakRect SetakRectAlign(CakRect rect); //왼쪽이 작은값 윗쪽이 작은값 순으로 바꾼다.
+	static bool GetCheckInArea(CakRect rect, double x, double y);//현재 영역안에 점이 있는지 검사
+	static bool GetCheckInArea(double x1, double y1, double x2, double y2, double x, double y);//현재 영역안에 점이 있는지 검사
+	static bool GetCheckInRangeX(CakRect rect, double x1); //한선상의 점이 해당 범위 안에 있는지 검사
+	static bool GetCheckInRangeY(CakRect rect, double y1); //한선상의 점이 해당 범위 안에 있는지 검사
+	static bool GetCheckInRange(double x1, double x2, double p1); //한선상의 점이 해당 범위 안에 있는지 검사
+	
+	static CRect akRectToCRect(CakRect rect);
+	
+	static BOOL GetEncCLSID(WCHAR *mime, CLSID *pClsid);
+
+	//DC를 받아서 이미지 파일로 제작(0:jpg, 1:bmp);
+	static bool MakeImageFile(CDC* pDC, char* filename, unsigned int imageformat=0);
+
+	static void CalculationTickPostionNormal(
+		double minval,				//최소값
+		double maxval,				//최대값
+		unsigned int length,					//윈도우 길이
+		unsigned int limitLength,			//최소 윈도우 길이
+		OUT double* tickgabval,		//값들의 간격
+		OUT int* decimal			//소수점이하자릿수
+		);			
+	static void CalculationTickPostionTime(
+		double minval,				//최소값
+		double maxval,				//최대값
+		unsigned int length,					//
+		unsigned int limitLength,			//
+		OUT double* tickgabval		//값들의 간격
+		);			
+	static void CalculationTickPostionMSecTime(
+		double minval,				
+		double maxval, 
+		unsigned int length, 
+		unsigned int limitLength, 
+		OUT double* tickgabval
+		);
+	static void CalculationTickPostionDegree(
+		double minval,
+		double maxval,
+		int length,
+		int limitLength, 
+		OUT double* tickgabval 
+		);
+};

--
Gitblit v1.9.3