Commit Graph

425 Commits

Author SHA1 Message Date
wandererfan
9a99a87a9a Replace static_cast with dynamic_cast
- replace all static_cast with dynamic_cast + error test
2019-03-07 10:58:28 +01:00
wandererfan
7189b8ebc0 Fix segfault on missing Anchor view
- test script did not create Anchor(Front) view.  DPG/DVP did not
  handle missing Anchor properly
2019-03-07 10:58:28 +01:00
wandererfan
198c2258d4 Remove superfluous updates
- under certain conditions, unnecessary screen paints
  were being performed.
2019-03-07 10:58:28 +01:00
wandererfan
77b22f4f30 Fix bad highlight position in Detail from ProjGroup 2019-02-22 11:55:21 +01:00
wandererfan
c940081de1 Allow Section of unfused Source
- ViewSection required Source shapes to be fused before performing
  the section cut.  This caused some Edges to not be shown in the
  result.  An option to not fuse the Sources has been added.
2019-02-22 11:55:20 +01:00
wandererfan
4ced49da81 Fix update of children on parent LockPosition change 2019-02-14 21:14:11 +01:00
wandererfan
41ab00c116 Restore secondary ortho view movement to v017 style
- this should also complete the fix for #3809
2019-02-14 21:14:11 +01:00
wandererfan
a0e3ab1a40 Fix #3810 X/Y Property Update on Locked View
- fixes x/y update when position locked for simple
  Views and ProjectionGroups.
2019-02-14 21:14:10 +01:00
wandererfan
0c5629870c Hide n/a Rotation property
- DPG does not rotate, but shows Rotation property in
  Property Editor
2019-01-30 10:12:49 -02:00
wandererfan
5a26558a9d Fix out of scope warnings
- Links within TD were not set to Global scope. This caused
  problems when a Page was in a container, but Views were not
  in the container.
2019-01-22 10:15:04 -02:00
wandererfan
90fd3ae483 Fix movement of Front View in ProjectionGroup 2019-01-21 11:45:30 +01:00
wandererfan
8801726ed4 Fix StartCell/EndCell handling
- multi-character Columns and multi-digit Rows
  were not being interpreted correctly.
2018-12-24 11:02:32 -02:00
wandererfan
cd1959a094 Fix Detail highlight position for rotated DPGI
- highlight position calculation was not taking into account
  rotation of DPGI due to RotationVector property.
2018-12-19 10:30:30 -02:00
wandererfan
9907422806 Display correct symbols for Minute/Second
- the ImperialCivil unit schema uses "M" for angular
  minutes and "S" for angular seconds. These must be
  replaced by ' and ".
2018-12-06 08:57:17 -03:00
wandererfan
ddfa510565 Fix View position in ClipGroup 2018-11-19 10:12:09 +01:00
wandererfan
e67b84c5ec Fix #3698 Detail of Section View 2018-11-19 10:12:08 +01:00
wmayer
b0247d184e Replace Base::Exception with appropriate subclass 2018-11-14 19:42:10 +01:00
wandererfan
9d384bd74e Fix #3674 inverted Detail from DPG
- Base views from ProjectionGroups can
  have inverted projection direction or
  rotation vector vs regular views. This
  causes Detail views to be inverted.
2018-11-10 17:04:58 +01:00
wandererfan
f10c28fb5b Handle case of no points returned
- GeomAPI_ProjectPointOnCurve sometimes returns
  zero points and/or throws "NotDone" exception.
2018-11-09 22:26:37 +01:00
wandererfan
408c31634f Fix BSpline/Circle conversion 2018-10-30 13:25:33 +01:00
wandererfan
f0420d6cbd Add formatter for gp_Pnt 2018-10-30 13:25:33 +01:00
wandererfan
9c1587cfad Fix delayed rotation of DVP based Views 2018-10-26 00:49:53 +02:00
wandererfan
b2135da447 Workaround for #3332 2018-10-26 00:49:52 +02:00
wandererfan
24f43527f5 Use circles for circular BSplines 2018-10-25 10:58:53 -03:00
wandererfan
9f2ad88ded Upgrade test for BSpline is Line 2018-10-22 15:34:13 -03:00
wandererfan
a281832627 Change tool from cylinder to prism
- cutting with cylinder produced too many
  short bsplines from HLR.  Straight cut
  from prism reduces these and speeds up
  HLR significantly.
