#include <MyCube.h>
Inheritance diagram for MyCube:
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 |