Commit Graph

295 Commits

Author SHA1 Message Date
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
triplus
e8a76cd2e8 TechDraw LabelFont defaults 2017-12-31 15:09:13 +01:00
WandererFan
d84ee2b131 Fix LineGroup install & default issues 2017-12-31 14:54:05 +01:00
WandererFan
71253bad81 Fix crash when Source.Shape is Null 2017-12-31 14:54:05 +01:00
WandererFan
815d8bed0a Fix crash during multi-object delete 2017-12-31 14:54:05 +01:00
WandererFan
0549caf2cb Support old Source property (PropertyLink)
- Source is now PropertyLinkList
2017-12-31 14:54:05 +01:00
WandererFan
d9b71fb754 LinkScope clean up 2017-12-31 14:54:05 +01:00
WandererFan
309178f2ff Allow multiple sources for all View types 2017-12-31 14:54:05 +01:00
WandererFan
8ecc370a40 Coverity 169507 2017-12-31 14:54:05 +01:00
Unknown
e3eca59173 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
WandererFan
622d91f743 Implement option for perspective drawing views 2017-12-03 19:17:53 -02:00
WandererFan
5b19abb0dd Fix "still touched after recompute" and display 2017-12-03 19:17:53 -02:00
WandererFan
4756cfab4e Implement LineGroups for default weights
- Add ability to control default weight for visible,
  hidden and decorative lines from a configuration
  file. Diffent sets of defaults can be specified as
  a preference.
2017-12-02 13:51:25 +01:00
WandererFan
8ee5a0cfd3 Fix Dimension value format with Qt5
- Dimension values were displayed as zero for locales
  with "," decimal point in Qt5.
2017-11-12 19:08:33 -05:00
WandererFan
f637da702d Make decimal point optional in FormatSpec 2017-11-12 19:08:33 -05:00
WandererFan
3b8c240f89 Rotate DrawViewPart around part centroid 2017-11-12 19:08:32 -05:00
WandererFan
54b7d2c5f0 Handle variable UoM schemes in Dimensions 2017-10-19 13:24:08 +02:00
wmayer
525770f838 fix coverity issue 2017-10-15 21:08:04 +02:00
wmayer
a42199882b fix -Winconsistent-missing-override 2017-10-15 20:26:10 +02:00
wmayer
96d01c9200 fix several kind of warnings:
+ fix -Wparentheses/-Wlogical-op-parentheses
+ fix -Wunused-variable
+ disable -Wundefined-var-template due to many false-positives (clang)
+ fix -Winconsistent-missing-override
+ fix -Wmaybe-uninitialized
2017-10-15 19:12:07 +02:00
luzpaz
f3bf8fe919 Misc. typos
+ some are doxy others are just comment code.  
+ some minor whitespace and grammatical tweaks. 
+ app/SCL/* typos have also been submitted upstream (https://github.com/stepcode/stepcode/pull/366). So it's ok to merge them in to master.
2017-10-04 17:59:11 +02:00
WandererFan
5fb3a4d58b Fix XXX is still touched after recompute in DPG 2017-10-02 13:48:45 -03:00
WandererFan
913e6a7fd8 Allow Views of App::Parts 2017-10-02 13:48:45 -03:00
WandererFan
6d032f1bcf Change links to Global scope 2017-10-02 13:48:45 -03:00
WandererFan
310fdab492 add missing logic for "true" dimensions 2017-10-02 13:48:45 -03:00
WandererFan
a580f60e1e change isDeleting to isUnsetting
- DocumentObject::isDeleting was changed to isRemoving.
  This commit just prevents future confusion.
2017-10-02 13:48:45 -03:00