Commit Graph

892 Commits

Author SHA1 Message Date
Abdullah Tahiri
00b21b644f Sketcher: BSpline curvature comb 2017-02-21 13:24:10 +01:00
Abdullah Tahiri
3933a89e07 Sketcher: new BSpline toolbar / command to hide control polygon 2017-02-21 13:24:10 +01:00
Abdullah Tahiri
fbe539479a Sketcher: Information Layer show/hide node support 2017-02-21 13:24:10 +01:00
Abdullah Tahiri
b714d50017 Sketcher: Information layer scenography update on geometry change 2017-02-21 13:24:10 +01:00
Abdullah Tahiri
bc95c69bce Sketcher: Geometry Information layer for BSplines 2017-02-21 13:24:10 +01:00
Alexander Gryson
8ad3b7a8c8 Update icons based on forum feedback
See [@NormandC's forum
post](https://forum.freecadweb.org/viewtopic.php?f=34&t=20286&sid=43e2b6766d1b74c4e6e4337dfcbd1084&start=32)
2017-02-19 15:05:56 +01:00
wmayer
e3477eee1b improve whitespaces 2017-02-18 09:44:58 +01:00
Mateusz Skowroński
f8778c4d6f Fix more GCC warnings. 2017-02-18 09:35:31 +01:00
Mateusz Skowroński
013d51e1c2 QStyleOptionViewItemV4 is deprecated in Qt5. Replace it with QStyleOptionViewItem. 2017-02-12 05:46:07 +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
Alexander Gryson
90099d5ef1 Integrate forum feedback on icons 2017-02-05 21:58:13 +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
Abdullah Tahiri
b71616219d Sketcher: Polyline continuous mode support 2017-02-02 10:42:38 +01:00
Abdullah Tahiri
48ca83dc15 Sketcher: BSpline deletion/special hideunused internal geometry
===============================================================

The implementation of BSpline differs from previous complex forms.

The BSpline is created constraint to be polynomic (non-rational), with radius of first circle and equality constraints.

Hide unused internal geometry considers as unused the following constraints:
- A pole which has equality constraints with another pole of the same bspline
- Any radius constraint on a pole

Deletion of a BSpline will delete the internal geometry that is unused as per the definition above.

If there is another constraint (other than the Internal alignment constraint) it will leave the internal geometry having such constraint undeleted.
2017-02-02 10:42:38 +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
Alexander Gryson
73e6d48517 Correct outline color in sketcher icon
The select constraint icon incorrectly showed icon as having an orange outline. This was corrected, but after merge of PR.
2017-01-29 20:21:22 +01:00
Abdullah Tahiri
5b4602be33 Sketcher: Documentation of delete functions 2017-01-29 00:25:34 +01:00
Abdullah Tahiri
3dc67c2547 Sketcher: Fix deletion of geometry having internal geometry inserted before the geometry 2017-01-28 23:08:27 +01:00
Alexander Gryson
f253171bee Update Metadata 2017-01-28 09:29:20 +01:00
Alexander Gryson
45c0ddde40 Update xpm icons 2017-01-28 09:29:19 +01:00
Alexander Gryson
6ac4160776 Align Sketcher Workbench icons to guidelines 2017-01-28 09:29:19 +01:00
wwmayer
aab3cdbed4 Merge pull request #475 from abdullahtahiriyo/bspline_stage1b_2017_firstdeliverable
Bspline stage1b 2017 firstdeliverable
2017-01-27 18:20:16 +01:00
Abdullah Tahiri
c1620e7a87 Sketcher: BSpline - avoid tiny circles on removal of equality 2017-01-26 23:41:02 +01:00
Abdullah Tahiri
675e6c4e41 Sketcher: BSpline Creation - as single command for one-step undo 2017-01-26 21:31:03 +01:00
Abdullah Tahiri
da5c5b22b4 Sketcher: BSpline Creation fix - Remove introduced pole if creation cancelled 2017-01-26 21:31:03 +01:00
Abdullah Tahiri
fe929559e1 Sketcher: BSpline Creation improvement - Add constraints by groups 2017-01-26 21:31:03 +01:00
Abdullah Tahiri
68d5a13b9a Sketcher: BSpline Creation acceleration - pole constraining on pole creation 2017-01-26 21:31:02 +01:00