Commit Graph

120 Commits

Author SHA1 Message Date
Abdullah Tahiri
b714d50017 Sketcher: Information layer scenography update on geometry change 2017-02-21 13:24:10 +01:00
AjinkyaDahale
21535ec532 [Sketcher] Moved radius to constraint mode framework 2017-02-10 17:32:18 +01:00
AjinkyaDahale
49225c063f [Sketcher] corrected artifact introduced by faulty conflict resolution 2017-02-10 17:32:18 +01:00
AjinkyaDahale
5bb2a74701 [Sketcher] Moved distance to constraint mode 2017-02-10 17:32:18 +01:00
AjinkyaDahale
3b0936bc03 Moved vertical and horizontal distance to constraint creation mode 2017-02-10 17:32:18 +01:00
AjinkyaDahale
62c9dc0f10 Moved symmetric to general constrain creation mode framework
That makes all of the non-dimensioned constraints
2017-02-10 17:32:18 +01:00
AjinkyaDahale
aca3164ef6 Moved equal to general constrain creation mode framework 2017-02-10 17:32:18 +01:00
AjinkyaDahale
2c4ccfbc61 Move tangent to general constraint mode framework 2017-02-10 17:32:18 +01:00
AjinkyaDahale
689e6bf367 Replace some of the allowedSelSequences with more general form
Greatly shortens the number of sequenses needed if you replace SelVertex
and SelRoot with SelVertexOrRoot and similar for the edges/axes.
For e.g. implemented sequences for perpendicular dropped from the older
25 to now 6.
2017-02-10 17:32:18 +01:00
wmayer
81726f7db9 fix warnings: -Wmaybe-uninitialized 2017-02-04 15:16:47 +01:00
wmayer
a7539e2c97 fix various warnings 2017-02-02 20:42:56 +01:00
AjinkyaDahale
c00a627397 Changes based on wwmayer's comments 2017-01-31 17:07:45 +01:00
AjinkyaDahale
8a911f3ef3 Moved Perpendicular to constraint mode framework
A couple of combinations, endpoint-endpoint and endpoint-curve, do not
work, and the latter probably should not work ever since endpoint-curve-
curve exists.
2017-01-31 17:07:45 +01:00
AjinkyaDahale
ccfc4d943a Brought back select then constraint for all constraint tools yet converted 2017-01-31 17:07:45 +01:00
AjinkyaDahale
00ca4d3a36 Miscellaneous changes to constraint creation modes
Parallel constraints can also be made by select-then-constraint way.
Preliminary preparations for perpendicular constraint making mode.
Selection actually works when for constraints involving multiple
elements few of them are selected (thanks abdullah).
etc.
2017-01-31 17:07:45 +01:00
Abdullah Tahiri
16c87a5e11 Sketcher: Fixing Green selection on new style constraints 2017-01-31 17:07:45 +01:00
AjinkyaDahale
994b8a7fd3 Moved point on object to general constraint mode framework 2017-01-31 17:07:45 +01:00
AjinkyaDahale
63323ec85a Moved parallel to general constraint mode framework 2017-01-31 17:07:45 +01:00
AjinkyaDahale
de0301dc66 Moved coincident and vertical to general constraint mode framework 2017-01-31 17:07:45 +01:00
AjinkyaDahale
f2fbd8ba2b Moved CmdSketcherConstrainLock to general constraint mode framework 2017-01-31 17:07:45 +01:00
AjinkyaDahale
d1eab78b93 Generalize DrawSketchHandlerGenConstraint::releaseButton
The select-then-constrain method has been temporarily sacrificed
2017-01-31 17:07:45 +01:00
AjinkyaDahale
c4675b521c CmdSketcherConstraint::applyConstraint() is now used in DrawSketchHandlerGenConstraint 2017-01-31 17:07:45 +01:00
AjinkyaDahale
3b5c72357c Initial commit with DrawSketchHandlerGenConstraint
Plus made CmdSketcherConstrainHorizontal subclass of
CmdSketcherConstraint, and made it use DrawSketchHandlerGenConstraint.
2017-01-31 17:07:45 +01:00
AjinkyaDahale
d326c9e018 Replace All SelectionFilterGates in Constraint Modes by GenericConstraintSelection 2017-01-31 17:07:45 +01:00
AjinkyaDahale
24215170fc Addition to CmdSketcherConstraint and GenericConstraintSelection
Also making CmdSketcherConstrainLock a subclass of CmdSketcherConstraint
2017-01-31 17:07:45 +01:00
AjinkyaDahale
7718dd9aea Coincident constraint mode works on root (origin) too 2017-01-31 17:07:45 +01:00
AjinkyaDahale
137db465db Skeleton of general CmdSketcherConstraint Class 2017-01-31 17:07:45 +01:00
wmayer
d065c2fe5b fix whitespaces 2017-01-20 19:22:50 +01:00
abdullahtahiriyo
8d9af6f203 Merge branch 'master' into bspline_2017 2017-01-18 22:48:27 +01:00
Abdullah Tahiri
84041c0e50 Sketcher: BSpline SnellsLaw - unsupported 2017-01-15 22:34:14 +01:00
Abdullah Tahiri
6bf7d4d6c9 Sketcher: BSpline point-on-object - unsupported 2017-01-15 22:29:21 +01:00
AjinkyaDahale
4c001f40f3 Horizontal and Vertical Constraint creation modes 2017-01-15 17:00:45 +01:00
Abdullah Tahiri
6f09b31456 Sketcher: BSpline - Equality not supported user indication 2017-01-15 01:40:04 +01:00
Abdullah Tahiri
8f4eaf7587 Sketcher: BSpline - UI Perpendicularity 2017-01-15 01:27:46 +01:00
Abdullah Tahiri
14a34202a9 Sketcher: BSpline - Informing the user of non-supported tangencies 2017-01-15 00:57:05 +01:00
Abdullah Tahiri
bb6e480b3c Sketcher: BSpline simplified endpoint tangency/perpendicularity solver implementation
=====================================================================================

