»õ ÆÄÀÏ |
| | |
| | | #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 |
| | | ); |
| | | }; |