Kacper Donat
a72a63232a
Base: Move App::Color to Base
...
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
Benjamin Bræstrup Sayoc
79fdfb2cad
Remove magic number and hard type enums in CenterLine.h
...
- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
2025-02-17 12:16:49 -05:00
WandererFan
b71c2a3278
[TD]Cosmetic function overhaul ( #14216 )
...
* [TD]Cosmetic geometry and tools update
- all cosmetics to store geometry in same form
- all cosmetics to survive scaling and rotation
- extension functions to survive scaling and rotation
* [TD]overhaul leader point storage and editing
- add py routine makeLeader(points)
* [TD]add leader conversion utility
* [TD]Set Leader RotateWithView default to true
* [TD]fix intersection vertex position
* [TD]add CosmeticEdge::makeLineFromCanonicalPoints
* [TD]fix 2 Extension tools
- positioning in DrawCosmeticCircle
- mishandling of points in execLineParallelPerpendicular
* [TD]Remove duplicate constexpr
* [TD]fix 2x Cosmetic arc tools
* [TD]refactor LineFormat out of Cosmetic
* [TD]move cosmetic appearance settings to LineFormat
* [TD]remove 2 unused methods
* [TD]apply format to blue line & circle tools
* [TD]fix ballon arrowhead does not rotate with view
* [TD]fix CosmeticCircle3Points
* [TD]allow multiple cosmetic object deletions
* [TD]fix extend/shorten centerline
2024-05-23 09:41:42 -04:00
wmayer
85d3d9eec0
TD: Fix memory leaks with PySequence_GetItem
2024-05-09 00:03:01 +02:00
wandererfan
5ed00d52dc
[TD]Expose getVisibleVertexes/getHiddenVertexes to Python
2024-04-18 08:35:31 -04:00
wandererfan
33a3c84d92
[TD]implement BrokenView
2024-04-06 15:25:23 -04:00
wandererfan
e6517089df
[TD]fix location of CV on rotated views
2023-12-24 12:27:25 -05:00
wandererfan
0b191c477b
[TD]initial implementation of cosmetic cicle command
2023-09-20 13:42:11 -04:00
wandererfan
3e164a5700
[TD]split GeometryObject
2023-08-18 15:18:42 -04:00
Benjamin Bræstrup Sayoc
a207822ee8
[TechDraw] Move CenterLine into own file
2023-04-06 13:51:35 -04:00
wandererfan
01641433c1
[TD]getters and setters for geometry
...
- make attributes private (or protected) and use
getters and setters instead of accessing attributes
directly.
2023-02-28 08:15:06 -05:00
marioalexis
5fe254e6f1
TechDraw: Improve code in Python DrawViewPartPy class
2022-10-29 09:01:52 -04:00
wandererfan
16c52bb18c
[TD]expose DVP projectPoint to Python
2022-10-19 20:00:27 -04:00
Uwe
5dc30b159c
[TD] DrawView*: remove unused includes - part 2
...
- also sort includes
- also additions to precompiled header
2022-10-08 02:10:26 +02:00
wandererfan
acf17905ed
[TD]CI clang warnings
2022-09-05 17:48:38 -04:00
berniev
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
Benjamin Bræstrup Sayoc
8719b71e39
[TechDraw] Remove deprecated replaceCenterLine
2022-08-02 16:09:54 -04:00
Benjamin Bræstrup Sayoc
0bb56ad93f
[TechDraw] Remove deprecated replaceCosmeticEdge
2022-08-02 16:09:54 -04:00
Benjamin Bræstrup Sayoc
127af5bea4
[TechDraw] Remove deprecated replaceCosmeticVertex
2022-08-02 16:09:54 -04:00
Uwe
7ab531c51a
[TD] last part of removal of superfluous nullptr checks
2022-07-20 12:17:16 +02:00
Uwe
40d8ebb372
[TD] remove some more superfluous nullptr checks
2022-07-20 11:54:28 +02:00
Uwe
93796e2d92
[TD] App: remove some superfluous nullptr checks
2022-07-19 02:03:50 +02:00
wmayer
a99be14233
TD: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Wanderer Fan
e91cc8e329
[TD] avoid memory leaks by using shared_ptr
...
TD geometry objects are sometimes double deleted. This
change uses shared_ptr instead of raw pointers to manage
deletions.
2022-01-07 13:34:20 -05:00
wmayer
c11d5df80a
TD: replace usage of raw pointers of Vertex and Face with shared pointers.
...
This fixes issue 4741: Broken File After Using Landmark Dimension in TechDraw
2021-12-10 14:25:24 +01:00
luz paz
1d60dbdc85
[TD] remove Py2 code from TD
2021-04-22 13:08:56 +02:00
wmayer
aec9d5f07a
Py: fix memory leaks by incorrect use of PyList_Append
2020-12-13 16:30:04 +01:00
luz paz
a3cb87b117
TechDraw: Header uniformity and whitespace fixes
2020-11-14 16:59:51 +01:00
wandererfan
1cad17c5f5
[TD]draw line through 2 points
2020-08-19 09:02:25 -04:00
wandererfan
64200d8287
[TD]add py getEdgeBySelection
2020-08-06 10:21:13 -04:00
wmayer
4a494fec69
Coverity: Dereference null return value
2020-07-20 17:34:26 +02:00
wandererfan
0ab224b46e
[TD]makeCosmeticLine Y inversion
2020-07-12 09:04:59 -04:00
WandererFan
4183594039
[TD]CosmeticEdge setters and getters
2020-06-09 18:40:59 -04:00
wandererfan
add17980b3
[TD]Eliminate replace fcns for Cosmetic objs
2020-05-16 07:42:45 -04:00
wandererfan
1533ea01ba
[TD]Simplify Cosmetic List & PyObject handling
2020-05-16 07:42:45 -04:00
wandererfan
f2f7d22b8e
[TD]Coordinate inversion for CosmeticVertex
2020-04-28 09:11:28 -04:00
wandererfan
a04d0f2574
[TD]Py routines for CenterLines
2019-12-16 20:36:10 -05:00
wandererfan
1ad2d35bce
[TD]Python routines and extension for line formating
2019-12-16 20:36:10 -05:00
wandererfan
08f23b84f7
[TD]Python routines and extension for Cosmetic Edges
2019-12-16 20:36:10 -05:00
wandererfan
d9e0c2e452
[TD]Python routines & extension for CosmeticVertex
2019-12-16 20:36:10 -05:00
wandererfan
0c99d32dd4
[TD]Add getEdges Py functions
2019-11-12 07:08:50 -05:00
wandererfan
900a7c6bdd
[TD]use UUID for CosmeticEdges instead of indices
2019-11-06 20:31:02 -05:00
wandererfan
a107bcd40d
[TD]Expose drawing edge and vertex to Python
2019-09-08 07:13:23 -04:00
wandererfan
3aa6fa19c6
[TD]Py functions for CenterLines and formatting
2019-07-19 20:17:20 -04:00
wandererfan
621b66be17
[TD]Add Properties for Cosmetic persistence
2019-07-15 12:36:48 -04:00
wandererfan
3d2edd0f7e
[TD]Add line appearance editor
2019-07-15 12:36:48 -04:00
wandererfan
11d8aaed61
[TD]Add CenterLine edit function
2019-07-15 12:36:48 -04:00
wandererfan
5970e91ef2
[TD]Py Cosmetic Vertex, Line, Circle Arc
2019-07-15 12:36:48 -04:00
wandererfan
59e47de506
Initial version addCosmeticVertex
2019-05-24 19:38:02 -04:00
WandererFan
19968205d2
Include file cleanup per cppclean analysis
2016-07-14 14:39:06 +02:00