mrDarker
2025-08-08 421c49432b4fec542d1ac941490dac867281237a
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
#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