Main Page   Class Hierarchy   Compound List   File List   Compound Members  

MySphere Class Reference

Class representing a sphere. More...

#include <MySphere.h>

Inheritance diagram for MySphere:

MyObject List of all members.

Public Methods

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

 MySphere (CPoint3D position, float radius, float lineWidth, GLubyte *rgba)
 Constructor initialising position, radius, line width.

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

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

float GetRadius ()
 Returns radius of sphere.

void SetRadius (float radius)
 Sets radius of sphere.

 MySphere ()
 Standard constructor.

virtual ~MySphere ()

Detailed Description

Class representing a sphere.


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