From c4da0ad232a28d02f11dcbd280c12b04b3572715 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Mon, 20 Jul 2020 15:21:14 +0200 Subject: [PATCH] #3456 creaMaracasVisu Feature New Normal - Export Image in wxVtkBaseView_Info --- bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx | 10 ++++++++++ bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx index 9907e62..81821f5 100644 --- a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx +++ b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx @@ -33,6 +33,16 @@ void wxVtkBaseView_Info::Process() { bbSetOutputvtkRenderer( bbGetInputwxVtkBaseView()->GetRenderer() ); bbSetOutputDirection( bbGetInputwxVtkBaseView()->GetDirection() ); + + vtkBaseData *vtkbasedata = bbGetInputwxVtkBaseView()->GetVtkBaseData(); + if (vtkbasedata!=NULL) + { + marImageData *marimagedata = vtkbasedata->GetMarImageData(); + if (marimagedata!=NULL) + { + bbSetOutputImage( marimagedata->GetImageData() ); + } // MarImageData + } // BaseData } diff --git a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h index 41f9001..ada0390 100644 --- a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h +++ b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h @@ -24,6 +24,7 @@ class bbcreaMaracasVisu_EXPORT wxVtkBaseView_Info BBTK_DECLARE_INPUT(wxVtkBaseView,wxVtkBaseView*); BBTK_DECLARE_OUTPUT(vtkRenderer,vtkRenderer*); BBTK_DECLARE_OUTPUT(Direction,int); + BBTK_DECLARE_OUTPUT(Image,vtkImageData*); BBTK_PROCESS(Process); void Process(); //===== @@ -41,6 +42,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(wxVtkBaseView_Info,bbtk::AtomicBlackBox); BBTK_OUTPUT(wxVtkBaseView_Info,Direction,"Direction -1=3D 0=YZ 1=XZ 2=XY(default)",int,""); BBTK_OUTPUT(wxVtkBaseView_Info,vtkRenderer,"vtkRenderer default=NULL",vtkRenderer*,""); + BBTK_OUTPUT(wxVtkBaseView_Info,Image,"vtkImageData",vtkImageData*,""); BBTK_END_DESCRIBE_BLACK_BOX(wxVtkBaseView_Info); //===== -- 2.47.1