]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IMP 10199 (add Volume Control). Add eVolume3D Control
authoreap <eap@opencascade.com>
Mon, 10 Oct 2005 14:45:35 +0000 (14:45 +0000)
committereap <eap@opencascade.com>
Mon, 10 Oct 2005 14:45:35 +0000 (14:45 +0000)
src/OBJECT/SMESH_Actor.cxx
src/OBJECT/SMESH_Actor.h

index 1d83c6501d12beba09fdf80dfca7d83df53dd6de..3c5e2e0d09a8baecf04fddf01c32d7ea856256d1 100644 (file)
@@ -588,6 +588,14 @@ SetControlMode(eControl theMode,
       myControlActor = my3DActor;
       break;
     }
+    case eVolume3D:
+    {
+      SMESH::Controls::Volume* aControl = new SMESH::Controls::Volume();
+      aControl->SetPrecision( myControlsPrecision );
+      aFunctor.reset( aControl );
+      myControlActor = my3DActor;
+      break;
+    }
     case eMinimumAngle:
     {
       SMESH::Controls::MinimumAngle* aControl = new SMESH::Controls::MinimumAngle();
index 038a9267ef235b53a4e0c6c6b8ad6a4813e8dd71..7319914d769aaee7a8399cf07de68977a1be54f5 100644 (file)
@@ -95,7 +95,7 @@ class SMESH_Actor: public SALOME_Actor
 
   enum eControl{eNone, eLength, eLength2D, eFreeBorders, eFreeEdges, eMultiConnection, 
                eArea, eTaper, eAspectRatio, eMinimumAngle, eWarping, eSkew,
-               eAspectRatio3D, eMultiConnection2D};
+               eAspectRatio3D, eMultiConnection2D, eVolume3D};
   virtual void SetControlMode(eControl theMode) = 0;
   virtual eControl GetControlMode() = 0;