Main Page   Class Hierarchy   Compound List   File List   Compound Members  

MyCube Class Reference

Class representing a cube. More...

#include <MyCube.h>

Inheritance diagram for MyCube:

MyObject List of all members.

Public Methods

virtual void Init (MyObject *obj)
 Initialisation of this object with another object.

CPoint3D GetMaxPoint ()
 Returns point with maximal xyz-coordinates.

CPoint3D GetMinPoint ()
 Returns point with minimal xyz-coordinates.

 MyCube (CPoint3D position, float size, float lineWidth, GLubyte *rgba)
float GetSize ()
 Returns size of cube.

void SetSize (float size)
 Sets size of cube.

virtual void SetPosition (CPoint3D position)
 Sets current position of this object.

virtual void Draw ()
 Draw function for drawing this object in window using OpenGL.

virtual bool IsInside (CPoint3D pos)
 Test if pos is inside or outside object.

 MyCube ()
virtual ~MyCube ()

Protected Methods

void UpdateMinPoint ()
void UpdateMaxPoint ()

Protected Attributes

CPoint3D m_MinPoint
CPoint3D m_MaxPoint
float m_Size

Detailed Description

Class representing a cube.


The documentation for this class was generated from the following files:
Generated on Fri Aug 9 10:12:40 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002