X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuContourCrown.cxx;h=1c9e0ea1da1a3eea577c05274a3dacdf39dab6f3;hb=738e5bef4c52a1f25013e598a008a81f20fc6f63;hp=1e670e781d76d19fa9ba6f200d796a8793d8760a;hpb=de5cb63cdc23317a114c77f7b6184126d7988508;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuContourCrown.cxx b/bbtk/src/bbmaracasvisuContourCrown.cxx index 1e670e7..1c9e0ea 100644 --- a/bbtk/src/bbmaracasvisuContourCrown.cxx +++ b/bbtk/src/bbmaracasvisuContourCrown.cxx @@ -12,32 +12,35 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ContourCrown,bbtk::WxBlackBox); //----------------------------------------------------------- void ContourCrown::Process() { -//JSTG 04-04-08 - mwxwidget->SetControlPoints( bbGetInputControlPointsInX(), bbGetInputControlPointsInY(), bbGetInputControlPointsInZ() ); - - LstValuePosX.clear(); - LstValuePosY.clear(); - LstValuePosZ.clear(); - mwxwidget->GetValuesInsideCrown(&LstValue,&LstValuePosX,&LstValuePosY,&LstValuePosZ); -//JSTG 226-02-08 ---------------------------------------------------------- - LstContourX.clear(); - LstContourY.clear(); - LstContourZ.clear(); - mwxwidget->GetSplinePoints(&LstContourX,&LstContourY,&LstContourZ); -//------------------------------------------------------------------------- + if (mwxwidget!=NULL){ + //JSTG 04-04-08 + mwxwidget->SetControlPoints( bbGetInputControlPointsInX(), bbGetInputControlPointsInY(), bbGetInputControlPointsInZ() ); + + LstValuePosX.clear(); + LstValuePosY.clear(); + LstValuePosZ.clear(); + mwxwidget->GetValuesInsideCrown(&LstValue,&LstValuePosX,&LstValuePosY,&LstValuePosZ); + + //JSTG 226-02-08 ---------------------------------------------------------- + LstContourX.clear(); + LstContourY.clear(); + LstContourZ.clear(); + mwxwidget->GetSplinePoints(&LstContourX,&LstContourY,&LstContourZ); + //------------------------------------------------------------------------- - bbSetOutputLstValue(&LstValue); - bbSetOutputLstValuePosX(&LstValuePosX); - bbSetOutputLstValuePosY(&LstValuePosY); - bbSetOutputLstValuePosZ(&LstValuePosZ); - bbSetOutputLstContourX(&LstContourX); - bbSetOutputLstContourY(&LstContourY); - bbSetOutputLstContourZ(&LstContourZ); - bbSetOutputLstContourCrlX(&LstContourCrlX); - bbSetOutputLstContourCrlY(&LstContourCrlY); - bbSetOutputLstContourCrlZ(&LstContourCrlZ); - bbSetOutputLstContourCrlZ(&LstContourCrlZ); + bbSetOutputLstValue(&LstValue); + bbSetOutputLstValuePosX(&LstValuePosX); + bbSetOutputLstValuePosY(&LstValuePosY); + bbSetOutputLstValuePosZ(&LstValuePosZ); + bbSetOutputLstContourX(&LstContourX); + bbSetOutputLstContourY(&LstContourY); + bbSetOutputLstContourZ(&LstContourZ); + bbSetOutputLstContourCrlX(&LstContourCrlX); + bbSetOutputLstContourCrlY(&LstContourCrlY); + bbSetOutputLstContourCrlZ(&LstContourCrlZ); + bbSetOutputLstContourCrlZ(&LstContourCrlZ); + } // mwxwidget } //----------------------------------------------------------- @@ -64,8 +67,9 @@ void ContourCrown::CreateWidget(wxWindow* parent) } //----------------------------------------------------------- -void ContourCrown::bbUserConstructor() +void ContourCrown::bbUserSetDefaultValues() { + mwxwidget = NULL; bbSetInputIn(NULL); bbSetInputwxVtkBaseView(NULL); //JSTG 26-02-08 ------------------------------------ @@ -75,15 +79,18 @@ void ContourCrown::bbUserConstructor() //-------------------------------------------------- } -//----------------------------------------------------------- -void ContourCrown::bbUserCopyConstructor(bbtk::BlackBox::Pointer) -{ -} - -//----------------------------------------------------------- -void ContourCrown::bbUserDestructor() -{ -} + //----------------------------------------------------------------- + void ContourCrown::bbUserInitializeProcessing() + { + } + + //----------------------------------------------------------------- + void ContourCrown::bbUserFinalizeProcessing() + { + } + + //----------------------------------------------------------------- + } // EO namespace bbcreaMaracasVisu