Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа 33 / LAB 3 / CVIEW
.H//File Cview.h
//Naznachenie: Opredelenie funkcij klassa "nabor cvetnyh mnogougolnikov na planshete"
//Author: Pavel Morozov
//Redakcija: 2.0 13.04.07
#ifndef cview_h
#define cview_h
#include<iostream.h>
#include<math.h>
#include<conio.h>
#include<stdio.h>
#include"cplist.h"
#include"cplist.cpp"
class CView: private CPolyList,public CPlanshet
{ CPolyList *ListPoly;
const unsigned int ID; // identifikacionnyj nomer objekta
static unsigned int HistNum; // obshee kolichestvo sozdannyh objektov
static unsigned int Counter; // kolichestvo sushestvujushih objektov
public:
//------------------Konstruktor klassa CPlanshet-----------------
CView(CPolyList *ListPoly0=NULL);
void SetPtr(CPolyList *ListPoly0);
void OutList();
//vyvod na ekran informacii o planshete i nabore mnogougolnikov
void Move_Set_Planshet_dx_dy(float dx,float dy);
//peremeshenie nabora mnogougolnikov i plansheta na dx i dy
void Rotate_Set_Planshet_dx_dy(CPoint &Q, float delta);
//vrashenie mnogougolnika i plansheta vokrug zadannoj tochki Q
CPolyList *GetList();
void Rotate_Set(CPoint &Q, float delta,int t);
void Move_Set( float dx, float dy,int t);
void MoveFigure(float dx,float dy);
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------------------------------
~CView();
};
unsigned int CView::Counter=0;
unsigned int CView::HistNum=0;
#endif