Esempio n. 1
0
        public static void SetupDependencies(ConstraintHighLevelDependencyMapping constraintMapper)
        {
            constraintMapper.Register(Constraint2DNames.PointOnPointFunction, "Point On Point",
                                      ResName("perpendicular_constraint.png"), FunctionNames.Point, FunctionNames.Point);

            //constraintMapper.Register(Constraint2DNames.P2PDistanceFunction, "Point To Point Distance",
            //                          ResName("perpendicular_constraint.png"), FunctionNames.Point, FunctionNames.Point);

            constraintMapper.Register(Constraint2DNames.HorizontalFunction, "Horizontal",
                                      ResName("horizontal_constraint.png"), FunctionNames.LineTwoPoints);
            constraintMapper.Register(Constraint2DNames.VerticalFunction, "Vertical", ResName("vertical_constraint.png"),
                                      FunctionNames.LineTwoPoints);

            SetLineToLineConstraints(constraintMapper);

            constraintMapper.Register(Constraint2DNames.PointOnArcFunction, "Arc On Point",
                                      ResName("perpendicular_constraint.png"), FunctionNames.Arc, FunctionNames.Point);

            constraintMapper.Register(Constraint2DNames.PointOnCircleFunction, "Circle On Point",
                                      ResName("perpendicular_constraint.png"), FunctionNames.Circle, FunctionNames.Point);

            constraintMapper.Register(Constraint2DNames.TangentToArcFunction, "Tangent Line On Arc",
                                      ResName("perpendicular_constraint.png"), FunctionNames.Arc,
                                      FunctionNames.LineTwoPoints);

            constraintMapper.Register(Constraint2DNames.TangentToCircleFunction, "Tangent Line On Circle",
                                      ResName("perpendicular_constraint.png"), FunctionNames.Circle,
                                      FunctionNames.LineTwoPoints);

            CircleArcsMethod(constraintMapper);

            constraintMapper.Register(Constraint2DNames.PointOnLineFunction, "Point on Line",
                                      ResName("perpendicular_constraint.png"),
                                      FunctionNames.LineTwoPoints, FunctionNames.Point);
            constraintMapper.Register(Constraint2DNames.PointOnSegmentFunction, "Point on Segment",
                                      ResName("perpendicular_constraint.png"),
                                      FunctionNames.LineTwoPoints, FunctionNames.Point);

            constraintMapper.Register(Constraint2DNames.PointOnLineMidpointFunction, "Point on Middle of Line",
                                      ResName("perpendicular_constraint.png"),
                                      FunctionNames.LineTwoPoints, FunctionNames.Point);
        }
Esempio n. 2
0
 private static void AddLineOnLineConstraint(ConstraintHighLevelDependencyMapping constraintMapper,
                                             string constraintName, string descriptor, string iconName)
 {
     constraintMapper.Register(constraintName, descriptor, ResName(iconName),
                               FunctionNames.LineTwoPoints, FunctionNames.LineTwoPoints);
 }
Esempio n. 3
0
 private static void AddArcOnArcConstraint(ConstraintHighLevelDependencyMapping constraintMapper,
                                           string constraintName, string descriptor, string iconName)
 {
     constraintMapper.Register(constraintName, descriptor, ResName(iconName),
                               FunctionNames.Arc, FunctionNames.Arc);
 }
Esempio n. 4
0
 private static void AddCircleOnCircleConstraint(ConstraintHighLevelDependencyMapping constraintMapper,
                                                 string constraintName, string descriptor, string iconName)
 {
     constraintMapper.Register(constraintName, descriptor, ResName(iconName),
                               FunctionNames.Circle, FunctionNames.Circle);
 }