Utility Class Reference

Some utility routines. More...

#include <Utility.h>

List of all members.

Static Public Member Functions

static void DrawQuad (const Point &p1, const Point &p2, const Point &p3, const Point &p4)
static void DrawBoundingBox (BoundingBox bounding_box)
static void SetColor (float red, float green, float blue, float alpha)
static Point GetPointFromBox (const BoundingBox &box, int index)

Static Private Attributes

static float color [4] = {1.0f, 1.0f, 1.0f, 0.0f}


Detailed Description

Some utility routines.

Some helpful utility routines.

Definition at line 17 of file Utility.h.


Member Function Documentation

void Utility::DrawBoundingBox BoundingBox  bounding_box  )  [static]
 

Draws a bounding box.

Parameters:
bounding_box The bounding box which shall be drawn.

Definition at line 30 of file Utility.cpp.

void Utility::DrawQuad const Point p1,
const Point p2,
const Point p3,
const Point p4
[static]
 

Draws a quad defined by four points.

Parameters:
p1 First point of the quad.
p2 Second point of the quad.
p3 Third point of the quad.
p4 Fourth point of the quad.

Definition at line 3 of file Utility.cpp.

Point Utility::GetPointFromBox const BoundingBox box,
int  index
[static]
 

Retrieves a corner of the bounding box. The point is specified by an index in the range from 0 to 7.

Parameters:
box The bounding box for which a specific point shall be retrieved.
index Index specifying the point of the box.
Returns:
A corner of the bounding box.

Definition at line 91 of file Utility.cpp.

void Utility::SetColor float  red,
float  green,
float  blue,
float  alpha
[static]
 

Sets the color used for drawing the quad or the bounding box.

Parameters:
red The red part of the drawing color.
green The green part of the drawing color.
blue The blue part of the drawing color.
alpha The alpha value of the drawing color.

Definition at line 81 of file Utility.cpp.


Member Data Documentation

float Utility::color = {1.0f, 1.0f, 1.0f, 0.0f} [static, private]
 

Color used for drawing the quad and the bounding box.

Definition at line 58 of file Utility.h.


Generated on Sun Jul 2 13:20:41 2006 for Demo by  doxygen 1.4.6-NO