Commit Graph

320 Commits

Author SHA1 Message Date
wandererfan
8ee01aaf68 Fix extension line direction in isometric views 2018-06-22 10:47:55 -03:00
wandererfan
5efe63c06a Fix X,Y of anchor in Projection Group 2018-06-15 11:34:00 -03:00
wandererfan
aec643fd84 Fix wrong point in Radius dim 2018-06-10 19:13:22 +02:00
wmayer
920a4e62b2 add missing newlines 2018-06-09 11:47:12 +02:00
wandererfan
d3befd1801 Position DPGI Dimensions correctly in Dxf file 2018-06-04 12:56:26 -04:00
wandererfan
d4552fb11a Export Diametric Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
8115c8e80b Export Radial Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
65f67d8ff8 Export Angular Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
06e8572d98 Export Linear Dim to Dxf 2018-05-21 19:36:16 -04:00
luz.paz
43244aa762 More misc. typos 2018-05-19 12:17:52 -04:00
luz.paz
69b3b0b7f2 Misc. typos 2018-05-19 12:06:34 -04:00
wandererfan
fca8034b18 Fix delayed painting
- Annotation and Image were not being painted
  immediately, but had to wait for a page
  refresh.
2018-05-16 18:58:10 -04:00
wandererfan
1ff736e282 Remove debugging messages 2018-05-16 18:58:10 -04:00
wandererfan
765709ddcf Fix DrawProjGroup Positioning
- DrawPage was not including DPG in list of all
  views, so DPG was not being positioned properly.
2018-05-16 18:58:10 -04:00
wandererfan
6f61c21e3c export TD Annotation to Dxf 2018-05-16 18:58:10 -04:00
wandererfan
338107367a Fix message for empty detail area 2018-05-15 21:50:48 +02:00
wandererfan
6ba7f912ee Fix selection for radius Dims
- selection of ellipse curves was allowed
  but not supported for radius dims.
2018-05-15 21:50:48 +02:00
wandererfan
e4debdcfce Convert deprecated boost::signal to signals2 2018-05-11 10:32:24 -03:00
wandererfan
8a183a0ba0 Eliminate some redundant executes
- excessive calls to DrawView::execute were
  slowing data entry in PropertyEditor.
2018-05-11 10:32:24 -03:00
wmayer
5e484d0a92 disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions 2018-04-29 11:00:28 +02:00
wandererfan
8047ec3f7e Add View and Page Dxf export 2018-04-29 10:12:31 +02:00
wandererfan
ae2b51d40f Add some debug and util routines. 2018-04-25 11:09:39 +02:00
wandererfan
fdaf316e9e Add #3337 Arbitrary Dimension 2018-04-25 11:09:39 +02:00
wandererfan
9bcc7da599 Fix exterior angle arc and value 2018-04-25 11:09:39 +02:00
wandererfan
e9eeea9318 Remove duplicate code/save Dim line geom 2018-04-25 11:09:39 +02:00
wandererfan
dd3cc51818 Add getAllViews() method to DrawPagePy 2018-04-23 07:55:38 +02:00
wandererfan
91a0aff25f Coverity fixes
CID 174671
CID 174670
CID 174669
CID 174668
CID 174667
CID 174664
2018-04-23 07:55:38 +02:00
wmayer
99ec96acd5 prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00
luz.paz
46d32d78a3 Misc. typos: Please merge right before 0.17 release
I'm still finding typos in the source code. I propose that you keep this PR open prior ro relaese and then merge  so that if I find other typos in the meantime they will be part this release.
2018-03-18 15:15:16 +01:00
WandererFan
f43fb948ab Fix #2624 Draft Patterns Not Installed 2018-03-08 12:02:59 +01:00
WandererFan
6384622cb9 Fix Bad View Position on Add to Clip 2018-03-08 11:24:31 +01:00
wandererfan
f0ebddc2cc Fix painting of detail highlight
- painting of the detail highlight in the base
  view was being delayed until the base view
  was updated. It is now drawn when detail
  changes.
2018-03-03 11:22:15 -03:00
Sebastian Bachmann
1505ee3115 TechDraw: new center/section draw style
using custom QT pen styles, the center and section lines look much
better.
With some math we are also able to control the middle position, thus
the centerlines will always look good, regardless of the size of an
object.

