Commit Graph

239 Commits

Author SHA1 Message Date
WandererFan
4125bfe9c3 Handle Qt5 change from QString::sprintf to asprintf 2017-09-10 15:26:16 +02:00
WandererFan
ac762c32ea Ensure DrawView picks up DrawPage Scale at creation 2017-09-10 15:25:58 +02:00
WandererFan
c0cddda862 Use system Decimals, alternate or custom for Dimensions
- Also make Dimension arrowhead size adjustable
2017-09-10 15:25:37 +02:00
WandererFan
fc6f8a91ce Fix page alignment when change to different Template 2017-09-10 15:25:22 +02:00
WandererFan
8e2e70c76e Prevent crash when Source(s) have no Shape 2017-09-10 15:25:05 +02:00
WandererFan
e94dce3906 Add requestPaint formerly in DrawView::execute 2017-09-10 15:24:50 +02:00
WandererFan
bba800af1d Fix handling of Scale change in DrawViewSymbol classes 2017-09-10 15:24:30 +02:00
WandererFan
481008629b Add dumpSymbol method to DrawViewSymbol based classes
- this is mainly for debugging output from Arch/Draft
2017-09-10 15:24:14 +02:00
WandererFan
15be0f285e Include osifont in TechDraw
- also use PropertyFont instead of PropertyString
2017-09-10 15:23:46 +02:00
WandererFan
caace9d617 Add RedrawPage command 2017-09-10 15:23:23 +02:00
WandererFan
eb59620e4d Fix #2967 Allow fcstd to open without drawing TechDraw::DrawPage 2017-09-10 15:23:04 +02:00
WandererFan
e35e2f2573 Eliminate superfluous DPG executes 2017-09-10 15:22:49 +02:00
WandererFan
2524053887 Add Page level redraw signal 2017-09-10 15:22:34 +02:00
WandererFan
ddbbae9956 Allow DrawPage updates to be suspended 2017-09-10 15:21:54 +02:00
wmayer
0d617f97d6 Port to occ7.2:
+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
2017-09-01 16:27:46 +02:00
WandererFan
8671021f42 Fix upside down GeomHatch on asymmetric faces 2017-07-17 19:47:44 -03:00
WandererFan
c5c42e74a7 Coverity fixes
151677
151789  - OK as is
152005
152508
154871  - false positive
156593
163235
2017-07-17 19:47:44 -03:00
luzpaz
657795cb12 TechDraw: typo fix 2017-07-10 19:29:55 -03:00
WandererFan
ba5f618f93 Fix Drawing/TechDraw BSplines
In some cases the Geom_BSplineCurve returned by
BrepAdaptor_Curve.BSpline() does not have the
same endpoints as the original Edge and should
not be used in place of Approx_Curve3d.
2017-06-28 22:14:01 +02:00
WandererFan
04eaca7e20 Add viewPartAsSvg in App 2017-06-23 08:14:46 +02:00
WandererFan
cd79ae2d5e Add viewPartAsDxf function in App 2017-06-23 08:14:46 +02:00
WandererFan
4c4e1e3210 Replace DPG table lookup logic with calculations
DPG used a pair of large tables to determine view
direction and rotation vector when subject was rotated
and spun.  There were many errors in the tables that
needed manual checking to correct.  The new version
uses calculations on a virtual glass cube to find view
direction and rotation vector.
2017-06-23 08:14:46 +02:00
WandererFan
75900944c9 Add tolerance parm to checkParallel 2017-06-23 08:14:46 +02:00
WandererFan
d8eec8c7e1 Fix #1937 mis-shapen projections in TechDraw and Drawing
Complex curves need more bezier segments for accurate representation.
2017-05-30 15:44:38 +02:00
WandererFan
235f0a93c6 DrawGeomHatch improvements
-draw & align dash patterns correctly on all QPainters using QGPathItem
-Allow patterns to start with space
-ensure horiz & vert lines pass through pattern origin
-Scalable complex patterns
2017-05-10 17:43:48 +02:00
WandererFan
5cef451f95 Prevent ghost centre marks in ViewDetail 2017-05-10 17:43:48 +02:00
WandererFan
9ef6b76977 implement detail view highlight in base view 2017-05-10 17:43:48 +02:00
WandererFan
0ce1a6f730 fix confusing class name 2017-05-10 17:43:48 +02:00
WandererFan
bf4a80dad5 clean up GeomHatch feature, gui & dialog
Refactor code, allow dialog to edit feature, update graphics on change
prep for dash line start positioning.
2017-05-10 17:43:48 +02:00
Peter Lama
fa4bebf2e0 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
WandererFan
fd1a1b2685 Increase tolerance for overlapping Vertexes
Some "valid" shapes are being passed to findShapeOutline where edges
that should be connected are in fact separated 10x the expected tolerance
(2*Precision::Confusion) for 2 overlapping TopoDS_Vertex.
IntTools_Tools:ComputeVV also reports these Vertices as further apart than
their combined tolerances should allow.
This change introduces a tolerance into DrawUtil and EdgeWalker vertex
comparisions that is quite "sloppy" (0.00001) but which handles the sample
objects correctly. This tolerance is adequate for drawings.  Other uses
should be considered on case by case basis.
2017-04-02 20:04:34 -03:00
Kunda
de2392eb18 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
Ian Rees
4303384667 Clean up clang inconsistent override warnings. 2017-03-01 22:00:41 +01:00
hgutsche
201c9d89b0 Some fixes for doygen syntax errors and some configuration to make it run smoother under Windows 2017-02-28 18:52:04 +01:00
Kunda
a7414e5789 source typo fixes pt1 (only on py3 merged code)
issue 0002914
2017-02-27 11:32:47 +01:00
looooo
bd42762a8a py3: TechDraw: Int->Long 2017-02-21 13:59:30 +01:00
Yorik van Havre
5590acdfa5 py3: ported Measure and TechDraw 2017-02-21 13:59:30 +01:00
WandererFan
b20d51e1b4 Cleanup orphan features on DVP delete 2017-02-09 15:45:04 -05:00
WandererFan
392ce697b4 Fix crash if BaseView null on Section delete 2017-02-09 15:45:04 -05:00
WandererFan
1e460be045 Fix 2884 crash on page delete 2017-02-07 10:51:42 -02:00
WandererFan
813454993c Change Scale to PropertyFloatConstaint to prevent OCC loop when Scale == 0 2017-02-07 10:51:42 -02:00
wmayer
edf998ddb8 fix linking error in TechDraw 2017-01-30 14:07:42 +01:00
WandererFan
190ab71055 Fix potential race when cancelling DPG creation 2017-01-29 19:40:34 -05:00
WandererFan
47d433b64c Install default PAT file 2017-01-29 19:40:34 -05:00
WandererFan
977b4adbbb Preferences for GeomHatch 2017-01-29 19:40:34 -05:00
WandererFan
1c8395e229 fix naming conflicts 2017-01-29 19:40:34 -05:00
WandererFan
60c7f2f69a Geometric hatch for Section face 2017-01-29 19:40:34 -05:00
WandererFan
dd8eefc057 minor fixes: debug message/tooltips/etc 2017-01-29 19:40:34 -05:00
WandererFan
33479bd4e3 Initial working version of geometric crosshatch/PAT files 2017-01-29 19:40:34 -05:00
WandererFan
974032dd91 Improve handling of broken references (changed Edge/Vertex names) 2017-01-29 19:40:34 -05:00