2018-12-10 10:56:28 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2023-02-18 17:49:42 +00:00
|
|
|
* Copyright (C) 2019-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
2018-12-10 10:56:28 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ADVANCED_CFG__H
|
|
|
|
#define ADVANCED_CFG__H
|
|
|
|
|
2023-09-26 01:32:26 +00:00
|
|
|
#include <kicommon.h>
|
|
|
|
|
2018-12-10 10:56:28 +00:00
|
|
|
class wxConfigBase;
|
|
|
|
|
|
|
|
/**
|
2023-02-18 17:49:42 +00:00
|
|
|
* @defgroup advanced_config Advanced Configuration Variables
|
|
|
|
*
|
2018-12-10 10:56:28 +00:00
|
|
|
* Class containing "advanced" configuration options.
|
|
|
|
*
|
|
|
|
* Options set here are for developer or advanced users only. If a general user
|
|
|
|
* needs to set one of these for normal KiCad use, either:
|
|
|
|
* * They are working around some bug that should be fixed, or
|
|
|
|
* * The parameter they are setting is of general interest and should be in the
|
|
|
|
* main application config, with UI provided.
|
|
|
|
*
|
|
|
|
* Options in this class are, in general, preferable to #defines, as they
|
|
|
|
* allow more flexible configuration by developers, and don't hide code from
|
|
|
|
* the compiler on other configurations, which can result in broken builds.
|
|
|
|
*
|
|
|
|
* Never use advanced configs in an untestable way. If a function depends on
|
|
|
|
* advanced config such that you cannot test it without changing the config,
|
|
|
|
* "lift" the config to a higher level and make pass it as parameter of the code
|
|
|
|
* under test. The tests can pass their own values as needed.
|
|
|
|
*
|
|
|
|
* This also applies to code that does not depend on "common" - it cannot
|
|
|
|
* use this class, so you must pass configuration in as proper parameters.
|
|
|
|
*
|
|
|
|
* Sometimes you can just use values directly, and sometimes helper functions
|
|
|
|
* might be provided to allow extra logic (for example when a advanced config
|
|
|
|
* applies only on certain platforms).
|
|
|
|
*
|
|
|
|
* For more information on what config keys set these parameters in the
|
|
|
|
* config files, and why you might want to set them, see #AC_KEYS
|
|
|
|
*
|
|
|
|
*/
|
2023-02-18 17:49:42 +00:00
|
|
|
|
2023-09-26 01:32:26 +00:00
|
|
|
class KICOMMON_API ADVANCED_CFG
|
2018-12-10 10:56:28 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
2020-11-16 11:16:44 +00:00
|
|
|
* Get the singleton instance's config, which is shared by all consumers.
|
2018-12-10 10:56:28 +00:00
|
|
|
*
|
2020-09-23 09:35:13 +00:00
|
|
|
* This configuration is read-only - to set options, users should add the parameters to
|
|
|
|
* their config files at ~/.config/kicad/advanced, or the platform equivalent.
|
2018-12-10 10:56:28 +00:00
|
|
|
*/
|
|
|
|
static const ADVANCED_CFG& GetCfg();
|
|
|
|
|
2023-02-18 17:49:42 +00:00
|
|
|
///@{
|
|
|
|
/// \ingroup advanced_config
|
|
|
|
|
2020-08-09 23:03:31 +00:00
|
|
|
/**
|
2020-09-23 09:35:13 +00:00
|
|
|
* Distance from an arc end point and the estimated end point, when rotating from the
|
|
|
|
* start point to the end point.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "DrawArcAccuracy"
|
|
|
|
* Valid values: 0 to 100000
|
|
|
|
* Default value: 10
|
2020-08-09 23:03:31 +00:00
|
|
|
*/
|
2020-11-16 11:16:44 +00:00
|
|
|
double m_DrawArcAccuracy;
|
2020-08-09 23:03:31 +00:00
|
|
|
|
|
|
|
/**
|
2020-11-16 11:16:44 +00:00
|
|
|
* When drawing an arc, the angle ( center - start ) - ( start - end ) can be limited to
|
|
|
|
* avoid extremely high radii.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "DrawArcCenterStartEndMaxAngle"
|
|
|
|
* Valid values: 0 to 100000
|
|
|
|
* Default value: 50
|
2020-08-09 23:03:31 +00:00
|
|
|
*/
|
2020-11-16 11:16:44 +00:00
|
|
|
double m_DrawArcCenterMaxAngle;
|
2020-08-09 23:03:31 +00:00
|
|
|
|
2021-03-31 20:13:08 +00:00
|
|
|
/**
|
|
|
|
* Maximum angle between the tangent line of an arc track and a connected straight track
|
|
|
|
* in order to commence arc dragging. Units are degrees.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "MaxTangentTrackAngleDeviation"
|
|
|
|
* Valid values: 0 to 90
|
|
|
|
* Default value: 1
|
2021-03-31 20:13:08 +00:00
|
|
|
*/
|
|
|
|
double m_MaxTangentAngleDeviation;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Maximum track length to keep after doing an arc track resizing operation. Units are mm.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "MaxTrackLengthToKeep"
|
|
|
|
* Valid values: 0 to 1
|
|
|
|
* Default value: 0.0005
|
2021-03-31 20:13:08 +00:00
|
|
|
*/
|
|
|
|
double m_MaxTrackLengthToKeep;
|
|
|
|
|
2020-07-26 14:20:24 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* When filling zones, we add an extra amount of clearance to each zone to ensure that
|
|
|
|
* rounding errors do not overrun minimum clearance distances.
|
|
|
|
*
|
|
|
|
* This is the extra clearance in mm.
|
|
|
|
*
|
|
|
|
* Setting name: "ExtraFillMargin"
|
|
|
|
* Valid values: 0 to 1
|
|
|
|
* Default value: 0.0005
|
2020-07-26 14:20:24 +00:00
|
|
|
*/
|
2020-09-08 19:18:50 +00:00
|
|
|
double m_ExtraClearance;
|
2020-07-26 14:20:24 +00:00
|
|
|
|
2020-09-02 22:15:30 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Epsilon for DRC tests.
|
|
|
|
*
|
|
|
|
* @note Fo zone tests this is essentially additive with #m_ExtraClearance. Units are mm.
|
|
|
|
*
|
|
|
|
* Setting name: "DRCEpsilon"
|
|
|
|
* Valid values: 0 to 1
|
|
|
|
* Default value: 0.0005
|
2020-09-02 22:15:30 +00:00
|
|
|
*/
|
|
|
|
double m_DRCEpsilon;
|
|
|
|
|
2021-08-11 13:01:30 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Sliver width tolerance for DRC.
|
|
|
|
*
|
|
|
|
* Units are mm.
|
|
|
|
*
|
|
|
|
* Setting name: "DRCSliverWidthTolerance"
|
|
|
|
* Valid values: 0.01 to 0.25
|
|
|
|
* Default value: 0.08
|
2021-08-11 13:01:30 +00:00
|
|
|
*/
|
|
|
|
double m_SliverWidthTolerance;
|
2023-12-18 13:32:41 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sliver length tolerance for DRC.
|
|
|
|
*
|
|
|
|
* Units are mm.
|
|
|
|
*
|
|
|
|
* Setting name: "DRCSliverMinimumLength"
|
|
|
|
* Valid values: 1e-9 to 10
|
|
|
|
* Default value: 0.0008
|
|
|
|
*/
|
2022-12-04 00:02:07 +00:00
|
|
|
double m_SliverMinimumLength;
|
2021-08-11 13:01:30 +00:00
|
|
|
|
2020-09-03 14:58:49 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Sliver angle to tolerance for DRC.
|
|
|
|
*
|
2020-09-08 19:18:50 +00:00
|
|
|
* Units are mm.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "DRCSliverAngleTolerance"
|
|
|
|
* Valid values: 1 to 90
|
|
|
|
* Default value: 20
|
|
|
|
*/
|
|
|
|
double m_SliverAngleTolerance;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dimension used to calculate the actual hole size from the finish hole size.
|
|
|
|
*
|
|
|
|
* @note IPC-6012 says 0.015-0.018mm; Cadence says at least 0.020mm for a Class 2 board and
|
|
|
|
* at least 0.025mm for Class 3. Units are mm.
|
|
|
|
*
|
|
|
|
* Setting name: "HoleWallPlatingThickness"
|
|
|
|
* Valid values: 1 to 90
|
|
|
|
* Default value: 0.02
|
2020-09-03 14:58:49 +00:00
|
|
|
*/
|
2020-09-08 19:18:50 +00:00
|
|
|
double m_HoleWallThickness;
|
2020-09-03 14:58:49 +00:00
|
|
|
|
2023-12-18 13:32:41 +00:00
|
|
|
|
2019-08-15 04:25:05 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Configure the coroutine stack size in bytes.
|
|
|
|
*
|
|
|
|
* @note This should be allocated in multiples of the system page size (n*4096 is generally
|
|
|
|
* safe)
|
|
|
|
*
|
|
|
|
* Setting name: "CoroutineStackSize"
|
|
|
|
* Valid values: 32 * 4096 to 4096 * 4096
|
|
|
|
* Default value: 256 * 4096
|
2019-08-15 04:25:05 +00:00
|
|
|
*/
|
2020-11-16 11:16:44 +00:00
|
|
|
int m_CoroutineStackSize;
|
2019-08-15 04:25:05 +00:00
|
|
|
|
2021-12-28 23:17:53 +00:00
|
|
|
/**
|
|
|
|
* The update interval the wxWidgets sends wxUpdateUIEvents to windows.
|
|
|
|
*
|
2023-12-18 13:32:41 +00:00
|
|
|
* Setting this to -1 will disable all automatic UI events. Any other
|
2021-12-28 23:17:53 +00:00
|
|
|
* value is the number of milliseconds between events.
|
|
|
|
*
|
|
|
|
* @see https://docs.wxwidgets.org/3.0/classwx_update_u_i_event.html#a24daac56f682b866baac592e761ccede.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "UpdateUIEventInterval"
|
|
|
|
* Valid values: -1 to 100000
|
|
|
|
* Default value: 0
|
2021-12-28 23:17:53 +00:00
|
|
|
*/
|
|
|
|
int m_UpdateUIEventInterval;
|
|
|
|
|
2020-07-03 23:33:36 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Show PNS router debug graphics while routing
|
|
|
|
*
|
|
|
|
* Setting name: "ShowRouterDebugGraphics"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2020-07-03 23:33:36 +00:00
|
|
|
*/
|
|
|
|
bool m_ShowRouterDebugGraphics;
|
|
|
|
|
2023-08-07 15:44:33 +00:00
|
|
|
/**
|
|
|
|
* Enable PNS router to dump state information for debug purpose (press `0` while routing)
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "EnableRouterDump"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2023-08-07 15:44:33 +00:00
|
|
|
*/
|
|
|
|
bool m_EnableRouterDump;
|
|
|
|
|
2023-06-20 13:15:56 +00:00
|
|
|
/**
|
|
|
|
* Slide the zoom steps over for debugging things "up close".
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "EnableRouterDump"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2023-06-20 13:15:56 +00:00
|
|
|
*/
|
|
|
|
bool m_HyperZoom;
|
|
|
|
|
2020-07-25 21:53:58 +00:00
|
|
|
/**
|
|
|
|
* Save files in compact display mode
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* When set to true, this will wrap polygon point sets at 4 points per line rather
|
|
|
|
* than a single point per line. Single point per line helps with version control systems.
|
|
|
|
*
|
|
|
|
* Setting name: "CompactSave"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2020-07-25 21:53:58 +00:00
|
|
|
*/
|
|
|
|
bool m_CompactSave;
|
|
|
|
|
2020-08-12 13:16:57 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Enable drawing the triangulation outlines with a visible color.
|
|
|
|
*
|
|
|
|
* @note This only affects the OpenGL GAL.
|
|
|
|
*
|
|
|
|
* Setting name: "StrokeTriangulation"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2020-08-12 13:16:57 +00:00
|
|
|
*/
|
|
|
|
bool m_DrawTriangulationOutlines;
|
2020-01-13 01:44:19 +00:00
|
|
|
|
2021-07-26 17:56:11 +00:00
|
|
|
/**
|
2023-02-18 17:49:42 +00:00
|
|
|
* When true, adds zone-display-modes for stroking the zone fracture boundaries and the zone
|
2021-07-26 17:56:11 +00:00
|
|
|
* triangulation.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "ExtraZoneDisplayModes"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2021-07-26 17:56:11 +00:00
|
|
|
*/
|
|
|
|
bool m_ExtraZoneDisplayModes;
|
|
|
|
|
2020-09-08 19:18:50 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Absolute minimum pen width for plotting.
|
|
|
|
*
|
|
|
|
* @note Some formats (PDF, for example) don't like ultra-thin lines. PDF seems happy
|
|
|
|
* enough with 0.0212mm which equates to 1px @ 1200dpi. Units are mm.
|
|
|
|
*
|
|
|
|
* Setting name: "MinPlotPenWidth"
|
|
|
|
* Valid values: 0 to 1
|
|
|
|
* Default value: 0.0212
|
2020-09-08 19:18:50 +00:00
|
|
|
*/
|
|
|
|
double m_MinPlotPenWidth;
|
|
|
|
|
2020-09-23 09:35:13 +00:00
|
|
|
/**
|
|
|
|
* A mode that dumps the various stages of a F_Cu fill into In1_Cu through In9_Cu.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "DebugZoneFiller"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2020-09-23 09:35:13 +00:00
|
|
|
*/
|
|
|
|
bool m_DebugZoneFiller;
|
|
|
|
|
2020-11-06 10:32:14 +00:00
|
|
|
/**
|
2020-11-16 11:16:44 +00:00
|
|
|
* A mode that writes PDFs without compression.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "DebugPDFWriter"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2020-11-06 10:32:14 +00:00
|
|
|
*/
|
|
|
|
bool m_DebugPDFWriter;
|
|
|
|
|
2021-01-04 22:26:23 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* The diameter of the drill marks on print and plot outputs (in mm) when the "Drill marks"
|
|
|
|
* option is set to "Small mark".
|
|
|
|
*
|
|
|
|
* Setting name: "SmallDrillMarkSize"
|
|
|
|
* Valid values: 0 to 3
|
|
|
|
* Default value: 0.35
|
2021-01-04 22:26:23 +00:00
|
|
|
*/
|
|
|
|
double m_SmallDrillMarkSize;
|
|
|
|
|
2021-02-20 18:41:42 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Enable the hotkeys dumper feature for generating documentation.
|
|
|
|
*
|
|
|
|
* Setting name: "HotkeysDumper"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2021-02-20 18:41:42 +00:00
|
|
|
*/
|
|
|
|
bool m_HotkeysDumper;
|
|
|
|
|
2021-02-24 22:14:39 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Draw GAL bounding boxes in painters.
|
|
|
|
*
|
|
|
|
* Setting name: "DrawBoundingBoxes"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2021-02-24 22:14:39 +00:00
|
|
|
*/
|
|
|
|
bool m_DrawBoundingBoxes;
|
|
|
|
|
2021-03-28 12:37:54 +00:00
|
|
|
/**
|
|
|
|
* Enable exporting board editor netlist to a file for troubleshooting purposes.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "ShowPcbnewExportNetlist"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2021-03-28 12:37:54 +00:00
|
|
|
*/
|
|
|
|
bool m_ShowPcbnewExportNetlist;
|
|
|
|
|
2021-07-11 03:59:54 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Skip reading/writing 3D model file caches.
|
|
|
|
*
|
|
|
|
* This does not prevent the models from being cached in memory meaning reopening the 3D
|
|
|
|
* viewer in the same project session will not reload model data from disk again.
|
|
|
|
*
|
|
|
|
* Setting name: "Skip3DModelFileCache"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2021-07-11 03:59:54 +00:00
|
|
|
*/
|
2021-07-11 04:35:38 +00:00
|
|
|
bool m_Skip3DModelFileCache;
|
2021-07-11 03:59:54 +00:00
|
|
|
|
2021-07-11 04:31:06 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Skip reading/writing 3D model memory caches.
|
|
|
|
&
|
|
|
|
* This ensures 3D models are always reloaded from disk even if we previously opened the 3D
|
2023-02-18 17:49:42 +00:00
|
|
|
* viewer.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "Skip3DModelMemoryCache"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2021-07-11 04:31:06 +00:00
|
|
|
*/
|
2021-07-11 04:35:38 +00:00
|
|
|
bool m_Skip3DModelMemoryCache;
|
2021-07-11 04:31:06 +00:00
|
|
|
|
2021-07-14 22:24:21 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Hide the build version from the KiCad manager frame title.
|
|
|
|
*
|
2021-07-14 22:24:21 +00:00
|
|
|
* Useful for making screenshots/videos of KiCad without pinning to a specific version.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "HideVersionFromTitle"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2021-07-14 22:24:21 +00:00
|
|
|
*/
|
|
|
|
bool m_HideVersionFromTitle;
|
|
|
|
|
2023-12-18 13:32:41 +00:00
|
|
|
/**
|
|
|
|
* Enable showing schematic repair output.
|
|
|
|
*
|
|
|
|
* Setting name: "ShowRepairSchematic"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
|
|
|
*/
|
2021-11-25 12:16:42 +00:00
|
|
|
bool m_ShowRepairSchematic;
|
|
|
|
|
2021-12-05 20:15:18 +00:00
|
|
|
/**
|
|
|
|
* Shows debugging event counters in various places.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "ShowEventCounters"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2021-12-05 20:15:18 +00:00
|
|
|
*/
|
|
|
|
bool m_ShowEventCounters;
|
|
|
|
|
2023-12-18 13:32:41 +00:00
|
|
|
/**
|
|
|
|
* Allow manual scaling of canvas.
|
|
|
|
*
|
|
|
|
* Setting name: "AllowManualCanvasScale"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
|
|
|
*/
|
2021-12-09 23:36:44 +00:00
|
|
|
bool m_AllowManualCanvasScale;
|
|
|
|
|
2022-05-15 08:38:46 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Set the bevel height of layer items in 3D viewer when ray tracing.
|
|
|
|
*
|
|
|
|
* Controls the start of curvature normal on the edge. The value is in micrometer. Good
|
|
|
|
* values should be around or less than the copper thickness.
|
|
|
|
*
|
|
|
|
* Setting name: "V3DRT_BevelHeight_um"
|
|
|
|
* Valid values: 0 to std::numeric_limits<int>::max()
|
|
|
|
* Default value: 30
|
2022-05-15 08:38:46 +00:00
|
|
|
*/
|
|
|
|
int m_3DRT_BevelHeight_um;
|
|
|
|
|
|
|
|
/**
|
2023-02-18 17:49:42 +00:00
|
|
|
* 3D-Viewer raytracing factor applied to Extent.z of the item layer.
|
|
|
|
*
|
2023-12-18 13:32:41 +00:00
|
|
|
* This is used for calculating the bevel's height.
|
|
|
|
*
|
|
|
|
* Setting name: "V3DRT_BevelHeight_um"
|
|
|
|
* Valid values: 0 to 100
|
|
|
|
* Default value: 1/16
|
2022-05-15 08:38:46 +00:00
|
|
|
*/
|
|
|
|
double m_3DRT_BevelExtentFactor;
|
|
|
|
|
2022-10-19 23:25:45 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Use Clipper2 instead of Clipper1.
|
|
|
|
*
|
|
|
|
* Setting name: "UseClipper2"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 1
|
2022-10-19 23:25:45 +00:00
|
|
|
*/
|
|
|
|
bool m_UseClipper2;
|
|
|
|
|
2023-04-07 17:08:43 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Use the 3DConnexion Driver.
|
|
|
|
*
|
|
|
|
* Setting name: "3DConnexionDriver"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 1
|
2023-04-07 17:08:43 +00:00
|
|
|
*/
|
|
|
|
bool m_Use3DConnexionDriver;
|
|
|
|
|
2023-04-08 15:22:34 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Use the new incremental netlister for realtime jobs.
|
|
|
|
*
|
|
|
|
* Setting name: "IncrementalConnectivity"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2023-04-08 15:22:34 +00:00
|
|
|
*/
|
|
|
|
bool m_IncrementalConnectivity;
|
|
|
|
|
2023-09-24 23:33:05 +00:00
|
|
|
/**
|
|
|
|
* The number of milliseconds to wait in a click before showing a disambiguation menu.
|
2023-12-18 13:32:41 +00:00
|
|
|
*
|
|
|
|
* Setting name: "DisambiguationTime"
|
|
|
|
* Valid values: 50 or 10000
|
|
|
|
* Default value: 300
|
2023-09-24 23:33:05 +00:00
|
|
|
*/
|
|
|
|
int m_DisambiguationMenuDelay;
|
|
|
|
|
2023-10-07 16:18:21 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Enable support for generators.
|
|
|
|
*
|
|
|
|
* Setting name: "EnableGenerators"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2023-10-07 16:18:21 +00:00
|
|
|
*/
|
|
|
|
bool m_EnableGenerators;
|
|
|
|
|
2023-09-14 21:39:42 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Enable git integration.
|
|
|
|
*
|
|
|
|
* Setting name: "EnableGit"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2023-09-14 21:39:42 +00:00
|
|
|
*/
|
|
|
|
bool m_EnableGit;
|
|
|
|
|
2023-11-23 13:29:07 +00:00
|
|
|
/**
|
2023-12-18 13:32:41 +00:00
|
|
|
* Enable Eeschema printing using Cairo.
|
|
|
|
*
|
|
|
|
* Setting name: "EnableEeschemaPrintCairo"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 0
|
2023-11-23 13:29:07 +00:00
|
|
|
*/
|
|
|
|
bool m_EnableEeschemaPrintCairo;
|
2023-06-12 18:12:39 +00:00
|
|
|
|
2023-12-17 21:43:35 +00:00
|
|
|
/**
|
|
|
|
* Board object selection visibility limit.
|
|
|
|
*
|
|
|
|
* This ratio is used to determine if an object in a selected object layer stack is
|
|
|
|
* visible. All alpha ratios less or equal to this value are considered invisible
|
|
|
|
* to the user and will be pruned from the list of selections. Valid values are
|
|
|
|
* between 0 and less than 1. A value of 1 disables this feature. Reasonable values
|
|
|
|
* are between 0.01 and 0.03 depending on the layer colors.
|
|
|
|
*
|
2023-12-18 13:32:41 +00:00
|
|
|
* Setting name: "PcbSelectionVisibilityRatio"
|
|
|
|
* Valid values: 0.0 to 1.0
|
|
|
|
* Default value: 1
|
2023-12-17 21:43:35 +00:00
|
|
|
*/
|
|
|
|
double m_PcbSelectionVisibilityRatio;
|
2024-01-12 02:26:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Length of the minimum segment for the outline decomposer. This is in IU, so
|
|
|
|
* it is nm in pcbnew and 100nm in eeschema.
|
|
|
|
*
|
|
|
|
* Setting name: "MinimumSegmentLength"
|
|
|
|
* Valid values: 10 to 1000
|
|
|
|
* Default value: 50
|
|
|
|
*/
|
|
|
|
int m_MinimumSegmentLength;
|
|
|
|
|
2024-02-29 19:04:39 +00:00
|
|
|
/**
|
|
|
|
* OCE (STEP/IGES) 3D Plugin Tesselation Linear Deflection
|
|
|
|
*
|
|
|
|
* Linear deflection determines the maximum distance between the original geometry
|
|
|
|
* and the tessellated representation, measured in millimeters (mm), influencing
|
|
|
|
* the precision of flat surfaces.
|
|
|
|
*
|
|
|
|
* Setting name: "OcePluginLinearDeflection"
|
|
|
|
* Valid values: 0.01 to 1.0
|
|
|
|
* Default value: 0.14
|
|
|
|
*/
|
|
|
|
double m_OcePluginLinearDeflection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* OCE (STEP/IGES) 3D Plugin Tesselation Angular Deflection
|
|
|
|
*
|
|
|
|
* Angular deflection specifies the maximum deviation angle (in degrees) between
|
|
|
|
* the normals of adjacent facets in the tessellated model. Lower values result
|
|
|
|
* in smoother curved surfaces by creating more facets to closely approximate
|
|
|
|
* the curve.
|
|
|
|
*
|
|
|
|
* Setting name: "OcePluginAngularDeflection"
|
|
|
|
* Valid values: 0.1 to 180
|
|
|
|
* Default value: 30
|
|
|
|
*/
|
|
|
|
double m_OcePluginAngularDeflection;
|
|
|
|
|
2024-03-20 22:47:44 +00:00
|
|
|
/**
|
|
|
|
* The number of internal units that will be allowed to deflect from the base
|
|
|
|
* segment when creating a new segment.
|
|
|
|
*
|
|
|
|
* Setting name: "TriangulateSimplificationLevel"
|
|
|
|
* Valid values: 0 to 1000
|
|
|
|
* Default value: 50
|
|
|
|
*/
|
|
|
|
int m_TriangulateSimplificationLevel;
|
|
|
|
|
2024-03-21 01:00:42 +00:00
|
|
|
/**
|
|
|
|
* The minimum area of a polygon that can be left over after triangulation and
|
|
|
|
* still consider the triangulation successful. This is internal units, so
|
|
|
|
* it is square nm in pcbnew.
|
|
|
|
*
|
|
|
|
* Setting name: "TriangulateMinimumArea"
|
|
|
|
* Valid values: 0 to 100000
|
|
|
|
* Default value: 1000
|
|
|
|
*/
|
|
|
|
int m_TriangulateMinimumArea;
|
|
|
|
|
2024-03-25 23:50:26 +00:00
|
|
|
/**
|
|
|
|
* Enable the use of a cache-friendlier and therefore faster version of the
|
|
|
|
* polygon fracture algorithm.
|
|
|
|
*
|
|
|
|
* Setting name: "EnableCacheFriendlyFracture"
|
|
|
|
* Valid values: 0 or 1
|
|
|
|
* Default value: 1
|
|
|
|
*/
|
|
|
|
bool m_EnableCacheFriendlyFracture;
|
|
|
|
|
|
|
|
///@}
|
2023-02-18 17:49:42 +00:00
|
|
|
|
2022-10-19 23:25:45 +00:00
|
|
|
|
2018-12-10 10:56:28 +00:00
|
|
|
private:
|
|
|
|
ADVANCED_CFG();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load the config from the normal config file
|
|
|
|
*/
|
|
|
|
void loadFromConfigFile();
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Load config from the given config base
|
|
|
|
*/
|
|
|
|
void loadSettings( wxConfigBase& aCfg );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ADVANCED_CFG__H
|