Скачиваний:
10
Добавлен:
01.05.2014
Размер:
1.35 Кб
Скачать
//File ctablet.h?
//Naznachenie: Opredelenie funkcij klassa ?Planshet?
//Author Pavel Morozov
//Red: 1.0 6.05.07

#ifndef Ctablet_h
#define Ctablet_h


#include<iostream.h>
#include<math.h>
#include<conio.h>
#include<stdio.h>

#include"cpoint.h"




class CPlanshet
      {
	private:
	CPoint A;    //Atributy
	CPoint B;
	CPoint C;
	CPoint D;
	public:

//------------------Konstruktor klassa CPlanshet---------------------------
		CPlanshet (CPoint A0=CPoint(-10,10),
			   CPoint B0=CPoint(10,10),
			   CPoint C0=CPoint(-10,-10),
			   CPoint D0=CPoint(10,-10)); // spisok inicializacij
						      
//-----------------Funkcii interfejsa--------------------------------

		void SetFigureXY( float Ax0, float Ay0,
				  float Bx0, float By0,
				  float Cx0, float Cy0,
				  float Dx0, float Dy0);
		//zadanie atributov plansheta



 		void GetFigureXY( float &Ax0, float &Ay0,
				  float &Mx0, float &My0,
				  float &Cx0, float &Cy0,
				  float &Dx0, float &Dy0);
		//Poluchenie koordinat plansheta


                
virtual          void MoveFigure(float dx,float dy);
                //peremeshenie plansheta na dx i dy


 		void OutList();
		//vyvod na ekran tochek plansheta
//-----------------------Destruktor------------------------------
virtual 		~CPlanshet();

		
};
#endif
Соседние файлы в папке LAB 3