#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>
// 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 );