src/model/ComfortViewFactorAngles_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_COMFORTVIEWFACTORANGLES_IMPL_HPP | ||
| 7 | #define MODEL_COMFORTVIEWFACTORANGLES_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class AngleFactor; | ||
| 16 | class ModelObject; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | class MODEL_API ComfortViewFactorAngles_Impl : public ModelObject_Impl | ||
| 20 | { | ||
| 21 | public: | ||
| 22 | ComfortViewFactorAngles_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 23 | ComfortViewFactorAngles_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 24 | ComfortViewFactorAngles_Impl(const ComfortViewFactorAngles_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 25 | |||
| 26 | 21 | virtual ~ComfortViewFactorAngles_Impl() override = default; | |
| 27 | |||
| 28 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 29 | virtual IddObjectType iddObjectType() const override; | ||
| 30 | |||
| 31 | std::vector<AngleFactor> angleFactors() const; | ||
| 32 | unsigned int numberofAngleFactors() const; | ||
| 33 | boost::optional<unsigned> angleFactorIndex(const ModelObject& surface) const; | ||
| 34 | boost::optional<AngleFactor> getAngleFactor(unsigned groupIndex) const; | ||
| 35 | |||
| 36 | bool addAngleFactor(const AngleFactor& angleFactor); | ||
| 37 | bool addAngleFactor(const ModelObject& surface, double angleFactor); | ||
| 38 | bool addAngleFactors(const std::vector<AngleFactor>& angleFactors); | ||
| 39 | bool removeAngleFactor(unsigned groupIndex); | ||
| 40 | void removeAllAngleFactors(); | ||
| 41 | |||
| 42 | private: | ||
| 43 | − | REGISTER_LOGGER("openstudio.model.ComfortViewFactorAngles"); | |
| 44 | |||
| 45 | }; | ||
| 46 | } | ||
| 47 | |||
| 48 | } // namespace model | ||
| 49 | } // namespace openstudio | ||
| 50 | |||
| 51 | #endif // MODEL_COMFORTVIEWFACTORANGLES_IMPL_HPP | ||
| 52 |