src/radiance/WindowGroup.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 RADIANCE_WINDOWGROUP_HPP | ||
| 7 | #define RADIANCE_WINDOWGROUP_HPP | ||
| 8 | |||
| 9 | #include "RadianceAPI.hpp" | ||
| 10 | |||
| 11 | #include "../model/Space.hpp" | ||
| 12 | #include "../model/ConstructionBase.hpp" | ||
| 13 | #include "../model/ShadingControl.hpp" | ||
| 14 | |||
| 15 | #include "../utilities/geometry/Point3d.hpp" | ||
| 16 | #include "../utilities/geometry/Vector3d.hpp" | ||
| 17 | #include "../utilities/core/Logger.hpp" | ||
| 18 | |||
| 19 | namespace openstudio { | ||
| 20 | namespace radiance { | ||
| 21 | |||
| 22 | struct RADIANCE_API WindowGroupControl | ||
| 23 | { | ||
| 24 | boost::optional<double> largestArea; | ||
| 25 | boost::optional<openstudio::Point3d> centroid; | ||
| 26 | boost::optional<openstudio::Vector3d> outwardNormal; | ||
| 27 | }; | ||
| 28 | |||
| 29 | /** A WindowGroup represents a group of windows which are simulated together in the single or three phase method. | ||
| 30 | */ | ||
| 31 | class RADIANCE_API WindowGroup | ||
| 32 | { | ||
| 33 | public: | ||
| 34 | WindowGroup(const openstudio::Vector3d& outwardNormal, const model::Space& space, const model::ConstructionBase& construction, | ||
| 35 | const boost::optional<model::ShadingControl>& shadingControl); | ||
| 36 | |||
| 37 | bool operator==(const WindowGroup& other) const; | ||
| 38 | |||
| 39 | std::string name() const; | ||
| 40 | |||
| 41 | void setName(const std::string& name); | ||
| 42 | |||
| 43 | openstudio::Vector3d outwardNormal() const; | ||
| 44 | |||
| 45 | model::Space space() const; | ||
| 46 | |||
| 47 | model::ConstructionBase construction() const; | ||
| 48 | |||
| 49 | boost::optional<model::ShadingControl> shadingControl() const; | ||
| 50 | |||
| 51 | std::string interiorShadeBSDF() const; | ||
| 52 | |||
| 53 | std::string shadingControlType() const; | ||
| 54 | |||
| 55 | // returns numeric value if it exists, returns schedule name for scheduled control, n/a otherwise | ||
| 56 | std::string shadingControlSetpoint() const; | ||
| 57 | |||
| 58 | void addWindowPolygon(const openstudio::Point3dVector& windowPolygon); | ||
| 59 | |||
| 60 | WindowGroupControl windowGroupControl() const; | ||
| 61 | |||
| 62 | std::string windowGroupPoints() const; | ||
| 63 | |||
| 64 | private: | ||
| 65 | std::string m_name; | ||
| 66 | |||
| 67 | openstudio::Vector3d m_outwardNormal; | ||
| 68 | model::Space m_space; | ||
| 69 | model::ConstructionBase m_construction; | ||
| 70 | boost::optional<model::ShadingControl> m_shadingControl; | ||
| 71 | std::vector<openstudio::Point3dVector> m_windowPolygons; | ||
| 72 | |||
| 73 | − | REGISTER_LOGGER("openstudio.radiance.ForwardTranslator"); | |
| 74 | }; | ||
| 75 | |||
| 76 | // vector of WindowGroup | ||
| 77 | using WindowGroupVector = std::vector<WindowGroup>; | ||
| 78 | |||
| 79 | } // namespace radiance | ||
| 80 | } // namespace openstudio | ||
| 81 | |||
| 82 | #endif //RADIANCE_LIGHTFIXTURE_HPP | ||
| 83 |