#ifndef ICLS_SHAPE_H
|
#define ICLS_SHAPE_H
|
|
#include "typesdef.h"
|
|
class IClsShape
|
{
|
public:
|
virtual ~IClsShape() {};
|
|
public:
|
//1. ÉèÖÃshape
|
virtual int setShape(int shape) = 0;
|
|
//2. ÉèÖòÎÊý
|
virtual bool setValue(const RECT1 value) = 0;
|
virtual bool setValue(const RECT2 value) = 0;
|
virtual bool setValue(const Circle2D value) = 0;
|
virtual bool setValue(const Region2D value) = 0;
|
virtual bool setValue(const Line2D value) = 0;
|
virtual bool setValue(const CROSS value) = 0;
|
|
public:
|
//1. »ñÈ¡ÐÎ̬
|
virtual int getShape(void) = 0;
|
|
//2. »ñÈ¡Êý¾Ý
|
virtual bool getValue(RECT1 &value) = 0;
|
virtual bool getValue(RECT2 &value) = 0;
|
virtual bool getValue(Circle2D &value) = 0;
|
virtual bool getValue(Region2D &value) = 0;
|
virtual bool getValue(Line2D &value) = 0;
|
virtual bool getValue(CROSS &value) = 0;
|
|
public:
|
//1. ¿½±´Êý¾Ý
|
virtual bool copy(IClsShape *pShape) = 0;
|
|
};
|
#endif
|