BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,CutModule)
BBTK_BLACK_BOX_IMPLEMENTATION(CutModule,bbtk::WxBlackBox);
+
void CutModule::Process()
{
vtkImageData* img = bbGetInputIn();
vtkRenderer* render = bbGetInputRenderer();
if(img != NULL && interactor != NULL && render != NULL && _mainpanel!=NULL){
-
- if(_currentimage!=img){
- _currentimage=img;
- _mainpanel->setImageData(img);
- }
-
- _mainpanel->setInteractor(interactor);
- _mainpanel->setRenderer(render);
- bbSetOutputOut(_mainpanel->GetResultImage());
-
- }
-
+ if(_currentimage!=img){
+ _currentimage=img;
+ _mainpanel->setImageData(img);
+ }
+
+ _mainpanel->setInteractor(interactor);
+ _mainpanel->setRenderer(render);
+ bbSetOutputOut(_mainpanel->GetResultImage());
+ }
}
+
void CutModule::CreateWidget(wxWindow* parent)
{
-
- std::string path = crea::System::GetDllAppPath("bbcreaMaracasVisu.dll");
- _mainpanel = CutModelMainPanel::getInstance(parent, path);
- _mainpanel->SetType(0);
+ std::string lastname("bbcreaMaracasVisu.dll"); // JPR
+ std::string path = crea::System::GetDllAppPath(lastname);
+ _mainpanel = CutModelMainPanel::getInstance(parent, path);
+ _mainpanel->SetType(0);
bbSetOutputWidget( _mainpanel);
- Process();
-
+ Process();
}
+
void CutModule::bbUserSetDefaultValues()
{
_mainpanel = NULL;
bbSetInputRenderer(0);
bbSetOutputOut(0);
}
+
void CutModule::bbUserInitializeProcessing()
{
}
+
void CutModule::bbUserFinalizeProcessing()
{
}
// EO namespace bbcreaMaracasVisu
-
namespace bbcreaMaracasVisu
{
-
BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,CutModule2)
BBTK_BLACK_BOX_IMPLEMENTATION(CutModule2,bbtk::WxBlackBox);
void CutModule2::Process()
vtkRenderer* render = bbGetInputRenderer();
if(img != NULL && interactor != NULL && render != NULL && _mainpanel!=NULL){
-
if(_currentimage!=img){
_currentimage=img;
_mainpanel->setImageData(img);
}
-
+
_mainpanel->setInteractor(interactor);
_mainpanel->setRenderer(render);
bbSetOutputOut(_mainpanel->GetResultImage());
}
void CutModule2::CreateWidget(wxWindow* parent)
{
-
- std::string path = crea::System::GetDllAppPath("bbcreaMaracasVisu.dll");
- _mainpanel = CutModelMainPanel::getInstance(parent, path);
- _mainpanel->SetType(1);
+ std::string lastname("bbcreaMaracasVisu.dll"); // JPR
+ std::string path = crea::System::GetDllAppPath(lastname);
+ _mainpanel = CutModelMainPanel::getInstance(parent, path);
+ _mainpanel->SetType(1);
- bbSetOutputWidget( _mainpanel);
- Process();
+ bbSetOutputWidget( _mainpanel);
+ Process();
}
void CutModule2::bbUserSetDefaultValues()
_mainpanel = NULL;
_currentimage=NULL;
}
+
void CutModule2::bbUserInitializeProcessing()
{
bbSetInputIn(0);
}
}
// EO namespace bbcreaMaracasVisu
-
-