Jeff Young
73a2984963
Fixes for rotated footprint text.
4 years ago
Jeff Young
e811a39881
Readability.
4 years ago
Jeff Young
236feeb592
Cleanup GRText APIs, 3D Viewer <-> board APIs, and Plotter APIs.
Also fixes a bug where outline fonts weren't being handled for footprint
text in 3D Viewer, and a copy/paste error in stroke font handling for
both PCB and footprint text in 3D Viewer.
Fixes https://gitlab.com/kicad/code/kicad/issues/10319
4 years ago
Jeff Young
7d032f9c2f
Outline font rendering for Cairo, plotter, printer and 3D viewer.
Fixes https://gitlab.com/kicad/code/kicad/issues/10319
4 years ago
Jeff Young
aef2a3fca4
Default font for eeschema.
4 years ago
jean-pierre charras
0f0a540a65
Panel 3D previewer: for show 3D body shapes, regardless the 3D viewer itself.
the Panel 3D previewer is made to show 3D body shapes, so do not show them
when disabled in the board 3D viewer, is really stupid.
4 years ago
Marek Roszko
e4dbfcd92d
Swap out some wxSize for VECTOR2I
4 years ago
Simon Richter
d25fe17b28
Bump minimum required CMake version to 3.11
Signed-off-by: Marek Roszko <mark.roszko@gmail.com>
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
4 years ago
Ian McInerney
9e6446a8dc
Use enums for 3d Viewer settings instead of ints
4 years ago
Jon Evans
595caf30a2
3D viewer: Disable copper thickness in OpenGL mode
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10153
(cherry picked from commit 517e44e917 )
4 years ago
Marek Roszko
2d1357dc54
Swap some of the 3d viewer to VECTOR2I
4 years ago
Jeff Young
ccb94fd1a7
APIs for passing KIFONT::FONT pointers around.
Also some clean-up and bug fixes.
4 years ago
jean-pierre charras
49cb9586bd
PANEL_PREVIEW_3D_MODEL: fix incorrect values of offset for unit inch and mil.
Fixes #10104
https://gitlab.com/kicad/code/kicad/issues/10104
4 years ago
Mikolaj Wielgus
e9c29a4c1f
3D Viewer: Only highlight what is under the cursor
Fixes https://gitlab.com/kicad/code/kicad/issues/10136
4 years ago
Jeff Young
fa908e1f98
Dimensions for footprints.
Fixes https://gitlab.com/kicad/code/kicad/issues/8441
4 years ago
Jeff Young
b84a85f648
Cleanup dead code and stale TODOs.
4 years ago
Jeff Young
dabc75bee8
Source 3D dimensions from board stackup.
Also includes a performance improvemnt by caching the 3D model matrices.
4 years ago
Jeff Young
a6dd1bf09b
Implement Reset to Defaults for all preferences panels.
4 years ago
Jeff Young
68d2630d08
Flatten a layer of indirection out of 3D config settings.
4 years ago
Jeff Young
d28714167c
All the preferences, all the time.
Fixes https://gitlab.com/kicad/code/kicad/issues/7877
Fixes https://gitlab.com/kicad/code/kicad/issues/5153
4 years ago
Jeff Young
ef10b36948
Add mask-to-copper clearance parameter and rename mask margin.
4 years ago
Jeff Young
815c2c69e7
Support for dielectric colors in board stackup.
Fixes https://gitlab.com/kicad/code/kicad/issues/8491
4 years ago
Jeff Young
28b279cb2d
Units cleanup.
It's 2021. Time to move beyond ASCII. This also makes spacing of
units consistent (space before abbreviated units, no space before
symbolic units).
4 years ago
Jeff Young
92e589b398
Use board maxError value, and return SH_ARC for unfilled circle.
4 years ago
Jeff Young
4b6bf3095a
Radial dimensions.
ADDED radial type dimensions.
Fixes https://gitlab.com/kicad/code/kicad/issues/2056
4 years ago
jean-pierre charras
55777fca43
3D viewer: fix a minor cosmetic issue.
Fixes #10002
https://gitlab.com/kicad/code/kicad/issues/10002
4 years ago
Seth Hillbrand
e5d6ec836f
Remove incorrect leftover comment
4 years ago
Seth Hillbrand
78ff9a857a
Jerry-rig HTML-format alpha parsing
On wx3.0, the HTML format #RRGGBBAA cannot handle the alpha channel.
Instead, we route this through a COLOR4D routine when we need to use
these colors
Fixes https://gitlab.com/kicad/code/kicad/issues/9963
4 years ago
Mario Luzeiro
f81539cd41
3D-Viewer: do not change the z component of the normal on silkscreen material
Fixes https://gitlab.com/kicad/code/kicad/issues/9823
4 years ago
Seth Hillbrand
4814614d6d
Prevent OpenGL from re-using buffer vals
Skip GAL buffer numbers (presumed) when allocating 3d viewer buffers
Fixes https://gitlab.com/kicad/code/kicad/issues/8915
4 years ago
Mikolaj Wielgus
c3b792592b
Remove uncommented dead code in 3D viewer
4 years ago
david-beinder
fd6a75b779
Do not call TransformToPoly for negative sized PADs
4 years ago
Roberto Fernandez Bautista
7fd669b6a8
Use green soldermask and white silkcreen when unspecified
Also - unspecify colour of soldermask by default
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9538
4 years ago
Seth Hillbrand
ccd3a1e6a9
3d-viewer: Don't special-case Paste
Paste layers should be clipped in Realistic mode. Verifying that paste
doesn't extend beyond the board area should be left to DRC, or
non-realistic mode if you need a 3d view of it.
Fixes https://gitlab.com/kicad/code/kicad/issues/9460
4 years ago
Mikolaj Wielgus
cf3a979711
3D Viewer: Fix zoom limit calculations
Fixes https://gitlab.com/kicad/code/kicad/issues/9407
Fixes https://gitlab.com/kicad/code/kicad/issues/8805
4 years ago
Mikolaj Wielgus
363214d252
Fix incorrect behavior of BBOX_3D::GetMaxDimension()
4 years ago
Mikolaj Wielgus
afccea34a5
Remove default zoom level from camera constructor
Initial distance should be sufficient to determine default zoom.
4 years ago
Jeff Young
1860893d63
Use "Realtime" in the GUI for the non-raytracing renderer.
4 years ago
Jeff Young
6c0110ecd3
Naming conventions.
There's nothing "legacy" about the OpenGL 3D renderer.
4 years ago
Jeff Young
0fd762dc25
Make 3D dialogs easier to find.
4 years ago
Jeff Young
716d75ea0e
Minor improvements to 3D preferences pages.
1) Move silkscreen options under the Board Layers section
2) Use more consistent terminology
3) Fix capitalization of controls
4 years ago
Jeff Young
9b9e379aa0
Overhaul arc internal model to not over-specify information.
4 years ago
Jeff Young
a41944020d
Push most of PCB_SHAPE impl down in to EDA_SHAPE.
4 years ago
Jeff Young
7e8f2cdb94
Simplify highlighting logic.
Fixes https://gitlab.com/kicad/code/kicad/issues/8410
4 years ago
Ian McInerney
961c127ebe
Convert mouse coordinates to native pixesl in the 3D viewer
All operations in the camera are done using the native pixel sizes,
so we need to ensure the mouse coordinates are converted to native
pixels to make the mouse operations line up with the view.
Fixes https://gitlab.com/kicad/code/kicad/issues/2561
Fixes https://gitlab.com/kicad/code/kicad/issues/8410
4 years ago
Seth Hillbrand
548e5f49bd
Clean up unused variable usage
Unused variables in function calls can be commented out. Unused
return variables get a new routine `ignore_unused()` that silences the
warnings with zero overhead.
4 years ago
Mikolaj Wielgus
996835826e
Do not change FOV when zooming in/out, only move the camera
It's odd to both move the camera and change FOV when one wishes to
enlarge or smallen the models. Let's only move the camera.
4 years ago
Mikolaj Wielgus
e8a7e4cbed
Change 3D model preview projection toggle tooltip
Isometric projection is a special case of orthographic projection, the
projection where all projection lines are orthogonal to the projection
plane.
4 years ago
Jeff Young
b84d1456d5
KIFACE_I -> KIFACE_BASE.
4 years ago