Commit Graph

392 Commits

Author SHA1 Message Date
Yorik van Havre
e809a6fa24 Arch/TechDraw: TD Arch views now have a 'fillSpaces' property to show Arch spaces as color-filled areas 2019-04-19 18:20:33 -03:00
wandererfan
818ea62f66 Fix Detail Highlight when Detail has no Geometry
- Detail circles were no drawn if detail area did not
  produce any geometry (detail anchor point + radius not
  over original part.
2019-04-18 18:47:03 -04:00
wandererfan
02da48cac8 Fix non-Delete of Graphic on DocObject delete
- While the source document obj was "removing", the
  graphic was being deleted and readded by the view
  provider.
2019-04-18 18:47:03 -04:00
babaroga
2cc85fed64 FIX: Prevent situation where default format entered in preferences, overwrites prefixes on eg. circular dimensions 2019-04-17 08:26:47 -04:00
wmayer
0521860740 rename BUILD_uSE_PCH to FREECAD_USE_PCH to be consistent with other build options 2019-04-15 13:31:31 +02:00
wandererfan
764a3113b8 DrawBalloon clean up
- resolve linker errors after merge
- expose useful properties
- resolve "ambiguous ancestor" messages after merge
2019-04-05 19:35:26 -04:00
wandererfan
ca24f0a821 Add default parameter for Page Scale 2019-04-05 19:35:26 -04:00
wandererfan
3beb18b256 Fix search for subShapes
- this is mainly for Arch objects. the search for shapes
  is more difficult.
2019-04-05 19:35:26 -04:00
wandererfan
4492576c6b Fix coverity CID 151722 2019-04-05 19:35:26 -04:00
wandererfan
76696b0f99 Improve error messages for invalid shapes 2019-04-05 19:35:26 -04:00
Franck Jullien
c5942d6a78 TechDraw: add Balloons 2019-04-01 23:24:17 +02:00
wandererfan
11abf09299 Add Preference for Dimension Format 2019-03-28 10:44:33 -03:00
wandererfan
626ee0c98d Fix TD Dfx export - spline conversion 2019-03-28 10:44:33 -03:00
wandererfan
64b85f3184 Fix OCC error handling
- GeometryObject.cpp used OCC "Raise" to signal error
  condition, but this is only caught in GuiDocument.cpp.
  Changed to catch exception locally.
2019-03-22 11:00:14 -03:00
wmayer
23bc00e1a1 PVS: V1024 The 'file' stream is checked for EOF before reading from it, but is not checked after reading. Potential use of invalid data 2019-03-13 13:34:45 +01:00
wandererfan
c6e8d688db Fix #3891 S/S Contents not displayed at load
- DrawViewSpreadsheet is empty after document load. Requires
  recompute to display s/s contents.
2019-03-09 17:41:43 -05:00
wandererfan
86cc2641bc Ensure ProjGroup is created before child 2019-03-07 10:58:29 +01:00
wandererfan
e29c610993 Replace static_cast with dynamic_cast
- replace all static_cast with dynamic_cast + error test
2019-03-07 10:58:28 +01:00
wandererfan
d58b86c52f 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
db3a69ba11 Remove superfluous updates
- under certain conditions, unnecessary screen paints
  were being performed.
2019-03-07 10:58:28 +01:00
wandererfan
fa5fb1ea9c Fix bad highlight position in Detail from ProjGroup 2019-02-22 11:55:21 +01:00
wandererfan
b1e8eee9d2 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
5259134af3 Fix update of children on parent LockPosition change 2019-02-14 21:14:11 +01:00
wandererfan
9de6ff802a 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
2240ba0e2a 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
f92ddb961c 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
242717f5e3 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
79504462d1 Fix movement of Front View in ProjectionGroup 2019-01-21 11:45:30 +01:00
wandererfan
49c6a679af 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
bb0bbeef9a 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
d10e06039d 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
3ec65a32ec Fix View position in ClipGroup 2018-11-19 10:12:09 +01:00
wandererfan
deeceead68 Fix #3698 Detail of Section View 2018-11-19 10:12:08 +01:00
wmayer
d7ec2b1368 Replace Base::Exception with appropriate subclass 2018-11-14 19:42:10 +01:00
wandererfan
d9fb3a2ac5 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
fce600e29c 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
3ec9b798bf Fix BSpline/Circle conversion 2018-10-30 13:25:33 +01:00
wandererfan
47f4a9dacb Add formatter for gp_Pnt 2018-10-30 13:25:33 +01:00
wandererfan
26d0a134db Fix delayed rotation of DVP based Views 2018-10-26 00:49:53 +02:00
wandererfan
957328ee18 Workaround for #3332 2018-10-26 00:49:52 +02:00
wandererfan
64538f7b3c Use circles for circular BSplines 2018-10-25 10:58:53 -03:00
wandererfan
7a8c559bcc Upgrade test for BSpline is Line 2018-10-22 15:34:13 -03:00
wandererfan
7f6be0a265 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
2a85174148 Fix #3634 Lost formatSpec on save/restore 2018-10-13 02:10:53 +02:00
wandererfan
4bcfb4a1cd Fix #3623 Display of Ft/In Dimensions 2018-10-11 21:59:20 +02:00
wandererfan
395905b29c Handle Straight Line BSplines 2018-10-02 09:42:16 -03:00
wandererfan
8f35f4c956 Add 3Point Angle Dimension 2018-10-02 09:42:16 -03:00
wandererfan
3765300abc 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
9f6b61a2a9 Add over/under Tolerance to Dimensions 2018-10-02 09:42:16 -03:00
wandererfan
cf738047d4 Fix double scaling in DPG AutoScale 2018-09-26 16:59:39 +02:00