Main Page   Class Hierarchy   Compound List   File List   Compound Members  

rectangle.h

00001 #ifndef _RECTANGLE_H_
00002 #define _RECTANGLE_H_
00003 
00004 // parent include
00005 #include "animobject.h"
00006 
00007 namespace cganim
00008   {
00009   
00010   
00013   class Rectangle: public AnimObject
00014     {
00015     public:
00016 
00018       Rectangle()
00019         {
00020         m_corners[0].SetValue(-1, -1, 0);
00021         m_corners[1].SetValue(1, -1, 0);
00022         m_corners[2].SetValue(1, 1, 0);
00023         m_corners[3].SetValue(-1, 1, 0);
00024         }
00025 
00027       gml::Vector3d GetCorner(int i) const
00028         {
00029         return m_corners[i];
00030         }
00031 
00032 
00034       void SetCorner(int i, const gml::Vector3d& corner)
00035         {
00036         m_corners[i] = corner;
00037         }
00038 
00039     private:
00040 
00042       gml::Vector3d m_corners[4];
00043 
00044     };
00045   }
00046 
00047 
00048 #endif

Generated on Wed May 5 13:20:39 2004 for AnimDatalibrary by doxygen1.3