From f77e8008cac062596058fca2aeddda62b80bedbf Mon Sep 17 00:00:00 2001 From: kojingeun <diteam.co.kr> Date: 금, 14 7월 2023 17:03:10 +0900 Subject: [PATCH] Merge branch 'feature/#4517_CF_AOI_Review_결과_파일_찾기_실패_개선' into develop --- ReviewHistory/include/akGraph/akDataVector2.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/ReviewHistory/include/akGraph/akDataVector2.h b/ReviewHistory/include/akGraph/akDataVector2.h new file mode 100644 index 0000000..1f61337 --- /dev/null +++ b/ReviewHistory/include/akGraph/akDataVector2.h @@ -0,0 +1,57 @@ +#pragma once + +#include <vector> +#include "akGraphStruct.h" + +struct _DataVector2 +{ + _DataVector2(double x1, double y1) + { + x = x1; + y = y1; + hidden = false; + } + _DataVector2() + { + x=y=0; + hidden = false; + } + void set(double x1, double y1) + { + x = x1; + y = y1; + } + double x; + double y; + bool hidden; +}; + +class AFX_EXT_CLASS CakDataVector2 +{ +public: + CakDataVector2(void); + ~CakDataVector2(void); + +public: + CakDataVector2& operator=(CakDataVector2& data); + +public: + + + int GetDataNum(){return int(m_vecData.size());}; + + virtual void Clear(); + //지정 인덱스가 존재하지 않는다면 데이터변경을 하지 않는다. + virtual bool SetData(int index, double x, double y); + //인덱스가 현제 존재하는 데이터 범위를 벗어나면 젤끝에 추가한다. + virtual void AddData(double x, double y, int index = -1); + + virtual void SetHidden(bool enable, int startIndex, int endIndex); + +protected: + +public: + std::vector<_DataVector2> m_vecData; + CSeries m_SeriesOption; + +}; -- Gitblit v1.9.3