bbwxMaracas_N_ViewersWidget::~bbwxMaracas_N_ViewersWidget()
{
}
-
+
//-------------------------------------------------------------
void bbwxMaracas_N_ViewersWidget::OnRefreshView(wxCommandEvent & event)
{
- wxMaracas_N_ViewersWidget::OnRefreshView(event);
+
+ mbbViewerNV->point.clear();
+
+ mbbViewerNV->point.push_back( (int)GetX() );
+ mbbViewerNV->point.push_back( (int)GetY() );
+ mbbViewerNV->point.push_back( (int)GetZ() );
+ mbbViewerNV->bbSetOutputPoint( mbbViewerNV->point );
mbbViewerNV->bbSignalOutputModification(std::string("Point"));
+ wxMaracas_N_ViewersWidget::OnRefreshView(event);
}
//-------------------------------------------------------------
-
BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ViewerNV)
BBTK_BLACK_BOX_IMPLEMENTATION(ViewerNV,bbtk::WxBlackBox);
//-------------------------------------------------------------
vtkImageData* img = bbGetInputIn();
std::vector<int> type = bbGetInputnTypeView();
+
+// std::cout<<"img "<<img<<std::endl;
+// std::cout<<"widget "<<mwxwidget<<std::endl;
if(img != NULL && mwxwidget != NULL){// && !enter){
}
//-------------------------------------------------------------
-void ViewerNV::bbUserConstructor()
+void ViewerNV::bbUserSetDefaultValues()
{
mwxwidget = NULL;
bbSetOutputRenderer4( NULL );
}
-//-------------------------------------------------------------
-void ViewerNV::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-
- mwxwidget = NULL;
-
-}
-
-//-------------------------------------------------------------
-void ViewerNV::bbUserDestructor()
-{
-std::cout << "ViewerNV destroy "<<this<<" vs "<<GetThisPointer<void>()<<std::endl;
- //delete mwxwidget;
-
-}
-
+ //-----------------------------------------------------------------
+ void ViewerNV::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ViewerNV::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
+
+
bool ViewerNV::compareVectors(std::vector<int> type,std::vector<int> currenttype){
bool ret = true;