Salome HOME
PAL9022. before algo->Compute(), clean only elements directly bound to the shape...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_RotationDlg.cxx
index e8ae9052eb3d614d40caf812d6439b09990b33e7..55b9396f016e86748519f2c30730c95a9e477e6c 100644 (file)
@@ -34,6 +34,7 @@
 #include "SMESHGUI_VTKUtils.h"
 #include "SMESHGUI_MeshUtils.h"
 #include "SMESHGUI_IdValidator.h"
+
 #include "SMESH_Actor.h"
 #include "SMESH_TypeFilter.hxx"
 #include "SMDS_Mesh.hxx"
 #include <qlayout.h>
 #include <qpixmap.h>
 
+// IDL Headers
+#include "SALOMEconfig.h"
+#include CORBA_SERVER_HEADER(SMESH_Group)
+
 using namespace std;
 
 //=================================================================================
@@ -249,14 +254,15 @@ SMESHGUI_RotationDlg::SMESHGUI_RotationDlg( QWidget* parent, const char* name, S
   SMESHGUI_RotationDlgLayout->addWidget( GroupArguments, 1, 0 );
   
   /* Initialisations */
-  SpinBox_X->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
-  SpinBox_Y->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
-  SpinBox_Z->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
-  SpinBox_DX->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
-  SpinBox_DY->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
-  SpinBox_DZ->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
+  SpinBox_X->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+  SpinBox_Y->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+  SpinBox_Z->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+  SpinBox_DX->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+  SpinBox_DY->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+  SpinBox_DZ->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
 
-  SpinBox_Angle->RangeStepAndValidator( -999999.999, +999999.999, 5.0, 3 );
+  SpinBox_Angle->RangeStepAndValidator( COORD_MIN, COORD_MAX, 5.0, 3 );
+  //??SpinBox_Angle->RangeStepAndValidator( -360., +360., 5.0, 3 );
   
   GroupArguments->show();
   myConstructorId = 0 ;
@@ -529,7 +535,10 @@ void SMESHGUI_RotationDlg::SelectionIntoArgument()
   myMesh = SMESH::GetMeshByIO( mySelection->firstIObject() );
   if(myMesh->_is_nil())
     return;
+
   myActor = SMESH::FindActorByObject(myMesh);
+  if (!myActor)
+    myActor = SMESH::FindActorByEntry(IO->getEntry());
   if (!myActor)
     return;