X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=bbtk%2Fsrc%2FbbmaracasvisuColorBar.cxx;h=3d2a1e483c1e4704f39b47265b4aa4cf887e12e4;hb=54bb3fba5f59ca71cb82d87043e21354dd85e7aa;hp=7b39dd827b109b305021d27567f900ac00c74d68;hpb=800f29fd7e4cc70d8706b3075454e63f0b1a5717;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuColorBar.cxx b/bbtk/src/bbmaracasvisuColorBar.cxx index 7b39dd8..3d2a1e4 100644 --- a/bbtk/src/bbmaracasvisuColorBar.cxx +++ b/bbtk/src/bbmaracasvisuColorBar.cxx @@ -12,12 +12,12 @@ void ColorBar::Process() } //-------------------------------------------------- -void ColorBar::CreateWidget() +void ColorBar::CreateWidget(wxWindow* parent) { // bbSetOutputWidget( new wxStaticText ( bbGetWxParent() , -1 , _T("") ) ); // Process(); bbtkDebugMessageInc("Core",9,"ColorBar::CreateWidget()"< setActiveStateTo( true ); mwxwidget -> setRepresentedValues(bbGetInputInMin(), bbGetInputInMax()); mwxwidget -> setDeviceEndMargin(10); @@ -29,7 +29,7 @@ void ColorBar::CreateWidget() 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() } //-------------------------------------------------- -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