src/radiance/HeaderInfo.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_HEADERINFO_HPP | ||
| 7 | #define RADIANCE_HEADERINFO_HPP | ||
| 8 | |||
| 9 | #include "RadianceAPI.hpp" | ||
| 10 | |||
| 11 | #include "../utilities/data/Vector.hpp" | ||
| 12 | #include "../utilities/core/Logger.hpp" | ||
| 13 | |||
| 14 | namespace openstudio { | ||
| 15 | namespace radiance { | ||
| 16 | |||
| 17 | /** HeaderInfo represents the header of a radiance output file from SPOT. | ||
| 18 | * It's primary function is to define the x and y axis of the illuminance map. | ||
| 19 | */ | ||
| 20 | class RADIANCE_API HeaderInfo | ||
| 21 | { | ||
| 22 | public: | ||
| 23 | /// header consists of two lines | ||
| 24 | HeaderInfo(const std::string& line1, const std::string& line2); | ||
| 25 | |||
| 26 | /// virtual destructor | ||
| 27 | 1 | virtual ~HeaderInfo() = default; | |
| 28 | |||
| 29 | /// get the x points corresponding to illuminance matrix columns in meters | ||
| 30 | 1 | openstudio::Vector xVector() const { | |
| 31 | 1 | return m_xVector; | |
| 32 | } | ||
| 33 | |||
| 34 | /// get the y points corresponding to illuminance matrix rows in meters | ||
| 35 | 1 | openstudio::Vector yVector() const { | |
| 36 | 1 | return m_yVector; | |
| 37 | } | ||
| 38 | |||
| 39 | private: | ||
| 40 | − | REGISTER_LOGGER("radiance.HeaderInfo"); | |
| 41 | |||
| 42 | openstudio::Vector m_xVector; | ||
| 43 | openstudio::Vector m_yVector; | ||
| 44 | }; | ||
| 45 | |||
| 46 | } // namespace radiance | ||
| 47 | } // namespace openstudio | ||
| 48 | |||
| 49 | #endif //RADIANCE_HEADERINFO_HPP | ||
| 50 |