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.

66 lines
2.6 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
  5. * Copyright The 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. #ifndef PCB_DISPLAY_OPTIONS_H_
  25. #define PCB_DISPLAY_OPTIONS_H_
  26. #include <project/board_project_settings.h>
  27. class PCB_DISPLAY_OPTIONS
  28. {
  29. public:
  30. PCB_DISPLAY_OPTIONS()
  31. {
  32. m_ZoneDisplayMode = ZONE_DISPLAY_MODE::SHOW_FILLED;
  33. m_ContrastModeDisplay = HIGH_CONTRAST_MODE::NORMAL;
  34. m_NetColorMode = NET_COLOR_MODE::RATSNEST;
  35. m_TrackOpacity = 1.0;
  36. m_ViaOpacity = 1.0;
  37. m_PadOpacity = 1.0;
  38. m_ZoneOpacity = 1.0;
  39. m_ImageOpacity = 1.0;
  40. m_FilledShapeOpacity = 1.0;
  41. }
  42. /// @see ZONE_DISPLAY_MODE - stored in the project
  43. ZONE_DISPLAY_MODE m_ZoneDisplayMode;
  44. /// How inactive layers are displayed. @see HIGH_CONTRAST_MODE - stored in the project
  45. HIGH_CONTRAST_MODE m_ContrastModeDisplay;
  46. /// How to use color overrides on specific nets and netclasses
  47. NET_COLOR_MODE m_NetColorMode;
  48. // These opacity overrides multiply with any opacity in the base layer color
  49. double m_TrackOpacity; ///< Opacity override for all tracks
  50. double m_ViaOpacity; ///< Opacity override for all types of via
  51. double m_PadOpacity; ///< Opacity override for SMD pads and PTHs
  52. double m_ZoneOpacity; ///< Opacity override for filled zone areas
  53. double m_ImageOpacity; ///< Opacity override for user images
  54. double m_FilledShapeOpacity; ///< Opacity override for graphic shapes
  55. };
  56. #endif // PCBSTRUCT_H_