]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of the bug IPAL20572 - Box for creation of Clipping plane is in a lot of times...
authorouv <ouv@opencascade.com>
Fri, 26 Dec 2008 12:05:00 +0000 (12:05 +0000)
committerouv <ouv@opencascade.com>
Fri, 26 Dec 2008 12:05:00 +0000 (12:05 +0000)
src/VISUGUI/VisuGUI_ClippingPlaneDlg.cxx
src/VISUGUI/VisuGUI_Tools.cxx
src/VISUGUI/VisuGUI_Tools.h

index c8165c18a0520389ec21bb3c3288e162b3a5a2dd..62e2938a4b0a77f63e61a386b47c72bd0edc9fc0 100644 (file)
@@ -66,7 +66,7 @@ VisuGUI_ClippingPlaneDlg::VisuGUI_ClippingPlaneDlg(VisuGUI* theModule)
     myPlaneId(-1)
 {
   myViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>(myModule);
-  ComputeVisiblePropBounds(myViewWindow->getRenderer(), myBounds);
+  VISU::ComputeVisiblePropBounds(myViewWindow, myBounds);
 
   setWindowTitle(tr("TITLE"));
   setSizeGripEnabled(true);
index 8e17c4f1938848efe0abea2d4bfa8b364d23d045..34ae14e78f65c9b61c7806ed0c0ab8efa350dfa7 100644 (file)
@@ -818,11 +818,10 @@ namespace VISU
   }
 
   //------------------------------------------------------------
-  static 
   bool
   ComputeVisiblePropBounds(SVTK_ViewWindow* theViewWindow,
                           vtkFloatingPointType allBounds[6], 
-                          const char* theActorClassName = "VISU_Actor")
+                          const char* theActorClassName)
   {
     vtkRenderer *aRen = theViewWindow->getRenderer();
     vtkActorCollection *anActColl = aRen->GetActors(); 
index 681d45f3706642f7b3f51461c13a7b472b4759f7..1faa3d7d513657655812c514e6f08b093743c945 100644 (file)
@@ -181,6 +181,10 @@ namespace VISU
   void                                 RecreateActor(const SalomeApp_Module* theModule,
                                                     VISU::Prs3d_i* thePrs);
 
+  bool                                 ComputeVisiblePropBounds(SVTK_ViewWindow* theViewWindow,
+                                                               vtkFloatingPointType allBounds[6], 
+                                                               const char* theActorClassName = "VISU_Actor");
+
   /*!
    * \brief Advanced FitAll, sets view projection in accordance with current view contents
    *