Also getting the section label size from the settings, so the font
size is controllable and not hardcoded.

Bonus: adding blank templates for the common paper sizes (as the
        Drawing WB has them)
2018-02-24 16:58:17 +01:00
WandererFan
946cce2fc1 Fix DrawViewAnnotation TextSize
- text size was originally specified in integer
  point size.  Now they are specified in mm. The
  relevant Properties have been changed to
  PropertyLength.
2018-02-22 19:17:40 +01:00
WandererFan
bdba11d965 Dimension Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
WandererFan
02b64dca3a VPart/VSection Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
WandererFan
cbca02f7f3 HatchColor & HatchScale prop to Gui side 2018-02-14 15:42:25 -05:00
WandererFan
6fa92cb188 KeepLabel Property to Gui side 2018-02-14 15:42:25 -05:00
WandererFan
f24da28239 Allow ProgGroup Item AutoPosition from Python 2018-02-11 20:07:57 +01:00
WandererFan
d7544b4223 Prevent Loop in BRepBuilderAPI_Transform
- if a scale transform with scale = 0 is passed to
  BRepBuilderAPI_Transform, it will loop forever.
  If Page.keepUpdated is false, and Views have not yet
  been executed (ex at load time), Views will have a
  0.0 x 0.0 bbox and if Autoscale is true, a scale of
  0.0 will be used in fit-to-page.
2018-02-01 17:01:12 -05:00
wmayer
a0ed53c5ed fix -Winconsistent-missing-override 2018-01-28 00:30:56 +01:00
wmayer
f21a855631 fix -Winconsistent-missing-override 2018-01-28 00:20:11 +01:00
WandererFan
613ecd478d Relax regex for editable text in Template
- the regex for finding editable text fields in
  the svg code of Templates was too strict and
  missed some fields if the svg had extra characters
  between </tspan> & </text>.
2018-01-26 17:45:31 -05:00
WandererFan
eafba8cbfe Fix Exception when Source Shape IsNull 2018-01-22 19:10:28 -05:00
TeroK
61b202992c TechDraw: Add option to use polygonal HLR algorithm
Now on property panel there is option 'Coarse View' which allows to set
selected drawing view's Hidden Line Removal to utilize polygonal algorithm.
This should be faster on same cases (complex models).

When this option is set for a view there is known limitation with dimensions not
working on this experimental mode. At least currently this is best utilized on
view with no dimensions.

Also the vertices' 'black dots' are not drawn on this mode view to avoid
cluttering.  Face hilite is avoided, to gain speed. All curves are represented
by short linesegments in this mode.

Previously TechDraw always used OCC's exact HLR algorithm to generate views,
which produces good quality and continous shape lines but is sometimes
slower to generate than with polygonal approach.

Additionally now there is bool 'CoarseView' Parameter Editor setting, if anyone
wants to set this as their default.
2018-01-22 19:31:30 +01:00
WandererFan
4f2fe1d1a5 Allow GroupExtension as Source for Views
- DrawViewPart had special case logic for App::Part.
  It now handles DocumentObjectGroup and any other
  GroupExtensions as Source.
2018-01-20 14:07:31 +01:00
WandererFan
a858c3b9be Fix crash when deleting View with Dimensions
- if a Dimension has multiple references to a
  DrawViewPart (ex vertex-vertex) the Dimension
  will appear twice in the DVP's InList.  This
  commit ensures that the Dimension is only
  deleted once when deleting the DVP.
2018-01-12 10:30:42 -02:00
WandererFan
60e43253f7 Fix Section Line Wrong Position
- Section cut line Y coord needs to be mirrored to
  be position correctly on Page.
2018-01-11 11:21:25 -02:00
WandererFan
1e7aa621f1 Allow View Position to be Locked
- prevents accidently moving View A from desired position
  while grabbing/dragging View B.
2018-01-11 11:21:25 -02:00
WandererFan
c94bb4d2f8 Fix crash in DrawViewDraft/DrawViewArch
- when restoring DVD/DVA from old files, convert Source from
  PropertyLinkGlobal to PropertyLink with Scope = Global. Note
  subtle difference from Restore method in DrawView - PropertyLink
  vs PropertyLinkList.
2018-01-07 18:37:34 -02:00