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