Main Page   Class Hierarchy   Compound List   File List   Compound Members  

MyCube.h

00001 // MyCube.h: interface for the MyCube class.
00002 //
00004 
00005 #if !defined(AFX_MYCUBE_H__5F1F9736_8D0F_4520_AD22_84DEA43CC2CD__INCLUDED_)
00006 #define AFX_MYCUBE_H__5F1F9736_8D0F_4520_AD22_84DEA43CC2CD__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include "MyObject.h"
00013 #include "Point3D.h"    // Added by ClassView
00014 
00016 class MyCube : public MyObject
00017 {
00018 public:
00019         virtual void Init(MyObject *obj);
00021         CPoint3D GetMaxPoint();
00023         CPoint3D GetMinPoint();
00024         MyCube(CPoint3D position, float size, float lineWidth,GLubyte *rgba);
00026         float GetSize();
00028         void SetSize(float size);
00029         virtual void SetPosition(CPoint3D position);
00030 
00031         virtual void Draw();
00032         virtual bool IsInside(CPoint3D pos);
00033         MyCube();
00034         virtual ~MyCube();
00035 protected:
00036         void UpdateMinPoint();
00037         void UpdateMaxPoint();
00038 
00039         CPoint3D m_MinPoint;
00040         CPoint3D m_MaxPoint;
00041 
00042         float m_Size;
00043 };
00044 
00045 #endif // !defined(AFX_MYCUBE_H__5F1F9736_8D0F_4520_AD22_84DEA43CC2CD__INCLUDED_)

Generated on Fri Aug 9 10:12:39 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002