]> Creatis software - creaMaracasVisu.git/commitdiff
#3456 creaMaracasVisu Feature New Normal - Export Image in wxVtkBaseView_Info
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 20 Jul 2020 13:21:14 +0000 (15:21 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 20 Jul 2020 13:21:14 +0000 (15:21 +0200)
bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx
bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h

index 9907e624b4b6b9a69bb9c9c6fed57c01ad2fc0b6..81821f5c4adb4f43b4bd703db406f26e3b06f941 100644 (file)
@@ -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
        }
 
 
index 41f9001e947b3b2f6c7bf99cd43e17222c63f7bf..ada0390eada7a789a45d23c1eff752ec2971a006 100644 (file)
@@ -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);
 //=====