}
//--------------------------------------------------
-void ColorBar::CreateWidget()
+void ColorBar::CreateWidget(wxWindow* parent)
{
// bbSetOutputWidget( new wxStaticText ( bbGetWxParent() , -1 , _T("") ) );
// Process();
bbtkDebugMessageInc("Core",9,"ColorBar::CreateWidget()"<<std::endl);
- mwxwidget = new pColorBar( bbGetWxParent() ,bbGetInputInW(), bbGetInputInH(), bbGetInputOrientation()==1);
+ mwxwidget = new pColorBar( parent ,bbGetInputInW(), bbGetInputInH(), bbGetInputOrientation()==1);
mwxwidget -> setActiveStateTo( true );
mwxwidget -> setRepresentedValues(bbGetInputInMin(), bbGetInputInMax());
mwxwidget -> setDeviceEndMargin(10);
if(vectRED.size()==vectGREEN.size() && vectGREEN.size()==vectBLUE.size() && vectBLUE.size()==vectVALUES.size())
{
int i=0;
- while ( i< vectVALUES.size())
+ while ( i< (int)(vectVALUES.size()))
{
mwxwidget -> addColorPoint ( (double)vectVALUES[i], wxColour(vectRED[i], vectGREEN[i], vectBLUE[i]));
i++;
}
//--------------------------------------------------
-void ColorBar::bbUserConstructor()
+void ColorBar::bbUserSetDefaultValues()
{
+ mwxwidget = NULL;
bbSetInputOrientation(1);
bbSetInputInW(200);
bbSetInputInH(80);
bbSetInputInMax(1);
bbSetInputInMin(1);
}
-
-//--------------------------------------------------
-void ColorBar::bbUserCopyConstructor()
-{
-}
-
-//--------------------------------------------------
-void ColorBar::bbUserDestructor()
-{
-}
-
+
+ //-----------------------------------------------------------------
+ void ColorBar::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ColorBar::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
}
// EO namespace bbcreaMaracasVisu