Скачиваний:
10
Добавлен:
01.05.2014
Размер:
1.7 Кб
Скачать
//File CPList.h
//Naznachenie: Proekt klassa "nabor mnogougolnikov"
//Author: Pavel Morozov
//Redakcija: 2.0 13.04.07

#ifndef cplist_h
#define cplist_h

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

#include"ctablet.cpp"
#include"celpoly.h"



class CPolyList 
   {
    CElPoly *LptrPoly;
    const unsigned int ID;          // identifikacionnyj nomer objekta
    static unsigned int HistNum;    // obshee kolichestvo sozdannyh objektov
    static unsigned int Counter;    // kolichestvo sushestvujushih objektov

    public:

//--------------------Konstruktor--------------------------
	      CPolyList();

//--------------Funkcii interfejsa-----------------------

	  //Vstavka novogo elementa
	 void InsertPoly(CElPoly *EptrPoly);//,CPolygon *EptrPoly2);

	 //Vyvod spiska elementov
	 void OutListPoly();
         
	 //peremeshenie na dx i dy
	 void MovePoly(float dx,float dy,int t);

	 //vrashenie vokrug zadannnoj tochki Q
	 void RotatePoly(CPoint &Q, float fi,int t);

	 //nahozdenie ploshadi
	 void CPolyList::SquarePoly();

	 void GetXY(float &x_1,float &y_1,float &x_2,float &y_2,float &x_3,float &y_3,float &x_4,float &y_4,int t);

         const unsigned int GetID();
         // Poluchit dentifikacionnyj nomer objekta

         static unsigned int GetHistNum();
         // Poluchit obshee kolichestvo sozdannyh objektov
   
         static unsigned int GetCounter();
         // Poluchit kolichestvo sushestvujushih objektov
  

//-------------------------Destruktor-------------
	     ~CPolyList();

	} ;
	unsigned int CPolyList::Counter=0;
	unsigned int CPolyList::HistNum=0;
#endif
Соседние файлы в папке LAB 3