Скачиваний:
9
Добавлен:
01.05.2014
Размер:
1.03 Кб
Скачать
// Copyright (C) 1991 - 1999 Rational Software Corporation

#if defined (_MSC_VER) && (_MSC_VER >= 1000)
#pragma once
#endif
#ifndef _INC_FIGURE_47091A400119_INCLUDED
#define _INC_FIGURE_47091A400119_INCLUDED

//##ModelId=47091A400119
class Figure :public CObject
{
private:
	
public:
	//##ModelId=470924470109
	virtual double area() = 0;

	Figure();

	virtual ~Figure();

	//##ModelId=4709290C0399
	virtual void move(CSize& size) = 0;

	//##ModelId=472F355601A5
	virtual void draw(CDC* pDC, COLORREF color, int pen) = 0;

	virtual void setColor(COLORREF color) = 0;

	virtual CRect getBoundRect() const = 0;

	virtual int getPenWidth() const = 0;

	virtual COLORREF getColor() const = 0;

	virtual CPoint getCenterPoint() const = 0;

	virtual void writeIn(CArchive& ar) const {}

	friend CArchive& operator<<(CArchive& ar, const Figure& rhs) {
		rhs.writeIn(ar);
		return ar;
	}

private:

	static long count_ID;

	long ID;

};

#endif /* _INC_FIGURE_47091A400119_INCLUDED */
Соседние файлы в папке Лабораторная работа 23