KiCad PCB EDA Suite
eda_3d_viewer_settings.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2020 Jon Evans <[email protected]>
5 * Copyright (C) 2020-2022 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef EDA_3D_VIEWER_SETTINGS_H_
22#define EDA_3D_VIEWER_SETTINGS_H_
23
24#include <3d_enums.h>
28#include <settings/parameters.h>
29#include "render_settings.h"
30
32{
33public:
35 {
40
50
58
62
66
69
73 std::vector<KIGFX::COLOR4D> raytrace_lightColor;
74 std::vector<int> raytrace_lightElevation; // -90 .. 90
75 std::vector<int> raytrace_lightAzimuth; // 0 .. 359
76
94 };
95
97 {
102 };
103
105
107
108 virtual bool MigrateFromLegacy( wxConfigBase* aLegacyConfig ) override;
109
112
113protected:
114 virtual std::string getLegacyFrameName() const override { return "Viewer3DFrameName"; }
115
116private:
117 bool migrateSchema0to1();
118};
119
120
121#endif
declared enumerations and flags
GRID3D_TYPE
Grid types.
Definition: 3d_enums.h:54
MATERIAL_MODE
Render 3d model shape materials mode.
Definition: 3d_enums.h:71
RENDER_ENGINE
Render engine mode.
Definition: 3d_enums.h:64
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
Definition: app_settings.h:110
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
virtual std::string getLegacyFrameName() const override
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:104
Declaration of the cogl_att_list class.
ANTIALIASING_MODE
Anti-aliasing options.
Definition: ogl_attr_list.h:35
std::vector< KIGFX::COLOR4D > raytrace_lightColor