X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuContourCrown.cxx;h=1c9e0ea1da1a3eea577c05274a3dacdf39dab6f3;hb=d0c09a70008646305df0937f47fd7d5930636a67;hp=fde8bf672c12f57ee308b65ed9f9a3fe56967384;hpb=800f29fd7e4cc70d8706b3075454e63f0b1a5717;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuContourCrown.cxx b/bbtk/src/bbmaracasvisuContourCrown.cxx index fde8bf6..1c9e0ea 100644 --- a/bbtk/src/bbmaracasvisuContourCrown.cxx +++ b/bbtk/src/bbmaracasvisuContourCrown.cxx @@ -12,36 +12,39 @@ 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 } //----------------------------------------------------------- -void ContourCrown::CreateWidget() +void ContourCrown::CreateWidget(wxWindow* parent) { bbtkDebugMessageInc("Core",9,"ContourCrown::CreateWidget()"<ConfigureVTK(); bbSetOutputImageValueResult( mwxwidget->GetVtkImageValueResult() ); @@ -64,8 +67,9 @@ void ContourCrown::CreateWidget() } //----------------------------------------------------------- -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() -{ -} - -//----------------------------------------------------------- -void ContourCrown::bbUserDestructor() -{ -} + //----------------------------------------------------------------- + void ContourCrown::bbUserInitializeProcessing() + { + } + + //----------------------------------------------------------------- + void ContourCrown::bbUserFinalizeProcessing() + { + } + + //----------------------------------------------------------------- + } // EO namespace bbcreaMaracasVisu