GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 0 / 1
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

src/model/RenderingColor_Impl.hpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #ifndef MODEL_RENDERINGCOLOR_IMPL_HPP
7 #define MODEL_RENDERINGCOLOR_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ResourceObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class RenderingColor;
16
17 namespace detail {
18
19 /** RenderingColor_Impl is a ResourceObject_Impl that is the implementation class for RenderingColor.*/
20 class MODEL_API RenderingColor_Impl : public ResourceObject_Impl
21 {
22
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 RenderingColor_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 RenderingColor_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 RenderingColor_Impl(const RenderingColor_Impl& other, Model_Impl* model, bool keepHandle);
32
33 8774 virtual ~RenderingColor_Impl() override = default;
34
35 //@}
36 virtual const std::vector<std::string>& outputVariableNames() const override;
37
38 virtual IddObjectType iddObjectType() const override;
39
40 /** @name Getters */
41 //@{
42
43 int renderingRedValue() const;
44
45 int renderingGreenValue() const;
46
47 int renderingBlueValue() const;
48
49 int renderingAlphaValue() const;
50
51 bool isRenderingAlphaValueDefaulted() const;
52
53 //@}
54 /** @name Setters */
55 //@{
56
57 bool setRenderingRedValue(int renderingRedValue);
58 bool setRenderingRedValue(int renderingRedValue, bool driverMethod);
59
60 bool setRenderingGreenValue(int renderingGreenValue);
61 bool setRenderingGreenValue(int renderingGreenValue, bool driverMethod);
62
63 bool setRenderingBlueValue(int renderingBlueValue);
64 bool setRenderingBlueValue(int renderingBlueValue, bool driverMethod);
65
66 bool setRenderingAlphaValue(int renderingAlphaValue);
67 bool setRenderingAlphaValue(int renderingAlphaValue, bool driverMethod);
68
69 void resetRenderingAlphaValue();
70
71 //@}
72
73 std::string colorString() const;
74
75 protected:
76 private:
77 REGISTER_LOGGER("openstudio.model.RenderingColor");
78 };
79
80 } // namespace detail
81
82 } // namespace model
83 } // namespace openstudio
84
85 #endif // MODEL_RENDERINGCOLOR_IMPL_HPP
86