]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #353 constraint on 2 segments from not acive sketches
authornds <natalia.donis@opencascade.com>
Fri, 27 Feb 2015 06:23:30 +0000 (09:23 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 27 Feb 2015 06:23:30 +0000 (09:23 +0300)
src/SketchPlugin/plugin-Sketch.xml

index 7447a8fa7624e93f210ba13279cd4901b652e5d4..b59a5d4c5a03ab64386db0e494e5bc6b27adcdf3 100644 (file)
         <sketch-2dpoint_selector id="ArcEndPoint" title="End point" tooltip="End point"/>
       </feature>
     </group>
-         
+      
     <group id="Constraints">
       <feature
         id="SketchConstraintCoincidence"
         title="Coincident"
         tooltip="Create constraint for the coincidence of two points"
         internal="1" />
-       <!--  SketchConstraintDistance  -->
+    <!--  SketchConstraintDistance  -->
       <feature
         id="SketchConstraintDistance"
         title="Distance"
               tooltip="Select point, line end point, line, center of circle or arc."
               shape_types="edge vertex">
           <selection_filter id="MultiFilter" parameters="line,vertex"/>
+          <validator id="SketchPlugin_ResultLine"/>
         </sketch_shape_selector>/>
-               <sketch_shape_selector 
+        <sketch_shape_selector 
           id="ConstraintEntityB" 
           label="Last object" 
           tooltip="Select point, line end point, line, center of circle or arc." 
-                           shape_types="edge vertex">
-                       <validator id="SketchPlugin_DifferentObjects"/>
+                shape_types="edge vertex">
+            <validator id="SketchPlugin_DifferentObjects"/>
       <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
       <selection_filter id="MultiFilter" parameters="line,vertex"/>
     </sketch_shape_selector>
-               
+        
         <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
         
-               <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
+        <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
           <validator id="GeomValidators_Positive"/>
         </doublevalue_editor>
         
-               <validator id="PartSet_DistanceValidator"/>
+        <validator id="PartSet_DistanceValidator"/>
       </feature>
-       <!--  SketchConstraintLength  -->      
+    <!--  SketchConstraintLength  -->      
       <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon=":icons/length.png">
         <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
-               <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line" 
-                       shape_types="edge" >
-                       <validator id="SketchPlugin_ResultLine"/>
+        <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line" 
+            shape_types="edge" >
+            <validator id="SketchPlugin_ResultLine"/>
       <selection_filter id="EdgeFilter" parameters="line"/>
+      <validator id="SketchPlugin_ResultLine"/>
     </shape_selector>
         <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
         <doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
         </doublevalue_editor>
         <validator id="PartSet_LengthValidator"/>
       </feature>
-       <!--  SketchConstraintRadius  -->
+    <!--  SketchConstraintRadius  -->
       <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon=":icons/radius_constr.png">
         <label title="Select a circle or an arc on which to calculate radius" tooltip="Select a circle or an arc on which to calculate radius"/>
-               <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc" 
-                       shape_types="edge">
-                       <validator id="SketchPlugin_ResultArc"/>
-                       <selection_filter id="EdgeFilter" parameters="circle"/>
-               </shape_selector>
+        <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc" 
+            shape_types="edge">
+            <validator id="SketchPlugin_ResultArc"/>
+            <selection_filter id="EdgeFilter" parameters="circle"/>
+        </shape_selector>
         <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
         <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed"/>
         <validator id="PartSet_RadiusValidator"/>
       </feature>
-       <!--  SketchConstraintParallel  -->
+    <!--  SketchConstraintParallel  -->
       <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines" icon=":icons/parallel.png">
-               <sketch_constraint_shape_selector id="ConstraintEntityA" 
-                       label="First line" tooltip="Select a line" shape_types="edge">
-                       <selection_filter id="EdgeFilter" parameters="line"/>
-               </sketch_constraint_shape_selector>
-               
-               <sketch_constraint_shape_selector id="ConstraintEntityB" label="Last line" tooltip="Select a line" 
-                       shape_types="edge">
-                       <selection_filter id="EdgeFilter" parameters="line"/>
-                       <validator id="SketchPlugin_DifferentObjects"/>
-               </sketch_constraint_shape_selector>
-               
+        <sketch_constraint_shape_selector id="ConstraintEntityA" 
+            label="First line" tooltip="Select a line" shape_types="edge">
+            <selection_filter id="EdgeFilter" parameters="line"/>
+        </sketch_constraint_shape_selector>
+        
+        <sketch_constraint_shape_selector id="ConstraintEntityB" label="Last line" tooltip="Select a line" 
+            shape_types="edge">
+            <selection_filter id="EdgeFilter" parameters="line"/>
+            <validator id="SketchPlugin_DifferentObjects"/>
+        </sketch_constraint_shape_selector>
+        
         <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
         <validator id="PartSet_ParallelValidator"/>
       </feature>
-       <!--  SketchConstraintPerpendicular  -->
+    <!--  SketchConstraintPerpendicular  -->
       <feature id="SketchConstraintPerpendicular" title="Perpendicular" tooltip="Create constraint defining two perpendicular lines" icon=":icons/perpendicular.png">
-               <sketch_constraint_shape_selector id="ConstraintEntityA" 
-                       label="First line" tooltip="Select an line" 
-                       shape_types="edge">
+        <sketch_constraint_shape_selector id="ConstraintEntityA" 
+            label="First line" tooltip="Select an line" 
+            shape_types="edge">
       <selection_filter id="EdgeFilter" parameters="line"/>
     </sketch_constraint_shape_selector>
-               
-               <sketch_constraint_shape_selector id="ConstraintEntityB" 
-                       label="Last line" tooltip="Select an line" 
-                       shape_types="edge">
-                       <validator id="SketchPlugin_DifferentObjects"/>
+        
+        <sketch_constraint_shape_selector id="ConstraintEntityB" 
+            label="Last line" tooltip="Select an line" 
+            shape_types="edge">
+            <validator id="SketchPlugin_DifferentObjects"/>
       <selection_filter id="EdgeFilter" parameters="line"/>
     </sketch_constraint_shape_selector>
         <validator id="PartSet_PerpendicularValidator"/>
       </feature>
-       <!--  SketchConstraintRigid  -->
+    <!--  SketchConstraintRigid  -->
       <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon=":icons/fixed.png">
         <shape_selector id="ConstraintEntityA" label="Object" tooltip="Select an object" 
-                       shape_types="edge vertex">
-                   <validator id="SketchPlugin_ResultPoint"/>
-                       <validator id="SketchPlugin_ResultLine"/>
-                       <validator id="SketchPlugin_ResultArc"/>
-               </shape_selector>
-           <validator id="PartSet_RigidValidator"/>
+            shape_types="edge vertex">
+               <validator id="SketchPlugin_ResultPoint"/>
+            <validator id="SketchPlugin_ResultLine"/>
+            <validator id="SketchPlugin_ResultArc"/>
+        </shape_selector>
+        <validator id="PartSet_RigidValidator"/>
       </feature>
     </group>
   </workbench>