Benjamin Nauck
6f535f19fb
Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
...
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
wmayer
6f5259af26
App: Apply clang format (part 1)
2024-11-21 07:54:24 +01:00
wmayer
3c1bf8e864
Core: Extend Color API
...
* Fix issues with alpha value <> transparency
* Use type traits to convert between different color classes (fixes #14515 )
2024-11-15 12:25:25 -05:00
berniev
b6cae3bfdf
App: Modernise ctors dtors defs etc
2022-08-01 00:34:46 +02:00
berniev
85170b2879
remove redundant void
2022-07-31 10:27:44 +02:00
wmayer
1a20b7f119
App: modernize C++11
...
* use nullptr
2022-03-23 17:29:23 +01:00
Uwe
d64c091385
[App] Origin and Part: remove unused includes
2022-02-28 13:15:23 +01:00
howetuft
8e87eca83c
Set App::Part Material property type to App::PropertyLink
...
App::Part Material property type is currently App::PropertyMap, but to
be consistent with other domains using materials (like Arch, especially), it
should rather be App::PropertyLink, in order to link to a Material
card.
2022-01-25 23:20:46 +01:00
Zheng, Lei
6b527baf6a
App: fix Part::getPartOfObject()
...
Exclude link broght in by expressions
2021-01-12 09:45:59 +08:00
luz paz
84553bf191
App: Fix header uniformity, trailing whitespace, and doxygen headers
2020-11-19 13:38:37 +01:00
luz.paz
019f73852c
src/App: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all `src/App` files
2019-12-25 11:38:43 +01:00
wmayer
04372041e1
leave license field and url of a Part container empty to avoid possible confusion with imported 3rd-party STEP/IGES models
2018-10-29 15:24:12 +01:00
luzpaz
c4dd42de98
Typos: Various workbenches and misc.
...
[skip ci]
2017-12-25 10:58:10 +01:00
Stefan Tröger
fd62ef30f3
Unify and fix group handling in geofeaturegroups
2017-06-19 15:37:09 +02:00
Kunda
31b0233393
source typo fixes pt6
2017-03-07 13:43:46 -03:00
Stefan Tröger
a025a20bed
Extensions: GeoFeatureGroup only for GeoFeature
2017-01-04 16:01:58 +01: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
552fe52774
Extensions: Show up in the python interface
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
Alexander Golubev
a3e3c78388
App/Part: add getPartOfObject() to search a part for object
2016-04-12 18:12:18 +02:00
Alexander Golubev
d72a919384
OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup
2016-04-12 18:12:18 +02:00
Alexander Golubev
305151be34
App/Origin: big refactoring
...
- Rebase App::Origin on App::DocumentObject
- Keep all control over the Origin structure inside the Origin and it's
ViewProvider
- Add OriginFeature class as common base for App::Plane and App::Line
- Rebase App::Plane and App::Line on top of newly created class and
move to the file.
- Change Origin's ViewProvider API associated with temporary display
- Lots of associated changes to files
- Several minor fixes
- Lots of new bugs
2016-04-12 18:12:18 +02:00
Alexander Golubev
ade1dec103
Revert "part deletion handling"
...
This reverts commit 6ab2002021ac1df26ebe77f488f5cd94e1df0b26.
2016-04-12 18:12:17 +02:00
Alexander Golubev
e26c6174ac
App/GeoFeatureGroup: derive from DocumentObjectGroup
...
Refactor GeoFeatureGroup and derive it from DocumentObjectGroup rather
than GeoFeatureObject to unify code of those two classes.
2016-04-12 18:12:17 +02:00
Stefan Tröger
1ebe3e729c
part deletion handling
...
-remove everxthing that belongs to a part on deletion
-disallow to delete the origin by the user and only remove it when Part is being deleted
2016-04-12 18:12:13 +02:00
Stefan Tröger
b401f07bdf
add base lines
2016-04-12 18:12:05 +02:00
blobfish
47d68e0dd7
App: Part: rename base planes.
2016-04-12 18:12:03 +02:00
jriegel
c88a8336dc
Several enhancements
...
+ PLMXML Reader
+ Some meta information sorting
+ Making ProductRefs invisibly in Tree
2016-04-12 18:12:03 +02:00
jriegel
0307a73c04
some fixes
2016-04-12 18:12:02 +02:00
jriegel
d87d0e8376
Assembly: Rename to setActiveBody and make link indeipendant Part initialization
2016-04-12 18:12:02 +02:00
jriegel
4fb12b7dcd
Assembly: Add GeoFeatureGroup and helpers
2016-04-12 18:12:02 +02:00
jriegel
80ca84a2eb
add Python objects for Part and GeoFeature
2016-04-12 18:12:02 +02:00
jriegel
29efef2175
Add path and view provider for Part
2016-04-12 18:12:02 +02:00
jriegel
354e7dfa87
Start of rework of class structure
2016-04-12 18:12:01 +02:00