33 uiProgress::uiProgress(
void)
42 uiProgress::~uiProgress(
void)
48 void uiProgress::init()
51 _tBorder = _pSkin->parameter(
"TX_EDIT").texture();
52 _tProgress = _pSkin->parameter(
"TX_PROGRESS").texture();
71 fp->readDouble(&_dMin, M_FALSE);
72 fp->readDouble(&_dMax, M_FALSE);
73 fp->readDouble(&_dCurrent, M_FALSE);
87 laRenderer* pr = ::laSystemIntegrator::getRenderer();
89 double dLWidth = (_tBorder.w)/4.0;
96 _dCurrent = _pTask->progress();
106 _ptPos + laPoint3(dLWidth, 0),
_ptSize - laPoint3(2*dLWidth, 0),
113 pr->styleSet( _pSkin->parameter(
"CL_BUTTON").color() );
119 laPoint3 ptSize =
_ptSize + laPoint3(-14, -10);
120 double dFraction = (_dCurrent-_dMin)/ (_dMax-_dMin);
121 ptSize[0] *= dFraction;
124 _ptPos + laPoint3(4+3, 4+2), ptSize,
128 pr->styleSet( _pSkin->parameter(
"CL_SHADOW_DARK").color() );
132 _ptPos + laPoint3(4, 4), ptSize,
136 pr->styleSet( _pSkin->parameter(
"CL_BUTTON").color() );
142 void uiProgress::setRange(
double min,
double max)
149 void uiProgress::setValue(
double val)
laPoint3 _ptPos
Windos position (relative to parent)
virtual void kill()
Discard window and all children.
virtual void load(class laFileParser *fp)
Load a dialog layout form .cui file.
virtual void vquadsDrawSingle(laPoint2 *ar_uv=NULL)=0
Draw a single VQ (Note this is slower than drawing an array of VQ and should be avoided) ...
void draw()
Display the window.
void vquadsMakeXYRect(unsigned nIndex, const laPoint3 &pos, const laPoint3 &sz, const laPoint2 &uv, const laPoint2 &uv_sz)
Makes a quad aligned to the XY plane; (handy for GUI rendering )
virtual void create(laPoint3 pos, laPoint3 size)
Create new empty window.
laPoint3 _ptSize
Window size.
virtual void load(class laFileParser *fp)
Load a dialog layout form .cui file.
virtual void vquadsDraw(unsigned nQuads, laPoint2 *ar_uv=NULL, laColor *ar_color=NULL, M_BOOL bBillboards=M_FALSE, M_BOOL bUseColorArrays=M_FALSE)=0
Draw an array of VQ, starting with the psecified pointers (or the first VQ if null) ...
virtual void create(laPoint3 pos, laPoint3 size)
Create new empty window.
Virtual interface for the Engine graphics renderer.
virtual void draw()
Display the window.
virtual void kill()
Discard window and all children.