| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #pragma once
- #include "afx.h"
- #include "IntRange.h"
- #include "DoubleRange.h"
- #include "XMLSerialization.h"
- // COTSStageData command target
- namespace OTSMODEL
- {
- using namespace OTSDATA;
- __declspec(dllexport) const int DEFUALT_PARTICALE_AREA_MIN = 1;
- __declspec(dllexport) const int DEFUALT_PARTICALE_AREA_MAX = 200;
- __declspec(dllexport) const int DEFUALT_BG_GRAY_LEVEL_MIN = 150;
- __declspec(dllexport) const int DEFUALT_BG_GRAY_LEVEL_MAX = 255;
- __declspec(dllexport) const int DEFUALT_PARTICLE_GRAY_LEVEL_MIN = 5;
- __declspec(dllexport) const int DEFUALT_PARTICLE_GRAY_LEVEL_MAX = 155;
- class __declspec(dllexport) COTSImageProcessParam : public xmls::ISlo
- {
- public:
- COTSImageProcessParam(); // constructor
- COTSImageProcessParam(const COTSImageProcessParam&); // copy constructor
- COTSImageProcessParam(COTSImageProcessParam*); // copy constructor
- COTSImageProcessParam& operator=(const COTSImageProcessParam&); // =operator
- BOOL operator==(const COTSImageProcessParam&); // =operator
- virtual ~COTSImageProcessParam(); // detractor
- // serialization
-
- void Serialize(bool isStoring, tinyxml2::XMLDocument * classDoc, tinyxml2::XMLElement * rootNode);
-
- CDoubleRange GetIncArea() const { return m_oIncArea; }
- void SetIncArea(CDoubleRange a_oVal) { m_oIncArea = a_oVal; }
-
- BOOL GetShowAreaUp() { return m_bShowAreaUp; }
- void SetShowAreaUp(BOOL a_bValue) { m_bShowAreaUp = a_bValue; }
-
- BOOL GetShowAreaLow() { return m_bShowAreaLow; }
- void SetShowAreaLow(BOOL a_bValue) { m_bShowAreaLow = a_bValue; }
-
- CIntRange GetBGGray() const { return m_oBGGray; }
- void SetBGGray(CIntRange a_oVal) { m_oBGGray = a_oVal; }
- BOOL GetShowBGUp() { return m_bShowBGUp; }
- void SetShowBGUp(BOOL a_bValue) { m_bShowBGUp = a_bValue; }
-
- BOOL GetShowBGLow() { return m_bShowBGLow; }
- void SetShowBGLow(BOOL a_bValue) { m_bShowBGLow = a_bValue; }
-
- CIntRange GetParticleGray() const { return m_oParticleGray; }
- void SetParticleGray(CIntRange a_oVal) { m_oParticleGray = a_oVal; }
- BOOL GetShowPGUp() { return m_bShowPGUp; }
- void SetShowPGUp(BOOL a_bValue) { m_bShowPGUp = a_bValue; }
- BOOL GetShowPGLow() { return m_bShowPGLow; }
- void SetShowPGLow(BOOL a_bValue) { m_bShowPGLow = a_bValue; }
- protected:
- // cleanup
- void Cleanup();
- // initialization
- void Init();
- // duplication
- void Duplicate(const COTSImageProcessParam& a_oSource);
- private:
- CDoubleRange m_oIncArea; //셸憧膠충생
- BOOL m_bShowAreaUp;
- BOOL m_bShowAreaLow;
- CIntRange m_oBGGray; //교쒼뿍똑
- BOOL m_bShowBGUp;
- BOOL m_bShowBGLow;
- CIntRange m_oParticleGray; //셸憧膠뿍똑
- BOOL m_bShowPGUp;
- BOOL m_bShowPGLow;
- };
- typedef std::shared_ptr<COTSImageProcessParam> __declspec(dllexport) COTSImageProcessParamPtr;
- typedef std::vector<COTSImageProcessParamPtr> __declspec(dllexport) COTSImageProcessParamsList;
- }
|