Commit Graph

332 Commits

Author SHA1 Message Date
wmayer
2d8e70085e rename 2d tool classes to be consistent with 3d classes 2016-11-21 14:29:51 +01:00
Yorik van Havre
bf0d37bf28 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
Yorik van Havre
6a2eed229d Doc: small adjustments to doxygen docs 2016-11-15 16:17:58 -02:00
wmayer
0dbc5d8041 remove deprecated macros 2016-11-09 16:58:54 +01:00
wmayer
ff2a361928 fix several gcc warnings 2016-11-08 14:31:08 +01:00
wmayer
47b41a7883 fixes #0002460: Use keyword 'explicit' for Quantity constructor 2016-11-05 23:21:42 +01:00
Stefan Tröger
0ae9346b3c Extenions: Drop virtual inheritance
Due to problems onthe windows platform the virtual inheritance approach must be dropped. NExt to the already reimplemented proeprty interface the Type interface is reimplemented too. This change allows to revert some earlier changes.
2016-10-08 12:48:34 +02:00
Stefan Tröger
89bbb81521 Extension: Fix order-of-initialisation crash
FreeCADs property system utilises some pointer math to calculate the offset between
property and base class. Due to virtual inheritance of th ePropertyContainer the memory
layout has been changed to rather random, which has lead to crashes dependend on the
order of object initialisation.

The solution is to not make PropertyContaner virtual but a class below, Base::Persitance.
Then the memory layout is random for Persistance, but it is perfectly aligned for the
base class chains from PropertyContainer onwards as well as from Extension onwards.
Hence the proeprty system was changed to take the offset always from those two.
2016-10-08 12:48:34 +02:00
Stefan Tröger
3e1ba47d61 Extensions: Handle new dynamic_cast's 2016-10-08 12:48:34 +02:00
Stefan Tröger
6fa964c53f Extensions: Introduce classes and port App groups 2016-10-08 12:48:34 +02:00
wmayer
2af6bb6e49 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
1e6dcabefc fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
39e589a4d7 fix -Wextra in FreeCADBase 2016-09-21 15:02:02 +02:00
wmayer
70be035caf fix possible crashes in Tools::escapedUnicodeFromUtf8 2016-09-14 15:18:19 +02:00
Yorik van Havre
515f2efb1d Implemented python method ParameterGrpPy::GetContents() : lists all the parameters inside a group 2016-09-03 19:49:59 -03:00
wmayer
a3fe1f2e77 fx wrong cast 2016-09-03 14:58:03 +02:00
wmayer
fb892d35de fix Coverity issues 2016-09-03 14:51:28 +02:00
wmayer
cb9be09512 Coverity issues:
129643
129654
129689
129714
2016-08-16 14:05:52 +02:00
wmayer
af4ef2fa7f Coverity issues:
129202: replace dynamic_cast with static_cast
129421, 129422: fix Py_Return macro
128928: Unchecked return value
129488, 129490: uninitialized scalar variable
129567, 129661: uninitialized scalar field
129665: uninitialized pointer field
2016-08-15 21:28:41 +02:00
wmayer
4d77921111 use a stricter tolerance to check for equal points
add method IsEqual to Vector3 class to support user-defined tolerance
2016-08-15 14:09:26 +02:00
wmayer
af86618b9e adjust fix for BSD for time info from commit 2665a5d 2016-08-12 14:03:16 +02:00
wmayer
61b62ee314 add class QuantityFormat to control user string of Quantity
do some code refactoration to reduce duplicate code
2016-08-06 19:06:29 +02:00
wmayer
f8dc307820 fix bug in factor for Pa in units system 2016-08-05 13:57:27 +02:00
wmayer
1e6981b089 use the unicode symbol for mu 2016-08-05 10:38:33 +02:00
wmayer
787cfc660d use const reference in schemaTranslate to avoid tmp. copy 2016-08-05 10:33:41 +02:00
wmayer
1783528282 improve whitespaces, fix typos 2016-08-05 10:00:12 +02:00
wmayer
affdb168b7 whitespace improvements 2016-08-04 17:45:04 +02:00
vdwalts
a42fd4b1fb Base: Units: add units for thermomechanical analysis 2016-08-04 17:45:04 +02:00
wmayer
c294c8bdbd + rename methods in Vector3 class
+ add convenience methods Cross and Dot to Vector3 class
+ fix bug in DistanceToLineSegment in Vector3 class
2016-07-30 15:14:47 +02:00
wmayer
56f5b9c568 + extend InventorBuilder to add an SoPolygonOffset node 2016-07-30 14:20:00 +02:00
wmayer
bcd19ad75b support any sequence type in init method of Vector class 2016-07-27 09:23:20 +02:00
wmayer
66dffafe88 implement method to convert escaped unicode to utf-8 encoded string 2016-07-24 16:14:40 +02:00
WandererFan
de7b7e50ab Use Units Decimals pref in Quantity::getUserString 2016-07-21 12:55:39 -04:00
wmayer
959b7c9809 issue #0002625: Wrong dimension (str) from Unit 2016-07-17 13:14:06 +02:00
wmayer
b3c7d8b3b4 improve whitespaces 2016-07-17 12:46:46 +02:00
Yorik van Havre
cb92f2b3ec Temporary workaround for the fractions issue in new imperial unit schema (using + between inches and fractions) 2016-07-09 14:01:07 -03:00
Yorik van Havre
4efe02c3cc Draft: Fixed buggy units display in Draft widgets 2016-07-03 18:41:33 -03:00
wmayer
6bf04e358e + support of seek operation on PyStreambuf 2016-06-14 13:59:02 +02:00
wmayer
ca6a33b3b8 + enable buffered writing in PyStreambuf 2016-06-13 19:22:15 +02:00
wmayer
135e6cf9de + prepare PyStreambuf for buffered writing 2016-06-12 18:20:31 +02:00
wmayer
a72c3a31e0 + optimize PyStreambuf::underflow() and fix failure for large files/buffers 2016-06-12 14:50:02 +02:00
wmayer
e4e018fe94 + fix possible crash when throw file exception 2016-06-11 16:25:06 +02:00
wmayer
38d5aebf4f + fix bug in PyStreambuf when reading binary data 2016-06-11 15:38:51 +02:00
wmayer
2e40dbb56e + extend PyStreambuf to write data 2016-06-11 11:54:01 +02:00
Yorik van Havre
26d25807fb Fixed buggy Building-US units schema 2016-05-29 12:15:35 -03:00
Yorik van Havre
71dd688d56 Added new units schema: US building (feet + inches + fraction) 2016-05-26 20:37:53 -03:00
Yorik van Havre
c8f12e5abb Added new units schema: Building Euro (everything in centimeters, areas/volumes in meters) 2016-05-25 19:10:48 -03:00
Wolfgang E. Sanyer
4f264cff28 Bug fix for ID#0002453
Note that the version of Bison and Flex used to generate the two .c files are newer than
in the last commit from 2010. Also,for anyine working on tbis in the future, dont forget
to run flex and bison on the .l and .y files respectively.
2016-05-20 10:05:18 +02:00
wmayer
3feaef3d2e + unify method names 2016-05-18 23:43:58 +02:00
DeepSOIC
7d7cf5c723 Attacher: add general purpose editor UI (python)
Added as PartGui.AttachmentEditor, and Part_EditAttachment gui command
2016-05-18 23:05:51 +02:00