]> Creatis software - creaMaracasVisu.git/commitdiff
Clean code
authordavila <davila@localhost.localdomain>
Wed, 13 Nov 2024 06:41:47 +0000 (07:41 +0100)
committerdavila <davila@localhost.localdomain>
Wed, 13 Nov 2024 06:41:47 +0000 (07:41 +0100)
bbtk/src/bbmaracasvisuViewerNV.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.cxx

index 0c63bec7d77caa32a2eb99ea1709fc5dae502a08..263617ff3302714d6746671780fa3c8817cef7d2 100644 (file)
@@ -69,16 +69,18 @@ void bbwxMaracas_N_ViewersWidget::OnRefreshView(wxCommandEvent & event)
                mbbViewerNV->_point.push_back( (int)GetY() );
                mbbViewerNV->_point.push_back( (int)GetZ() );
                mbbViewerNV->bbSetOutputPoint( mbbViewerNV->_point );
-        bool ok=true;
+//        bool ok=true;
 //ED2024-11-01
 //        if  (mbbViewerNV->bbGetInputReactivityType()==0) { ok=false; }
 //        mbbViewerNV->bbSignalOutputModification(std::string("Point"),ok);
-        if  (mbbViewerNV->bbGetInputReactivityType()==1)
-        {
-            mbbViewerNV->bbSignalOutputModification(std::string("Point"),true);
-        } // if type
+               if  (mbbViewerNV->bbGetInputReactivityType()==1)
+               {
+                   mbbViewerNV->bbSignalOutputModification(std::string("Point"),true);
+               } // if type
        } // if X Y Z
+
        wxMaracas_N_ViewersWidget::OnRefreshView(event);
+
 }
 
 //-------------------------------------------------------------
@@ -175,8 +177,12 @@ void ViewerNV::Process()
 void ViewerNV::CreateWidget(wxWindow* parent)
 {
     bbtkDebugMessageInc("Core",9,"ViewerNV::CreateWidget()"<<std::endl);
-       _mwxwidget = new bbwxMaracas_N_ViewersWidget( this, parent );
-       bbtkDebugDecTab("Core",9);
+    _mwxwidget = new bbwxMaracas_N_ViewersWidget( this, parent );
+    bbtkDebugDecTab("Core",9);
+
+//    _mwxwidget->SetAutoLayout(true);
+//    _mwxwidget->Layout();
+
     bbSetOutputWidget( _mwxwidget );
        //this->bbSignalOutputModification();
        //Process();
index 4d0d87c029b9ce6202179efd9f508dbba5a94ddc..80621add8a3a86602d43141d4f2fd664df6cdc50 100644 (file)
 
                //panel->SetDimension()
                sizer->Add( wxwindow , 1, wxGROW);
-               sizer->Layout();
+
+//EED 2024-11-13
+//             sizer->Layout();
+
                //_currentwxw = wxwindow;
                //_currentwxw->Show(true);
 
                if (wxwindow3!=NULL) {wxwindow3->ConfigureVTK(); }
                if (wxwindow2!=NULL) {wxwindow2->ConfigureVTK(); }
                if (wxwindow1!=NULL) {wxwindow1->ConfigureVTK(); }
+
  }
 
 
index b96c58a1bfaeb8cf0eabb80555cdfb5096c120c1..daea638fe33634042c60425a6d6bf96db5278df0 100644 (file)
@@ -189,6 +189,7 @@ void wxVtk2DBaseView::Configure(bool okimage)
                // SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
                //
                // Actual version
+
                vtkInteractorStyleBaseView2D *style2D = vtkInteractorStyleBaseView2D::New();
 
                manualInteractorWindowLevel *_manualinteractorwindowlevel= new manualInteractorWindowLevel();