GLWProgress Class Reference

#include <GLWProgress.h>

Inheritance diagram for GLWProgress:

GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

 GLWProgress (float x=0.0f, float y=0.0f, float w=0.0f, float min=0.0f, float max=100.0f)
virtual ~GLWProgress ()
virtual void draw ()
const float getCurrent ()
void setCurrent (float newCurrent)
 REGISTER_CLASS_HEADER (GLWProgress)

Protected Attributes

float x_
float y_
float w_
float min_
float max_
float current_


Detailed Description

Definition at line 32 of file GLWProgress.h.


Constructor & Destructor Documentation

GLWProgress::GLWProgress ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  min = 0.0f,
float  max = 100.0f 
)

Definition at line 26 of file GLWProgress.cpp.

GLWProgress::~GLWProgress (  )  [virtual]

Definition at line 32 of file GLWProgress.cpp.


Member Function Documentation

void GLWProgress::draw (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 37 of file GLWProgress.cpp.

References current_, GLWPanel::draw(), GL_QUADS, glBegin(), glColor3f(), glEnd(), glVertex2f(), max_, min_, w_, x_, and y_.

const float GLWProgress::getCurrent (  )  [inline]

Definition at line 41 of file GLWProgress.h.

References current_.

void GLWProgress::setCurrent ( float  newCurrent  ) 

Definition at line 52 of file GLWProgress.cpp.

References current_, max_, and min_.

GLWProgress::REGISTER_CLASS_HEADER ( GLWProgress   ) 


Member Data Documentation

float GLWProgress::x_ [protected]

Reimplemented from GLWidget.

Definition at line 47 of file GLWProgress.h.

Referenced by draw().

float GLWProgress::y_ [protected]

Reimplemented from GLWidget.

Definition at line 47 of file GLWProgress.h.

Referenced by draw().

float GLWProgress::w_ [protected]

Reimplemented from GLWidget.

Definition at line 47 of file GLWProgress.h.

Referenced by draw().

float GLWProgress::min_ [protected]

Definition at line 48 of file GLWProgress.h.

Referenced by draw(), and setCurrent().

float GLWProgress::max_ [protected]

Definition at line 48 of file GLWProgress.h.

Referenced by draw(), and setCurrent().

float GLWProgress::current_ [protected]

Definition at line 49 of file GLWProgress.h.

Referenced by draw(), getCurrent(), and setCurrent().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:02 2009 for Scorched3D by  doxygen 1.5.3