Commit Graph

301 Commits

Author SHA1 Message Date
wmayer
5a7bc3376d 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
33c77a5462 Add View and Page Dxf export 2018-04-29 10:12:31 +02:00
wandererfan
5ccb7e7d37 Add some debug and util routines. 2018-04-25 11:09:39 +02:00
wandererfan
a40996016f Add #3337 Arbitrary Dimension 2018-04-25 11:09:39 +02:00
wandererfan
c3d56ca36e Fix exterior angle arc and value 2018-04-25 11:09:39 +02:00
wandererfan
4cd563b5c2 Remove duplicate code/save Dim line geom 2018-04-25 11:09:39 +02:00
wandererfan
40919896e7 Add getAllViews() method to DrawPagePy 2018-04-23 07:55:38 +02:00
wandererfan
4f3f620720 Coverity fixes
CID 174671
CID 174670
CID 174669
CID 174668
CID 174667
CID 174664
2018-04-23 07:55:38 +02:00
wmayer
840c9e8b3c prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00
luz.paz
b45bc4889d 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
be3b4d8881 Fix #2624 Draft Patterns Not Installed 2018-03-08 12:02:59 +01:00
WandererFan
11ad76b82e Fix Bad View Position on Add to Clip 2018-03-08 11:24:31 +01:00
wandererfan
449dbe13eb 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
c41363c117 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
c606bbbcba 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
679f26af58 Dimension Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
WandererFan
99fcba4992 VPart/VSection Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
WandererFan
78f4d91b95 HatchColor & HatchScale prop to Gui side 2018-02-14 15:42:25 -05:00
WandererFan
033077f76f KeepLabel Property to Gui side 2018-02-14 15:42:25 -05:00
WandererFan
4f291f7305 Allow ProgGroup Item AutoPosition from Python 2018-02-11 20:07:57 +01:00
WandererFan
356f879659 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
ed893ff504 fix -Winconsistent-missing-override 2018-01-28 00:30:56 +01:00
wmayer
0718e2c56a fix -Winconsistent-missing-override 2018-01-28 00:20:11 +01:00
WandererFan
da1d69ce4c 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
45a1d6c906 Fix Exception when Source Shape IsNull 2018-01-22 19:10:28 -05:00
TeroK
434bf4d3f3 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
4b9f43b467 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
79dff6b8cc 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
861dc42d33 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
70099d5704 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
d1e83f1075 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
f34659a29f TechDraw LabelFont defaults 2017-12-31 15:09:13 +01:00
WandererFan
c548878069 Fix LineGroup install & default issues 2017-12-31 14:54:05 +01:00
WandererFan
55f050e0f5 Fix crash when Source.Shape is Null 2017-12-31 14:54:05 +01:00
WandererFan
553fa64ec4 Fix crash during multi-object delete 2017-12-31 14:54:05 +01:00
WandererFan
98be3a3ff7 Support old Source property (PropertyLink)
- Source is now PropertyLinkList
2017-12-31 14:54:05 +01:00
WandererFan
76373b2c6a LinkScope clean up 2017-12-31 14:54:05 +01:00
WandererFan
e163ae1746 Allow multiple sources for all View types 2017-12-31 14:54:05 +01:00
WandererFan
7eba113600 Coverity 169507 2017-12-31 14:54:05 +01:00
Unknown
a8ecffb652 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
WandererFan
7588081afd Implement option for perspective drawing views 2017-12-03 19:17:53 -02:00
WandererFan
5bc256d3f2 Fix "still touched after recompute" and display 2017-12-03 19:17:53 -02:00
WandererFan
15b509db25 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
4ea6204d2e 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
9d038ddf60 Make decimal point optional in FormatSpec 2017-11-12 19:08:33 -05:00
WandererFan
44fd200166 Rotate DrawViewPart around part centroid 2017-11-12 19:08:32 -05:00
WandererFan
4e474cf60b Handle variable UoM schemes in Dimensions 2017-10-19 13:24:08 +02:00
wmayer
46d516b465 fix coverity issue 2017-10-15 21:08:04 +02:00
wmayer
1abc3ab82d fix -Winconsistent-missing-override 2017-10-15 20:26:10 +02:00
wmayer
8b2fcf3677 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