2018-10-17 11:25:49 +02:00
wandererfan
cb30a82969 Fix #3634 Lost formatSpec on save/restore 2018-10-13 02:10:53 +02:00
wandererfan
f6e9faa62c Fix #3623 Display of Ft/In Dimensions 2018-10-11 21:59:20 +02:00
wandererfan
cc320aa802 Handle Straight Line BSplines 2018-10-02 09:42:16 -03:00
wandererfan
b569120131 Add 3Point Angle Dimension 2018-10-02 09:42:16 -03:00
wandererfan
f5668c77ae Move dimText Prefix to FormatSpec
- prefix was applied at every request for
  formatted value. Now prefix is applied
  to FormatSpec and can be overridden for
  things like screw dia. M6 vs (phi)M6.
2018-10-02 09:42:16 -03:00
wandererfan
d2c2b35b6c Add over/under Tolerance to Dimensions 2018-10-02 09:42:16 -03:00
wandererfan
859fed207d Fix double scaling in DPG AutoScale 2018-09-26 16:59:39 +02:00
wandererfan
3163c3d6f5 Fix late repaint of secondary views
- when ScaleType=Automatic and Scale changes
  individual views were not being repainted until
  next document recompute.
2018-09-26 16:59:12 +02:00
wandererfan
db593f2169 Suppress spurious message
- was reporting "pattern not found" even if
  hatch source file was not a .pat file.
2018-09-26 16:59:00 +02:00
wandererfan
295bb8fa86 Fix Decoration positions on Views derived from DPG Base
- Section faces, detail highlights, center and section lines
  were wrong when the BaseView was a DPGI
2018-09-14 21:28:02 +02:00
luz.paz
37305f69fe Misc. typo and whitespace fixes
`codespell -q 3 -I ../fc-word-whitelist.txt --skip=".git,*.ts,*.po,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/zipios++"`
2018-09-11 07:27:22 +02:00
wandererfan
aa8feb79d0 Use Face or 3D direction for View and ProjGroup
- use current 3D window direction as starting
  direction for DrawViewPart and ProjectionGroup
- if a Face is selected, use Face normal as
  starting direction.
2018-09-06 08:00:00 +02:00
wmayer
a84b84bf1b CMP0050: make TechDraw module aware of cmake policy 2018-08-20 20:59:39 +02:00
wandererfan
de66ab3d1a Coverity Fixes
- 175807
- 175808
- 183598
2018-08-18 21:59:06 +02:00
wandererfan
0432ecdb88 Fix propagation of Source property to children 2018-08-18 21:59:05 +02:00
wmayer
9549f29f2a fix MSVC warning: unreferenced local variable 2018-08-13 11:06:20 +02:00
wandererfan
9f29693df3 Fix Dimension update on DPG Scale Change 2018-08-11 11:24:13 +02:00
wandererfan
7028da17b5 Expose findCentroid to Python 2018-08-11 11:24:12 +02:00
wandererfan
5730aae4c9 Allow circular BSplines to be dimensioned 2018-08-11 11:24:12 +02:00
Markus Lampert
0b40519f3f Changed all catch types to references for polymorphic exceptions. 2018-08-08 15:45:30 +02:00
wandererfan
ee607d36a9 Fix iso View position in AutoDistribute 2018-07-31 16:08:48 -03:00
wmayer
d3ef6905ff + add option to switch off precompiled header 2018-07-25 20:17:11 +02:00
wandererfan
4418502964 Add ANSIB Template
- also fix cmake to move all templates after
  build.
2018-07-23 12:47:17 -03:00
wandererfan
2cc80b6131 Add preference settings
- autodistribute, vertex size, vertex color
2018-07-23 12:47:17 -03:00