//-----------------------------------------------------------
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()"<<std::endl);
wxMessageDialog(NULL, bbtk::std2wx("(ContourCrown) Input 'In' is not set"), bbtk::std2wx(bbGetFullName()) ).ShowModal();
}
- mwxwidget = new wxMaracasCoutourTool( bbGetWxParent(), bbGetInputwxVtkBaseView(), bbGetInputIn() );
+ mwxwidget = new wxMaracasCoutourTool( parent, bbGetInputwxVtkBaseView(), bbGetInputIn() );
mwxwidget->ConfigureVTK();
bbSetOutputImageValueResult( mwxwidget->GetVtkImageValueResult() );
}
//-----------------------------------------------------------
-void ContourCrown::bbUserConstructor()
+void ContourCrown::bbUserSetDefaultValues()
{
+ mwxwidget = NULL;
bbSetInputIn(NULL);
bbSetInputwxVtkBaseView(NULL);
//JSTG 26-02-08 ------------------------------------
//--------------------------------------------------
}
-//-----------------------------------------------------------
-void ContourCrown::bbUserCopyConstructor()
-{
-}
-
-//-----------------------------------------------------------
-void ContourCrown::bbUserDestructor()
-{
-}
+ //-----------------------------------------------------------------
+ void ContourCrown::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ContourCrown::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
}
// EO namespace bbcreaMaracasVisu