vocx-fc
96e3267f08
Draft: clean up ViewProviderLabel class
...
Various improvements in style, PEP8, spacing, docstrings.
Improve the methods to update the text, the arrow, and the frame
of the label.
Options to handle `Justification` and `LineSpacing` are added.
These can be handled just like with the `ViewProviderText` object,
as the internal text node is the same, a `SoAsciiText`.
Nevertheless, currently the leader line and the frame that are
drawn for the label don't consider the correction in position
for the `Justification` or `Linespacing` so the graphics
may be overlapped in certain situations.
2020-07-10 12:23:43 +02:00
vocx-fc
b1fade6f9e
Draft: clean up ViewProviderText class
...
Various improvements in style, PEP8, spacing, docstrings.
The list of strings is set to empty before being assigned again.
This solves a problem of the text not being updated correctly.
In the past some `try-except` blocks were there to catch and
ignore certain exceptions that apparently were caused by a
race condition, where certain properties are not assigned
to the object before they are used. These errors
don't seem to occur in v0.19, so we removed the exception
handling. We leave comments mentioning the issue
in case it re-appears.
The `DisplayMode` is swapped, so now `'2D text'` means that the
text always faces the camera, and `'3D text'` means that the
text can be positioned in different orientations in the 3D space.
This is consistent with the `Draft Label` behavior.
A function `draftutils.gui_utils.migrate_text_display_mode`
is provided to help migrate older objects of type `Text`
or `DraftText` to the new display mode.
2020-07-10 12:23:43 +02:00
vocx-fc
0f30c8ba2b
Draft: migrate DraftText type to Text
2020-07-10 12:23:43 +02:00
Bernd Hahnebach
5f88fa2ebb
FEM: examples, rename material multiple two boxes
2020-07-10 08:41:13 +02:00
Bernd Hahnebach
8abfe38fb1
FEM: examples, code formating material multiple two boxes
2020-07-10 08:41:11 +02:00
Sudhanshu Dubey
fc89991203
FEM: unit tests, add test for multibody face analysis example
2020-07-10 08:41:09 +02:00
Sudhanshu Dubey
c6a92226f9
FEM: examples, added mutibody face analysis example
2020-07-10 08:41:05 +02:00
Sudhanshu Dubey
aa13a93dff
FEM: unit tests, add test for multibody analysis example
2020-07-10 08:41:05 +02:00
Sudhanshu Dubey
a089d4e4da
FEM: examples, add another multi material
2020-07-10 08:41:03 +02:00
Bernd Hahnebach
efc3abdbf7
FEM: examples, some code improvements
2020-07-09 21:35:20 +02:00
wmayer
901c24fec3
Gui: add comment
2020-07-09 19:59:24 +02:00
Zheng, Lei
f00a15b0ea
Gui: disable COIN_AUTO_CACHING to work around coin3D bug
2020-07-09 19:57:48 +02:00
Bernd Hahnebach
bf98467c50
FEM: examples, remove z88 solver from not supported examples
2020-07-09 19:47:00 +02:00
Sudhanshu Dubey
0869621707
FEM: examples, solver name changed to work with new examplegui
2020-07-09 18:02:49 +02:00
WandererFan
8be9445138
[TD]Section line symbol rotation
2020-07-09 08:46:21 -04:00
Sudhanshu Dubey
44f46da701
FEM: cancel button changed to close button
2020-07-09 08:09:09 +02:00
Sudhanshu Dubey
21aefcbed6
FEM: examplegui modified to setup different solvers
...
... based on the selection by user
2020-07-09 08:08:54 +02:00
Bernd Hahnebach
630208e879
FEM: examples gui, code formating
2020-07-08 00:01:22 +02:00
Bernd Hahnebach
5cd12be51f
FEM: examples gui, improve close and only enable button on selectig example
2020-07-07 22:02:16 +02:00
Sudhanshu Dubey
eed05c7db3
FEM: examples gui, improvemnts
...
OK button changed to Setup and buttons disabled by default
2020-07-07 22:02:07 +02:00
wandererfan
e0c80824de
[TD]DPG spacing for oblique views
2020-07-07 15:26:20 -04:00
Bernd Hahnebach
2ee361df3d
FEM: examples, add warning if wrong solver type is given to the setup method
2020-07-07 18:49:25 +02:00
Abdullah Tahiri
ab15149825
Sketcher: fix access to isPerformingTransaction on null pointer
...
===============================================================
Fixes this crash:
https://forum.freecadweb.org/viewtopic.php?f=3&t=48414#p414255
2020-07-07 18:09:55 +02:00
Bernd Hahnebach
8b82fdf7f5
FEM: elmer writer, equation elasticity, only write needed material values
2020-07-07 12:33:54 +02:00
Bernd Hahnebach
21f779b42a
FEM: elmer writer, fix self weight
2020-07-07 12:33:45 +02:00
Bernd Hahnebach
275235f937
FEM: cmake, fix calculix unit test data install dir
2020-07-07 10:32:34 +02:00
vocx-fc
70617e2e85
Draft: set a space before the Link group
...
For some reason all `App::Link` properties are in a group that
starts with a space, so `' Link'`, not just `'Link'`.
This was changed in 9873eb0a74.
2020-07-07 10:15:14 +02:00
vocx-fc
9de3c4143a
Draft: add warning message in case the radius is negative
2020-07-07 10:14:04 +02:00
carlopav
b8007c1e06
Draft: cleanup of selectWP and support for objects getGlobalPlacement
2020-07-07 10:13:23 +02:00
carlopav
aff02d706a
Draft: possibility to set the working plane to an App::Part placement
2020-07-07 10:13:23 +02:00
carlopav
07745ef467
Draft: makeCopy support to reparent App::Part grouped objs
2020-07-07 10:12:49 +02:00
carlopav
e30cf42176
Draft: Draft.move() support new objects ( fix #3754 )
...
and small refactor consequent to the introduction of App.ActiveDocument.copyObject support in Draft.makeCopy()
2020-07-07 10:12:49 +02:00
carlopav
a1fe270915
Draft: cleaned imports of Draft.makeCopy
2020-07-07 10:12:49 +02:00
carlopav
7e72d0778d
Draft: support for Document.copyObject() API
...
Now Draft can copy every FreeCAD object that have a shape.
2020-07-07 10:12:49 +02:00
Bernd Hahnebach
8d9fb3e173
FEM: examples gui, fix report console error
2020-07-07 09:48:00 +02:00
wmayer
1ae5bf7ffb
Fem: [skip ci] fix bug in ViewProviderFemPostFunction::attach
...
When applying an action on a node its reference count must be > 0
2020-07-07 08:43:46 +02:00
Bernd Hahnebach
a6fc4cb86a
FEM: commands manager, fix load of FemGui
2020-07-07 08:00:34 +02:00
Bernd Hahnebach
fe4e706a04
FEM: elmer unit tests, add ccx cantilever prescribed displacement example
2020-07-07 08:00:26 +02:00
Bernd Hahnebach
1c790283de
FEM: solver calculix unit tests, add all ccx cantiever examples
2020-07-07 07:30:20 +02:00
Bernd Hahnebach
9b75c0b7c8
FEM: calculix unit tests, move test from ccxtools to calculix solver
2020-07-06 23:29:22 +02:00
Bernd Hahnebach
0ed2caeadc
FEM: elmer unit test data, rename some test data files
2020-07-06 23:29:20 +02:00
Bernd Hahnebach
b5a9207957
FEM: elmer unit tests, code improvements
2020-07-06 23:29:18 +02:00
Bernd Hahnebach
7c154af8f9
FEM: calculix unit tests, code improvements
2020-07-06 23:29:16 +02:00
Bernd Hahnebach
dc2211c4b8
FEM: ccx unit test data, rename to calculix and rename some data files
2020-07-06 23:29:12 +02:00
Bernd Hahnebach
713fc0bbc5
FEM: ccx tools unit tests, rename some methods and change base name retrieving
2020-07-06 23:29:12 +02:00
Bernd Hahnebach
6e04d86af9
FEM: ccx unit test data, delete not needed geometry setup files
2020-07-06 23:29:10 +02:00
MA-LAPTOP\apeltauer
0de1efae50
Gui: [skip ci] connect to the tabwidget and check if the task tab was changed
2020-07-06 17:21:03 +02:00
Zheng, Lei
2801fa342c
Gui: update command actions after sending message to view
2020-07-06 16:38:11 +02:00
Tobias Bossert
a7fb422f6d
fixed xlsx import issue, now compatible with python 2.x and 3.x
2020-07-06 16:28:17 +02:00
Tobias Bossert
dd7563b5dc
Fixed import from XLSX files
...
since getText() already returns a string, the encode() function results in a byte object which is not compatible with setAlias().
2020-07-06 16:28:17 +02:00