]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Edge filter
authornds <natalia.donis@opencascade.com>
Fri, 19 Dec 2014 08:02:30 +0000 (11:02 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 19 Dec 2014 08:02:30 +0000 (11:02 +0300)
src/SketchPlugin/plugin-Sketch.xml

index f63903b659e84a2190382ed388ec2ae986ce72de..501a656c3a29bd61aad7c2e8faa75b9fd4a643db 100644 (file)
@@ -55,7 +55,8 @@
                <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line in the viewer" 
                        shape_types="edge" >
                        <validator id="SketchPlugin_ResultLine"/>
-               </shape_selector>
+      <selection_filter id="EdgeFilter" parameters="line"/>
+    </shape_selector>
         <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
         <doublevalue_editor label="Value" tooltip="Constraint value" id="ConstraintValue" default="computed">
           <validator id="GeomValidators_Positive"/>
                <sketch_constraint_shape_selector id="ConstraintEntityA" 
                        label="First line" tooltip="Select an line in the viewer" 
                        shape_types="edge" use_subshapes="true">
-               </sketch_constraint_shape_selector>
+      <selection_filter id="EdgeFilter" parameters="line"/>
+    </sketch_constraint_shape_selector>
                
                <sketch_constraint_shape_selector id="ConstraintEntityB" 
                        label="Last line" tooltip="Select an line in the viewer" 
                        shape_types="edge" use_subshapes="true">
                        <validator id="SketchPlugin_DifferentObjects"/>
-               </sketch_constraint_shape_selector>
+      <selection_filter id="EdgeFilter" parameters="line"/>
+    </sketch_constraint_shape_selector>
         <validator id="PartSet_PerpendicularValidator"/>
       </feature>
        <!--  SketchConstraintRigid  -->