]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
use Visu_PipeLine::IsPlanarInput()
authoreap <eap@opencascade.com>
Tue, 24 May 2005 10:48:15 +0000 (10:48 +0000)
committereap <eap@opencascade.com>
Tue, 24 May 2005 10:48:15 +0000 (10:48 +0000)
src/VISUGUI/VisuGUI_Plot3DDlg.cxx

index 61172ecea9dca152f20ca6ceff22d3befcee33ad..61a3df739e415c478681703a7b0c57687c961659 100644 (file)
 #include "VTKViewer_ViewFrame.h"
 #include "VTKViewer_RenderWindow.h"
 
-#include <limits.h>
-
 #include <qlayout.h>
 #include <qvalidator.h>
 #include <qtabwidget.h>
 
-#include <vtkDataSet.h>
 #include <vtkDataSetMapper.h>
-#include <vtkUnstructuredGrid.h>
-#include <vtkCamera.h>
 #include <vtkRenderer.h>
 #include <vtkPlaneSource.h>
 #include <vtkPolyData.h>
@@ -439,12 +434,7 @@ void VisuGUI_Plot3DPane::initFromPrsObject(VISU::Plot3D_i* thePrs)
 
   // disable cutting plane controls if the mesh is planar
 
-  vtkDataSet* unstrGrid = thePrs->GetPL()->GetInput();
-  float aBounds[6];
-  unstrGrid->GetBounds( aBounds ); // xmin,xmax, ymin,ymax, zmin,zmax
-  if (fabs( aBounds[0] - aBounds[1] ) <= FLT_MIN ||
-      fabs( aBounds[2] - aBounds[3] ) <= FLT_MIN ||
-      fabs( aBounds[4] - aBounds[5] ) <= FLT_MIN )
+  if ( thePrs->GetPL()->IsPlanarInput() )
   {
     GBOrientation->setEnabled( false );
     Rot1         ->setEnabled( false );