SDC C-Project CF Review 프로그램
LYW
2021-11-09 9ad2aa59da822e9d30c5e0cd677025fe6e12df95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#pragma once
 
#include <vector>
#include "AlignPositionInfo.h"
 
enum GlassCornetCutDirection    { GLASS_CORNERCUT_LEFT_TOP = 0, GLASS_CORNERCUT_RIGHT_TOP, GLASS_CORNERCUT_LEFT_BOTTOM, GLASS_CORNERCUT_RIGHT_BOTTOM, GLASS_CORNERCUT_DIRECTION_COUNT };
 
typedef std::vector<CString>            VectorTemplateImagePath;
typedef std::vector<CString>::iterator    VectorTemplateImagePathIt;
 
class AFX_EXT_CLASS CGlassTypeInfo
{
public:
    CGlassTypeInfo(void);
    virtual ~CGlassTypeInfo(void);
 
public:
    void Reset();
    void SetInfo(const CGlassTypeInfo& rhs);
    void GetInfo(CGlassTypeInfo& rhs);
 
    // Template image path
    int GetTemplateImagePathCount() const                    { return (int)m_vecTemplateImagePath.size(); }
    CString* GetTemplateImagePath(int nIndex);
    const CString* GetTemplateImagePath(int nIndex) const;
    void SetTemplateImagePathCount(int nCount);
 
    // getter AlignPosition
    int GetAlignPositionInfoCount() const                    { return (int)m_vecAlignPositionInfo.size(); }
    CAlignPositionInfo* GetAlignPositionInfo(int nIndex);
    const CAlignPositionInfo* GetAlignPositionInfo(int nIndex) const;
    void SetAlignPositionInfoCount(int nCount);
 
    //MOTOR OFFSET 181126
    double GetMotorOffsetX() const                        {return m_dMotorOffsetX;}
    double GetMotorOffsetY() const                        {return m_dMotorOffsetY;}
    void SetMotorOffsetX(double dOffsetX)                {m_dMotorOffsetX = dOffsetX;}
    void SetMotorOffsetY(double dOffsetY)                {m_dMotorOffsetY = dOffsetY;}
 
public:
    BOOL m_bStandardGlassType;
 
    int    m_nGlassSizeX;
    int m_nGlassSizeY;
    BOOL m_bUseCenterCoodinateSystem;
    BOOL m_bUseInverseCoordinate;
 
    int m_nCornerCutDirection;
    int m_nOriginDirection;
 
    int m_nFirstAlignFindPixelX;
    int m_nFirstAlignFindPixelY;
    int m_nSecondAlignFindPixelX;
    int m_nSecondAlignFindPixelY;
    
    double m_dFirstAlignGlassX;
    double m_dFirstAlignGlassY;
    double m_dSecondAlignGlassX;
    double m_dSecondAlignGlassY;
 
    double m_dFirstAlignMotorX;
    double m_dFirstAlignMotorY;
    double m_dSecondAlignMotorX;
    double m_dSecondAlignMotorY;
    
    double m_dOriginMotorX;
    double m_dOriginMotorY;
 
    int  m_nUseAlignPosMove;
    
    double m_dAlignAngle;
    double m_dMatchingThreshold;
    CString m_strGlassTypeName;
 
    //¿ÀÇÁ¼Â cmark  
    double m_dMotorOffsetX;
    double m_dMotorOffsetY;
 
    int nPlag;
 
 
    VectorTemplateImagePath m_vecTemplateImagePath;
 
protected:
    VectorAlignPositionInfo    m_vecAlignPositionInfo;
};