pmc/include/rectangle.hpp
changeset 65 76514757b0d6
equal deleted inserted replaced
64:993b97c4ad2d 65:76514757b0d6
       
     1 /**
       
     2  * test/demos/pmc/include/rectangle.h
       
     3  * Copyright (C) 2008 Markus Broeker
       
     4  */
       
     5 
       
     6 #ifndef RECTANGLE_H
       
     7 #define RECTANGLE_H
       
     8 
       
     9 #include <surface.hpp>
       
    10 #include <vector.hpp>
       
    11 #include <drawable.hpp>
       
    12 
       
    13 class Rectangle:public Drawable {
       
    14   private:
       
    15     algebra::Vector * P[4];
       
    16 
       
    17   public:
       
    18     Rectangle (Surface *, algebra::Vector & p1, algebra::Vector & p2, algebra::Vector & p3, algebra::Vector & p4);
       
    19     Rectangle (Surface *, algebra::Vector[4]);
       
    20     Rectangle (Surface *);
       
    21     Rectangle (const Rectangle &);
       
    22     virtual ~ Rectangle ();
       
    23 
       
    24     void move (algebra::Vector);
       
    25     void show ();
       
    26 };
       
    27 #endif