You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.6 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2016 Mario Luzeiro <mrluzeiro@ua.pt>
  5. * Copyright (C) 1992-2016 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. /**
  25. * @file 3d_enums.h
  26. * @brief declared enumerations and flags
  27. */
  28. #ifndef _3D_ENUMS_H_
  29. #define _3D_ENUMS_H_
  30. /// Flags used in rendering options
  31. enum DISPLAY3D_FLG {
  32. FL_AXIS=0, FL_ZONE,
  33. FL_ADHESIVE, FL_SILKSCREEN, FL_SOLDERMASK, FL_SOLDERPASTE,
  34. FL_COMMENTS, FL_ECO,
  35. FL_MODULE_ATTRIBUTES_NORMAL,
  36. FL_MODULE_ATTRIBUTES_NORMAL_INSERT,
  37. FL_MODULE_ATTRIBUTES_VIRTUAL,
  38. FL_SHOW_BOARD_BODY,
  39. FL_MOUSEWHEEL_PANNING,
  40. FL_USE_REALISTIC_MODE,
  41. // OpenGL options
  42. FL_RENDER_OPENGL_SHOW_MODEL_BBOX,
  43. FL_RENDER_OPENGL_COPPER_THICKNESS,
  44. // Raytracing options
  45. FL_RENDER_RAYTRACING_SHADOWS,
  46. FL_RENDER_RAYTRACING_BACKFLOOR,
  47. FL_RENDER_RAYTRACING_REFRACTIONS,
  48. FL_RENDER_RAYTRACING_REFLECTIONS,
  49. FL_RENDER_RAYTRACING_POST_PROCESSING,
  50. FL_RENDER_RAYTRACING_ANTI_ALIASING,
  51. FL_RENDER_RAYTRACING_PROCEDURAL_TEXTURES,
  52. FL_LAST
  53. };
  54. /// Camera types
  55. enum CAMERA_TYPE
  56. {
  57. CAMERA_TRACKBALL
  58. };
  59. /// Grid types
  60. enum GRID3D_TYPE
  61. {
  62. GRID3D_NONE,
  63. GRID3D_1MM,
  64. GRID3D_2P5MM,
  65. GRID3D_5MM,
  66. GRID3D_10MM
  67. };
  68. /// Render engine mode
  69. enum RENDER_ENGINE
  70. {
  71. RENDER_ENGINE_OPENGL_LEGACY,
  72. RENDER_ENGINE_RAYTRACING,
  73. };
  74. /// Render 3d model shape materials mode
  75. enum MATERIAL_MODE
  76. {
  77. MATERIAL_MODE_NORMAL, ///< Use all material properties from model file
  78. MATERIAL_MODE_DIFFUSE_ONLY, ///< Use only diffuse material properties
  79. MATERIAL_MODE_CAD_MODE ///< Use a gray shading based on diffuse material
  80. };
  81. #endif // _3D_ENUMS_H_