|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//<2F>ļ<EFBFBD> HowToViewCurve.h
|
|
|
|
|
|
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
|
|
|
|
|
|
//
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д: 2005-12-07
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "CurvePlay.h"
|
|
|
|
|
|
using namespace NCurveEmbellish;
|
|
|
|
|
|
|
|
|
|
|
|
#define VIEWCURVE_DRAW_SOURCE_CURVE 0x00000001 //<2F><>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
|
|
|
|
|
*/
|
|
|
|
|
|
class AFX_EXT_CLASS CHowToViewCurve
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CHowToViewCurve(void);
|
|
|
|
|
|
virtual ~CHowToViewCurve(void);
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
CArray<CCurveView*,CCurveView*> value;
|
|
|
|
|
|
DWORD m_nFlags;
|
|
|
|
|
|
CString name; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>Ϊ<EFBFBD>˸<EFBFBD><CBB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʋ<EFBFBD><C6B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
virtual void Serialize(CArchive& ar, const short &ver);
|
|
|
|
|
|
virtual int Read(CFile &fr, const short& ver);
|
|
|
|
|
|
virtual void Write(CFile &fw, const short& ver, double cc=1.0);
|
|
|
|
|
|
BOOL WriteMemory(BYTE*& outBuffer, int& destLen, int formatCode);
|
|
|
|
|
|
BOOL ReadMemory(BYTE* bufData, int bufLen, int formatCode);
|
|
|
|
|
|
virtual void WriteDML(CFile &fw, const short& ver, double cc=1.0, int nBaseTabNum=1);
|
|
|
|
|
|
virtual int ReadDML(CFile &fr, const short &ver);
|
|
|
|
|
|
|
|
|
|
|
|
virtual void WritePCG(CFile &fw, const short& ver, double cc=1.0, int nBaseTabNum=1);
|
|
|
|
|
|
virtual int ReadPCG(CFile &fr, const short &ver);
|
|
|
|
|
|
|
|
|
|
|
|
CArray<CCurveView*,CCurveView*>* GetValueArray(void);
|
|
|
|
|
|
void GetNewUsing(CStringList &list);
|
|
|
|
|
|
int PositionNew(int bReplace=1);//bReaplce=TRUEʱ<45><CAB1>ʾ<EFBFBD><CABE><EFBFBD>Ų<EFBFBD>Ϊ<EFBFBD>ղ<EFBFBD><D5B2><EFBFBD><EFBFBD>¶<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F2B2BBB9>Ƿ<EFBFBD>Ϊ<EFBFBD>ն<EFBFBD><D5B6><EFBFBD><EFBFBD>¶<EFBFBD>λ
|
|
|
|
|
|
|
|
|
|
|
|
BOOL IsOnlySolid(); //<2F><><EFBFBD><EFBFBD><EFBFBD>н<EFBFBD><D0BD>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
BOOL IsSolid();
|
|
|
|
|
|
BOOL IsClose();
|
|
|
|
|
|
int IsSmooth(int nBezierOrSpline); //1=Bezier, 2=Spline, 3=Bezier And Spline
|
|
|
|
|
|
int IsSmoothClose(int nBezierOrSpline); //
|
|
|
|
|
|
|
|
|
|
|
|
void Empty();
|
|
|
|
|
|
void RemoveAt(int nIndex);
|
|
|
|
|
|
void Free(CCurveView* pCurveView);
|
|
|
|
|
|
void ScaleProperty(double sx, double sy);
|
|
|
|
|
|
void operator = (CHowToViewCurve & t );
|
|
|
|
|
|
|
|
|
|
|
|
CCurveView* SetAt(int nIndex, CCurveView* pcv);
|
|
|
|
|
|
CCurveView* SetAt(int nIndex, BYTE* bufData, int bufLen, int formatCode);
|
|
|
|
|
|
CCurveView* GetAt(int index);
|
|
|
|
|
|
|
|
|
|
|
|
int Add(CCurveView* cv);
|
|
|
|
|
|
int GetCount(void);
|
|
|
|
|
|
|
|
|
|
|
|
void EnableDrawSourceCurve(BOOL bEnable);
|
|
|
|
|
|
BOOL IsDrawSourceCurve(void);
|
|
|
|
|
|
|
|
|
|
|
|
CString GetName(void);
|
|
|
|
|
|
void SetName(CString name);
|
|
|
|
|
|
|
|
|
|
|
|
BOOL MoveUp(int nIndex);
|
|
|
|
|
|
BOOL MoveDown(int nIndex);
|
|
|
|
|
|
|
|
|
|
|
|
int Replace(COLORREF cOldColor, COLORREF cNewColor);
|
|
|
|
|
|
int SetColor(COLORREF cNewColor); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD><D0B5><EFBFBD><EFBFBD>֡<EFBFBD><D6A1><EFBFBD><EFBFBD>ߵ<EFBFBD><DFB5><EFBFBD>ɫ
|
|
|
|
|
|
|
|
|
|
|
|
//COLORREF frColorSymbol; // <20><><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
//COLORREF bkColorSymbol; // <20><><EFBFBD>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
public:
|
|
|
|
|
|
virtual int ReadPCG(void *pxp, const short &ver);
|
|
|
|
|
|
};
|