]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuColorBar.cxx
*** empty log message ***
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuColorBar.cxx
index 5bea9635d122dbabafc27913579266ff3165c102..3d2a1e483c1e4704f39b47265b4aa4cf887e12e4 100644 (file)
@@ -29,7 +29,7 @@ void ColorBar::CreateWidget(wxWindow* parent)
                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++;
@@ -43,25 +43,28 @@ void ColorBar::CreateWidget(wxWindow* parent)
 }
 
 //--------------------------------------------------
-void ColorBar::bbUserConstructor()
+void ColorBar::bbUserSetDefaultValues()
 {
+               mwxwidget = NULL;
                bbSetInputOrientation(1);
                bbSetInputInW(200);
                bbSetInputInH(80);
                bbSetInputInMax(1);
                bbSetInputInMin(1);     
 }
-
-//--------------------------------------------------
-void ColorBar::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-//--------------------------------------------------
-void ColorBar::bbUserDestructor()
-{
-}
-
+       
+       //-----------------------------------------------------------------     
+       void ColorBar::bbUserInitializeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       void ColorBar::bbUserFinalizeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       
 
 }
 // EO namespace bbcreaMaracasVisu