40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : XCurve 类
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: XCurve 类声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _XCURVE_H_
|
|
#define _XCURVE_H_
|
|
|
|
#ifndef _XENTITY_H_
|
|
#include "XEntity.h"
|
|
#endif
|
|
|
|
class GEOAPI XCurve : public XEntity
|
|
{
|
|
public:
|
|
|
|
virtual bool IsKindOf(TEntityId entType) const;
|
|
virtual TEntityId Type() const;
|
|
|
|
virtual void TransformBy(ads_matrix mat);
|
|
virtual int GetExtend(XPoint &ptlow, XPoint &ptup) const;
|
|
//图形长度,周长
|
|
virtual ads_real GetLength() const;
|
|
virtual int Make(const TCHAR *szlay = NULL) const;
|
|
virtual int MakeEntity(const Entity* pEntity) const;
|
|
virtual int HitTest2d(const XPoint &ptTest) const;
|
|
virtual int OSnap(int nMode, XPoint &ptPick) const;
|
|
|
|
protected:
|
|
XCurve();
|
|
virtual ~XCurve();
|
|
};
|
|
|
|
#endif
|