Main Page   Class Hierarchy   Compound List   File List   Compound Members  

MyObject Class Reference

Class representing a geometrical object in 3D. More...

#include <MyObject.h>

Inheritance diagram for MyObject:

MyAxisCross MyCube MyRectangle MySphere List of all members.

Public Methods

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

float GetLineWidth ()
 Returns line width used for drawing object.

CPoint3D GetPosition ()
 Returns current position of this object.

void GetRgba (GLubyte *rgba)
 Returns rgba-value of this object.

virtual void SetLineWidth (float lineWidth)
 Sets line width used for drawing object.

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

virtual void SetRgba (GLubyte *rgba)
 Sets color and opacity of this object.

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

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

 MyObject ()
virtual ~MyObject ()

Protected Attributes

CPoint3D m_Position
GLubyte m_Rgba [4]
float m_LineWidth

Detailed Description

Class representing a geometrical object in 3D.


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