Main Page   Class Hierarchy   Compound List   File List   Compound Members  

MyRectangle Class Reference

Class representing a rectangle. More...

#include <MyRectangle.h>

Inheritance diagram for MyRectangle:

MyObject List of all members.

Public Methods

float GetLength ()
 Returns rectangle length.

float GetWidth ()
 Returns rectangle width.

float GetHeight ()
 Returns rectangle height.

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.

void SetHeight (float height)
 Sets rectangle height.

void SetWidth (float width)
 Sets rectangle width.

void SetLength (float length)
 Sets rectangle length.

 MyRectangle (CPoint3D position, float length, float width, float height, float lineWidth, GLubyte *rgba)
 Constructor intialising position, size, line width, rgba.

 MyRectangle ()
 Standard constructor.

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.

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

virtual ~MyRectangle ()

Protected Methods

void UpdateMinPoint ()
void UpdateMaxPoint ()

Protected Attributes

CPoint3D m_MinPoint
CPoint3D m_MaxPoint
float m_Length
float m_Height
float m_Width

Detailed Description

Class representing a rectangle.


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