KiCad PCB EDA Suite
3d_enums.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) 2016 Mario Luzeiro <[email protected]>
5 * Copyright (C) 1992-2020 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
30#ifndef _3D_ENUMS_H_
31#define _3D_ENUMS_H_
32
34enum class ROTATION_DIR
35{
36 X_CW,
37 X_CCW,
38 Y_CW,
39 Y_CCW,
40 Z_CW,
41 Z_CCW
42};
43
45enum class CAMERA_TYPE
46{
48};
49
50// Do not modify the following enum numbers, they are saved in the config file and used in the UI
51
53enum class GRID3D_TYPE
54{
55 NONE = 0,
56 GRID_1MM = 1,
57 GRID_2P5MM = 2,
58 GRID_5MM = 3,
59 GRID_10MM = 4
60};
61
63enum class RENDER_ENGINE
64{
65 OPENGL = 0,
66 RAYTRACING = 1,
67};
68
70enum class MATERIAL_MODE
71{
72 NORMAL = 0,
73 DIFFUSE_ONLY = 1,
74 CAD_MODE = 2
75};
76
77#endif // _3D_ENUMS_H_
CAMERA_TYPE
Camera types.
Definition: 3d_enums.h:46
ROTATION_DIR
Rotation direction for the 3d canvas.
Definition: 3d_enums.h:35
GRID3D_TYPE
Grid types.
Definition: 3d_enums.h:54
MATERIAL_MODE
Render 3d model shape materials mode.
Definition: 3d_enums.h:71
@ NORMAL
Use all material properties from model file.
@ CAD_MODE
Use a gray shading based on diffuse material.
@ DIFFUSE_ONLY
Use only diffuse material properties.
RENDER_ENGINE
Render engine mode.
Definition: 3d_enums.h:64