2016-07-19 17:35:25 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 Mario Luzeiro <mrluzeiro@ua.pt>
|
2020-04-17 21:33:23 +00:00
|
|
|
* Copyright (C) 1992-2020 KiCad Developers, see AUTHORS.txt for contributors.
|
2016-07-19 17:35:25 +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
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file 3d_enums.h
|
|
|
|
* @brief declared enumerations and flags
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _3D_ENUMS_H_
|
|
|
|
#define _3D_ENUMS_H_
|
|
|
|
|
|
|
|
/// Flags used in rendering options
|
2020-07-16 22:36:06 +00:00
|
|
|
enum DISPLAY3D_FLG
|
|
|
|
{
|
2020-01-29 16:00:05 +00:00
|
|
|
FL_AXIS = 0,
|
|
|
|
FL_ZONE,
|
|
|
|
FL_ADHESIVE,
|
|
|
|
FL_SILKSCREEN,
|
|
|
|
FL_SOLDERMASK,
|
|
|
|
FL_SOLDERPASTE,
|
|
|
|
FL_COMMENTS,
|
|
|
|
FL_ECO,
|
2016-07-19 17:35:25 +00:00
|
|
|
|
|
|
|
FL_MODULE_ATTRIBUTES_NORMAL,
|
|
|
|
FL_MODULE_ATTRIBUTES_NORMAL_INSERT,
|
|
|
|
FL_MODULE_ATTRIBUTES_VIRTUAL,
|
|
|
|
|
|
|
|
FL_SHOW_BOARD_BODY,
|
|
|
|
FL_MOUSEWHEEL_PANNING,
|
|
|
|
FL_USE_REALISTIC_MODE,
|
2020-01-29 16:00:05 +00:00
|
|
|
FL_SUBTRACT_MASK_FROM_SILK,
|
2020-07-16 22:36:06 +00:00
|
|
|
FL_CLIP_SILK_ON_VIA_ANNULUS,
|
2016-07-19 17:35:25 +00:00
|
|
|
|
|
|
|
// OpenGL options
|
|
|
|
FL_RENDER_OPENGL_SHOW_MODEL_BBOX,
|
|
|
|
FL_RENDER_OPENGL_COPPER_THICKNESS,
|
2020-04-17 21:33:23 +00:00
|
|
|
FL_RENDER_OPENGL_AA_DISABLE_ON_MOVE,
|
|
|
|
FL_RENDER_OPENGL_THICKNESS_DISABLE_ON_MOVE,
|
|
|
|
FL_RENDER_OPENGL_VIAS_DISABLE_ON_MOVE,
|
|
|
|
FL_RENDER_OPENGL_HOLES_DISABLE_ON_MOVE,
|
2016-07-19 17:35:25 +00:00
|
|
|
|
|
|
|
// Raytracing options
|
|
|
|
FL_RENDER_RAYTRACING_SHADOWS,
|
|
|
|
FL_RENDER_RAYTRACING_BACKFLOOR,
|
|
|
|
FL_RENDER_RAYTRACING_REFRACTIONS,
|
|
|
|
FL_RENDER_RAYTRACING_REFLECTIONS,
|
|
|
|
FL_RENDER_RAYTRACING_POST_PROCESSING,
|
|
|
|
FL_RENDER_RAYTRACING_ANTI_ALIASING,
|
2016-10-02 08:11:00 +00:00
|
|
|
FL_RENDER_RAYTRACING_PROCEDURAL_TEXTURES,
|
2016-07-19 17:35:25 +00:00
|
|
|
FL_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/// Camera types
|
2019-12-30 13:01:06 +00:00
|
|
|
enum class CAMERA_TYPE
|
2016-07-19 17:35:25 +00:00
|
|
|
{
|
2019-12-30 13:01:06 +00:00
|
|
|
TRACKBALL
|
2016-07-19 17:35:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/// Grid types
|
2019-12-30 13:01:06 +00:00
|
|
|
enum class GRID3D_TYPE
|
2016-07-19 17:35:25 +00:00
|
|
|
{
|
2019-12-30 13:01:06 +00:00
|
|
|
NONE,
|
|
|
|
GRID_1MM,
|
|
|
|
GRID_2P5MM,
|
|
|
|
GRID_5MM,
|
|
|
|
GRID_10MM
|
2016-07-19 17:35:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/// Render engine mode
|
2019-12-30 13:01:06 +00:00
|
|
|
enum class RENDER_ENGINE
|
2016-07-19 17:35:25 +00:00
|
|
|
{
|
2019-12-30 13:01:06 +00:00
|
|
|
OPENGL_LEGACY,
|
|
|
|
RAYTRACING,
|
2016-07-19 17:35:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/// Render 3d model shape materials mode
|
2019-12-30 13:01:06 +00:00
|
|
|
enum class MATERIAL_MODE
|
2016-07-19 17:35:25 +00:00
|
|
|
{
|
2019-12-30 13:01:06 +00:00
|
|
|
NORMAL, ///< Use all material properties from model file
|
|
|
|
DIFFUSE_ONLY, ///< Use only diffuse material properties
|
|
|
|
CAD_MODE ///< Use a gray shading based on diffuse material
|
2016-07-19 17:35:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _3D_ENUMS_H_
|