Support for tangency/perpendicularity using angle via point for BSpline with appropriate
endpoint multiplicity so that the endpoints goes thru the first and last poles (control points).

Warning: Not applicable to periodic BSplines.
Warning: Not applicable to any non-periodic BSpline with inappropriate endpoint conditions.
2017-01-15 00:42:25 +01:00
wmayer
268a575d28 make code a bit more readable 2017-01-09 10:07:59 +01:00
wmayer
ba28171f43 issue #0000753: angle constraint auto places the constraints visuals including its value in the wrong place 2017-01-08 16:47:06 +01:00
wmayer
0975bdc78c fix -Wunused-parameter 2017-01-04 18:20:43 +01:00
AjinkyaDahale
0caf0710d6 Coincident constraint making mode added
One small problem remains that the origin is not selectable as one point
in coincident constraint making mode.
2017-01-04 12:58:11 +01:00
AjinkyaDahale
a8d25c0723 Lock doesn't complain "no selection" 2017-01-04 12:58:11 +01:00
AjinkyaDahale
f3a5754e3e Lock constraint in always available when sketch is open
Earlier it was available only when a selection is made
2017-01-04 12:58:11 +01:00
AjinkyaDahale
640c6d0e06 Lock constraint can be applied with better selection
Can't yet start without selection: the button on toolbar is not active
without a selection yet
2017-01-04 12:58:11 +01:00
AjinkyaDahale
c312e254d1 Added DrawSketchHandlerLock 2017-01-04 12:58:11 +01:00
wmayer
a421803c09 fix whitespaces 2016-12-28 14:22:42 +01:00
Abdullah Tahiri
70fb71b11d Sketcher: Parabola perpendicularity constraint 2016-12-24 15:24:36 +01:00
Abdullah Tahiri
8fe59b20f7 Sketcher: Parabola tangency support
===================================

Support for tangency with any preexisting supported geometry using angle via point.
2016-12-24 15:02:52 +01:00
Abdullah Tahiri
507f5605d9 Sketch: Hyperbola tangency to line
==================================

As a way to lock a line to hyperbola tangency to a branch has not been identified, this tangency is implemented
by adding a point at the tangency point in order to avoid the jumping.
2016-11-27 18:45:33 +01:00
Abdullah Tahiri
1fe7154c27 Sketcher: Hyperbola perpendicularity constraint
=================================================

Line perpendicular to hyperbola using via point constraint.
2016-11-27 18:45:33 +01:00
Abdullah Tahiri
47a854e2ea Sketcher: Hyperbola Tangency to Curves
======================================

Implementation of the Tangency via point for all curves to Hyperbola (no line to Hyperbola yet).
2016-11-27 18:45:33 +01:00