SDC C-Project CF Review 프로그램
LYW
2021-08-09 b354c153b0074e5d54371bc05b12edbe8e613a19
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
#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 
        );
};