Main Page   Class Hierarchy   Compound List   File List   Compound Members  

MyObject.h

00001 // MyObject.h: interface for the MyObject class.
00002 //
00004 
00005 #if !defined(AFX_MYOBJECT_H__01F7ED7C_2DAA_4FE0_A4DB_3B0C6B8DCB85__INCLUDED_)
00006 #define AFX_MYOBJECT_H__01F7ED7C_2DAA_4FE0_A4DB_3B0C6B8DCB85__INCLUDED_
00007 #include "gl/gl.h"
00008 #include "Point3D.h"    // Added by ClassView
00009 
00010 #if _MSC_VER > 1000
00011 #pragma once
00012 #endif // _MSC_VER > 1000
00013 
00015 class MyObject  
00016 {
00017 public:
00019         virtual void Init(MyObject *obj) = 0;
00021         float GetLineWidth();
00023         CPoint3D GetPosition();
00025         void GetRgba(GLubyte *rgba);
00026         
00028         virtual void SetLineWidth(float lineWidth);
00030         virtual void SetPosition(CPoint3D position);
00032         virtual void SetRgba(GLubyte *rgba);
00033         
00035         virtual void Draw() = 0;
00037         virtual bool IsInside(CPoint3D pos) = 0;
00038 
00039         MyObject();
00040         virtual ~MyObject();
00041 
00042 protected:
00043         CPoint3D m_Position;
00044         GLubyte m_Rgba[4];
00045         float m_LineWidth;
00046 
00047 };
00048 
00049 #endif // !defined(AFX_MYOBJECT_H__01F7ED7C_2DAA_4FE0_A4DB_3B0C6B8DCB85__INCLUDED_)

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