2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
4 #include "bbcreaMaracasVisuContourControlPoints.h"
5 #include "bbcreaMaracasVisuPackage.h"
9 namespace bbcreaMaracasVisu
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ContourControlPoints)
13 BBTK_BLACK_BOX_IMPLEMENTATION(ContourControlPoints,bbtk::AtomicBlackBox);
15 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
17 void ContourControlPoints::Process()
20 // THE MAIN PROCESSING METHOD BODY
21 // Here we simply set the input 'In' value to the output 'Out'
22 // And print out the output value
23 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
24 // void bbSet{Input|Output}NAME(const TYPE&)
25 // const TYPE& bbGet{Input|Output}NAME() const
27 // * NAME is the name of the input/output
28 // (the one provided in the attribute 'name' of the tag 'input')
29 // * TYPE is the C++ type of the input/output
30 // (the one provided in the attribute 'type' of the tag 'input')
32 // bbSetOutputOut( bbGetInputIn() );
33 // std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
36 _manContourControl_1 = new manualContourControler();
37 _mContourModel_1 = new manualContourModel();
38 _mViewContour_1 = new manualViewContour();
39 _mViewContour_1->SetModel( _mContourModel_1 );
40 _mViewContour_1->SetWxVtkBaseView( bbGetInputwxVtkBaseView() );
41 _mViewContour_1->SetRange( 2 );
42 _mViewContour_1->SetZ( 1000 );
45 _mContourModel_1->SetNumberOfPointsSpline(100);
49 // _mViewContour_1->SetSpacing(spc);
53 _mViewContour_1->SetColorNormalContour(0, 0, 1);
54 _mViewContour_1->SetColorEditContour(0.5, 0.5, 0.5);
57 _manContourControl_1->SetModelView( _mContourModel_1 , _mViewContour_1 );
58 ((vtkInteractorStyleBaseView*)bbGetInputwxVtkBaseView()->GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _manContourControl_1 );
59 _manContourControl_1->CreateNewManualContour();
60 _manContourControl_1->SetActive(true);
61 _mViewContour_1->RefreshContour();
66 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
68 void ContourControlPoints::bbUserSetDefaultValues()
71 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
72 // Here we initialize the input 'In' to 0
73 bbSetInputwxVtkBaseView(NULL);
77 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
79 void ContourControlPoints::bbUserInitializeProcessing()
82 // THE INITIALIZATION METHOD BODY :
84 // but this is where you should allocate the internal/output pointers
90 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
92 void ContourControlPoints::bbUserFinalizeProcessing()
95 // THE FINALIZATION METHOD BODY :
97 // but this is where you should desallocate the internal/output pointers
102 // EO namespace bbcreaMaracasVisu