1 #include "bbmaracasvisuContourCrown.h"
2 #include "bbcreaMaracasVisuPackage.h"
4 #include <vtkImageData.h>
6 namespace bbcreaMaracasVisu
9 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ContourCrown)
10 BBTK_BLACK_BOX_IMPLEMENTATION(ContourCrown,bbtk::WxBlackBox);
12 //-----------------------------------------------------------
13 void ContourCrown::Process()
18 mwxwidget->SetControlPoints( bbGetInputControlPointsInX(), bbGetInputControlPointsInY(), bbGetInputControlPointsInZ() );
23 mwxwidget->GetValuesInsideCrown(&LstValue,&LstValuePosX,&LstValuePosY,&LstValuePosZ);
25 //JSTG 226-02-08 ----------------------------------------------------------
29 mwxwidget->GetSplinePoints(&LstContourX,&LstContourY,&LstContourZ);
30 //-------------------------------------------------------------------------
32 bbSetOutputLstValue(&LstValue);
33 bbSetOutputLstValuePosX(&LstValuePosX);
34 bbSetOutputLstValuePosY(&LstValuePosY);
35 bbSetOutputLstValuePosZ(&LstValuePosZ);
36 bbSetOutputLstContourX(&LstContourX);
37 bbSetOutputLstContourY(&LstContourY);
38 bbSetOutputLstContourZ(&LstContourZ);
39 bbSetOutputLstContourCrlX(&LstContourCrlX);
40 bbSetOutputLstContourCrlY(&LstContourCrlY);
41 bbSetOutputLstContourCrlZ(&LstContourCrlZ);
42 bbSetOutputLstContourCrlZ(&LstContourCrlZ);
46 //-----------------------------------------------------------
47 void ContourCrown::CreateWidget(wxWindow* parent)
49 bbtkDebugMessageInc("Core",9,"ContourCrown::CreateWidget()"<<std::endl);
51 if (bbGetInputwxVtkBaseView()==NULL)
53 wxMessageDialog(NULL, bbtk::std2wx("(ContourCrown) Input 'wxVtkBaseView' is not set"), bbtk::std2wx(bbGetFullName()) ).ShowModal();
55 if (bbGetInputIn()==NULL)
57 wxMessageDialog(NULL, bbtk::std2wx("(ContourCrown) Input 'In' is not set"), bbtk::std2wx(bbGetFullName()) ).ShowModal();
60 mwxwidget = new wxMaracasCoutourTool( parent, bbGetInputwxVtkBaseView(), bbGetInputIn() );
61 mwxwidget->ConfigureVTK();
63 bbSetOutputImageValueResult( mwxwidget->GetVtkImageValueResult() );
64 bbSetOutputImageMaskResult( mwxwidget->GetVtkImageMaskResult() );
65 bbSetOutputWidget(mwxwidget);
66 bbtkDebugDecTab("Core",9);
69 //-----------------------------------------------------------
70 void ContourCrown::bbUserConstructor()
74 bbSetInputwxVtkBaseView(NULL);
75 //JSTG 26-02-08 ------------------------------------
76 bbSetInputControlPointsInX(NULL);
77 bbSetInputControlPointsInY(NULL);
78 bbSetInputControlPointsInZ(NULL);
79 //--------------------------------------------------
82 //-----------------------------------------------------------
83 void ContourCrown::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
87 //-----------------------------------------------------------
88 void ContourCrown::bbUserDestructor()
93 // EO namespace bbcreaMaracasVisu