]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuContourCrown.cxx
creaButtonContainer: new structure to make easy the button settings
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuContourCrown.cxx
index 95ed75e4d6589a6e751f85e0f7cee90c45071864..1c9e0ea1da1a3eea577c05274a3dacdf39dab6f3 100644 (file)
@@ -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,7 +67,7 @@ void ContourCrown::CreateWidget(wxWindow* parent)
 }
 
 //-----------------------------------------------------------
-void ContourCrown::bbUserConstructor()
+void ContourCrown::bbUserSetDefaultValues()
 {
        mwxwidget = NULL;
        bbSetInputIn(NULL);
@@ -76,15 +79,18 @@ void ContourCrown::bbUserConstructor()
 //--------------------------------------------------
 }
 
-//-----------------------------------------------------------
-void ContourCrown::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-//-----------------------------------------------------------
-void ContourCrown::bbUserDestructor()
-{
-}
+       //-----------------------------------------------------------------     
+       void ContourCrown::bbUserInitializeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       void ContourCrown::bbUserFinalizeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       
 
 }
 // EO namespace bbcreaMaracasVisu