src/model/LightingSimulationZone_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_LIGHTINGSIMULATIONZONE_IMPL_HPP | ||
| 7 | #define MODEL_LIGHTINGSIMULATIONZONE_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class RenderingColor; | ||
| 16 | class Space; | ||
| 17 | class LightingSimulationZone; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** LightingSimulationZone_Impl is a ModelObject_Impl that is the implementation class for LightingSimulationZone.*/ | ||
| 22 | class MODEL_API LightingSimulationZone_Impl : public ModelObject_Impl | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | LightingSimulationZone_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | LightingSimulationZone_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | LightingSimulationZone_Impl(const LightingSimulationZone_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 1 | virtual ~LightingSimulationZone_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 38 | |||
| 39 | virtual IddObjectType iddObjectType() const override; | ||
| 40 | |||
| 41 | /** @name Getters */ | ||
| 42 | //@{ | ||
| 43 | |||
| 44 | //@} | ||
| 45 | /** @name Setters */ | ||
| 46 | //@{ | ||
| 47 | |||
| 48 | //@} | ||
| 49 | |||
| 50 | /// Returns the rendering color. | ||
| 51 | boost::optional<RenderingColor> renderingColor() const; | ||
| 52 | |||
| 53 | /// Sets the rendering color. | ||
| 54 | bool setRenderingColor(const RenderingColor& renderingColor); | ||
| 55 | |||
| 56 | /// Resets the rendering color. | ||
| 57 | void resetRenderingColor(); | ||
| 58 | |||
| 59 | /// Returns all spaces in this lighting simulation zone. | ||
| 60 | std::vector<Space> spaces() const; | ||
| 61 | |||
| 62 | /// Adds a spaces to this lighting simulation zone. | ||
| 63 | bool addSpace(const Space& space); | ||
| 64 | |||
| 65 | /// Resets spaces in this lighting simulation zone. | ||
| 66 | void resetSpaces(); | ||
| 67 | |||
| 68 | protected: | ||
| 69 | private: | ||
| 70 | REGISTER_LOGGER("openstudio.model.LightingSimulationZone"); | ||
| 71 | }; | ||
| 72 | |||
| 73 | } // namespace detail | ||
| 74 | |||
| 75 | } // namespace model | ||
| 76 | } // namespace openstudio | ||
| 77 | |||
| 78 | #endif // MODEL_LIGHTINGSIMULATIONZONE_IMPL_HPP | ||
| 79 |