src/model/IlluminanceMap.cpp
| 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 | #include "IlluminanceMap.hpp" | ||
| 7 | #include "IlluminanceMap_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/OS_IlluminanceMap_FieldEnums.hxx> | ||
| 10 | #include <utilities/idd/IddEnums.hxx> | ||
| 11 | |||
| 12 | #include "../utilities/geometry/Transformation.hpp" | ||
| 13 | #include "../utilities/geometry/EulerAngles.hpp" | ||
| 14 | #include "../utilities/geometry/Vector3d.hpp" | ||
| 15 | #include "../utilities/geometry/Point3d.hpp" | ||
| 16 | #include "../utilities/geometry/Geometry.hpp" | ||
| 17 | #include "../utilities/core/Assert.hpp" | ||
| 18 | |||
| 19 | namespace openstudio { | ||
| 20 | namespace model { | ||
| 21 | |||
| 22 | namespace detail { | ||
| 23 | |||
| 24 | 207 | IlluminanceMap_Impl::IlluminanceMap_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 25 | 207 | : SpaceItem_Impl(idfObject, model, keepHandle) { | |
| 26 |
4/6✓ Branch 1 taken 207 times.
✓ Branch 4 taken 207 times.
✓ Branch 7 taken 207 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 207 times.
✗ Branch 13 not taken.
|
207 | OS_ASSERT(idfObject.iddObject().type() == IlluminanceMap::iddObjectType()); |
| 27 | 207 | } | |
| 28 | |||
| 29 | 25 | IlluminanceMap_Impl::IlluminanceMap_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 30 | 25 | : SpaceItem_Impl(other, model, keepHandle) { | |
| 31 |
4/6✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
✓ Branch 7 taken 25 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 25 times.
✗ Branch 13 not taken.
|
25 | OS_ASSERT(other.iddObject().type() == IlluminanceMap::iddObjectType()); |
| 32 | 25 | } | |
| 33 | |||
| 34 | 74 | IlluminanceMap_Impl::IlluminanceMap_Impl(const IlluminanceMap_Impl& other, Model_Impl* model, bool keepHandle) | |
| 35 | 74 | : SpaceItem_Impl(other, model, keepHandle) {} | |
| 36 | |||
| 37 | 1 | const std::vector<std::string>& IlluminanceMap_Impl::outputVariableNames() const { | |
| 38 |
2/4✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
1 | static const std::vector<std::string> result; |
| 39 | 1 | return result; | |
| 40 | } | ||
| 41 | |||
| 42 | 1 | IddObjectType IlluminanceMap_Impl::iddObjectType() const { | |
| 43 | 1 | return IlluminanceMap::iddObjectType(); | |
| 44 | } | ||
| 45 | |||
| 46 | 308 | double IlluminanceMap_Impl::originXCoordinate() const { | |
| 47 |
1/1✓ Branch 1 taken 308 times.
|
308 | boost::optional<double> value = getDouble(OS_IlluminanceMapFields::OriginXCoordinate, true); |
| 48 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 308 times.
✗ Branch 4 not taken.
|
308 | OS_ASSERT(value); |
| 49 |
1/1✓ Branch 1 taken 308 times.
|
616 | return value.get(); |
| 50 | } | ||
| 51 | |||
| 52 | 308 | double IlluminanceMap_Impl::originYCoordinate() const { | |
| 53 |
1/1✓ Branch 1 taken 308 times.
|
308 | boost::optional<double> value = getDouble(OS_IlluminanceMapFields::OriginYCoordinate, true); |
| 54 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 308 times.
✗ Branch 4 not taken.
|
308 | OS_ASSERT(value); |
| 55 |
1/1✓ Branch 1 taken 308 times.
|
616 | return value.get(); |
| 56 | } | ||
| 57 | |||
| 58 | 272 | double IlluminanceMap_Impl::originZCoordinate() const { | |
| 59 |
1/1✓ Branch 1 taken 272 times.
|
272 | boost::optional<double> value = getDouble(OS_IlluminanceMapFields::OriginZCoordinate, true); |
| 60 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 272 times.
✗ Branch 4 not taken.
|
272 | OS_ASSERT(value); |
| 61 |
1/1✓ Branch 1 taken 272 times.
|
544 | return value.get(); |
| 62 | } | ||
| 63 | |||
| 64 | 270 | double IlluminanceMap_Impl::psiRotationAroundXAxis() const { | |
| 65 |
1/1✓ Branch 1 taken 270 times.
|
270 | boost::optional<double> value = getDouble(OS_IlluminanceMapFields::PsiRotationAroundXAxis, true); |
| 66 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 270 times.
✗ Branch 4 not taken.
|
270 | OS_ASSERT(value); |
| 67 |
1/1✓ Branch 1 taken 270 times.
|
540 | return value.get(); |
| 68 | } | ||
| 69 | |||
| 70 | ✗ | bool IlluminanceMap_Impl::isPsiRotationAroundXAxisDefaulted() const { | |
| 71 | ✗ | return isEmpty(OS_IlluminanceMapFields::PsiRotationAroundXAxis); | |
| 72 | } | ||
| 73 | |||
| 74 | 270 | double IlluminanceMap_Impl::thetaRotationAroundYAxis() const { | |
| 75 |
1/1✓ Branch 1 taken 270 times.
|
270 | boost::optional<double> value = getDouble(OS_IlluminanceMapFields::ThetaRotationAroundYAxis, true); |
| 76 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 270 times.
✗ Branch 4 not taken.
|
270 | OS_ASSERT(value); |
| 77 |
1/1✓ Branch 1 taken 270 times.
|
540 | return value.get(); |
| 78 | } | ||
| 79 | |||
| 80 | ✗ | bool IlluminanceMap_Impl::isThetaRotationAroundYAxisDefaulted() const { | |
| 81 | ✗ | return isEmpty(OS_IlluminanceMapFields::ThetaRotationAroundYAxis); | |
| 82 | } | ||
| 83 | |||
| 84 | 270 | double IlluminanceMap_Impl::phiRotationAroundZAxis() const { | |
| 85 |
1/1✓ Branch 1 taken 270 times.
|
270 | boost::optional<double> value = getDouble(OS_IlluminanceMapFields::PhiRotationAroundZAxis, true); |
| 86 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 270 times.
✗ Branch 4 not taken.
|
270 | OS_ASSERT(value); |
| 87 |
1/1✓ Branch 1 taken 270 times.
|
540 | return value.get(); |
| 88 | } | ||
| 89 | |||
| 90 | ✗ | bool IlluminanceMap_Impl::isPhiRotationAroundZAxisDefaulted() const { | |
| 91 | ✗ | return isEmpty(OS_IlluminanceMapFields::PhiRotationAroundZAxis); | |
| 92 | } | ||
| 93 | |||
| 94 | 464 | double IlluminanceMap_Impl::xLength() const { | |
| 95 |
1/1✓ Branch 1 taken 464 times.
|
464 | boost::optional<double> value = getDouble(OS_IlluminanceMapFields::XLength, true); |
| 96 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 464 times.
✗ Branch 4 not taken.
|
464 | OS_ASSERT(value); |
| 97 |
1/1✓ Branch 1 taken 464 times.
|
928 | return value.get(); |
| 98 | } | ||
| 99 | |||
| 100 | ✗ | bool IlluminanceMap_Impl::isXLengthDefaulted() const { | |
| 101 | ✗ | return isEmpty(OS_IlluminanceMapFields::XLength); | |
| 102 | } | ||
| 103 | |||
| 104 | 110 | int IlluminanceMap_Impl::numberofXGridPoints() const { | |
| 105 |
1/1✓ Branch 1 taken 110 times.
|
110 | boost::optional<int> value = getInt(OS_IlluminanceMapFields::NumberofXGridPoints, true); |
| 106 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 110 times.
✗ Branch 4 not taken.
|
110 | OS_ASSERT(value); |
| 107 |
1/1✓ Branch 1 taken 110 times.
|
220 | return value.get(); |
| 108 | } | ||
| 109 | |||
| 110 | ✗ | bool IlluminanceMap_Impl::isNumberofXGridPointsDefaulted() const { | |
| 111 | ✗ | return isEmpty(OS_IlluminanceMapFields::NumberofXGridPoints); | |
| 112 | } | ||
| 113 | |||
| 114 | 412 | double IlluminanceMap_Impl::yLength() const { | |
| 115 |
1/1✓ Branch 1 taken 412 times.
|
412 | boost::optional<double> value = getDouble(OS_IlluminanceMapFields::YLength, true); |
| 116 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 412 times.
✗ Branch 4 not taken.
|
412 | OS_ASSERT(value); |
| 117 |
1/1✓ Branch 1 taken 412 times.
|
824 | return value.get(); |
| 118 | } | ||
| 119 | |||
| 120 | ✗ | bool IlluminanceMap_Impl::isYLengthDefaulted() const { | |
| 121 | ✗ | return isEmpty(OS_IlluminanceMapFields::YLength); | |
| 122 | } | ||
| 123 | |||
| 124 | 58 | int IlluminanceMap_Impl::numberofYGridPoints() const { | |
| 125 |
1/1✓ Branch 1 taken 58 times.
|
58 | boost::optional<int> value = getInt(OS_IlluminanceMapFields::NumberofYGridPoints, true); |
| 126 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 58 times.
✗ Branch 4 not taken.
|
58 | OS_ASSERT(value); |
| 127 |
1/1✓ Branch 1 taken 58 times.
|
116 | return value.get(); |
| 128 | } | ||
| 129 | |||
| 130 | ✗ | bool IlluminanceMap_Impl::isNumberofYGridPointsDefaulted() const { | |
| 131 | ✗ | return isEmpty(OS_IlluminanceMapFields::NumberofYGridPoints); | |
| 132 | } | ||
| 133 | |||
| 134 | 222 | bool IlluminanceMap_Impl::setOriginXCoordinate(double originXCoordinate) { | |
| 135 | 222 | bool result = setDouble(OS_IlluminanceMapFields::OriginXCoordinate, originXCoordinate); | |
| 136 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 222 times.
|
222 | OS_ASSERT(result); |
| 137 | 222 | return result; | |
| 138 | } | ||
| 139 | |||
| 140 | 222 | bool IlluminanceMap_Impl::setOriginYCoordinate(double originYCoordinate) { | |
| 141 | 222 | bool result = setDouble(OS_IlluminanceMapFields::OriginYCoordinate, originYCoordinate); | |
| 142 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 222 times.
|
222 | OS_ASSERT(result); |
| 143 | 222 | return result; | |
| 144 | } | ||
| 145 | |||
| 146 | 222 | bool IlluminanceMap_Impl::setOriginZCoordinate(double originZCoordinate) { | |
| 147 | 222 | bool result = setDouble(OS_IlluminanceMapFields::OriginZCoordinate, originZCoordinate); | |
| 148 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 222 times.
|
222 | OS_ASSERT(result); |
| 149 | 222 | return result; | |
| 150 | } | ||
| 151 | |||
| 152 | 44 | bool IlluminanceMap_Impl::setPsiRotationAroundXAxis(double psiRotationAroundXAxis) { | |
| 153 | 44 | bool result = setDouble(OS_IlluminanceMapFields::PsiRotationAroundXAxis, psiRotationAroundXAxis); | |
| 154 | 44 | return result; | |
| 155 | } | ||
| 156 | |||
| 157 | ✗ | void IlluminanceMap_Impl::resetPsiRotationAroundXAxis() { | |
| 158 | ✗ | bool result = setString(OS_IlluminanceMapFields::PsiRotationAroundXAxis, ""); | |
| 159 | ✗ | OS_ASSERT(result); | |
| 160 | ✗ | } | |
| 161 | |||
| 162 | 44 | bool IlluminanceMap_Impl::setThetaRotationAroundYAxis(double thetaRotationAroundYAxis) { | |
| 163 | 44 | bool result = setDouble(OS_IlluminanceMapFields::ThetaRotationAroundYAxis, thetaRotationAroundYAxis); | |
| 164 | 44 | return result; | |
| 165 | } | ||
| 166 | |||
| 167 | ✗ | void IlluminanceMap_Impl::resetThetaRotationAroundYAxis() { | |
| 168 | ✗ | bool result = setString(OS_IlluminanceMapFields::ThetaRotationAroundYAxis, ""); | |
| 169 | ✗ | OS_ASSERT(result); | |
| 170 | ✗ | } | |
| 171 | |||
| 172 | 44 | bool IlluminanceMap_Impl::setPhiRotationAroundZAxis(double phiRotationAroundZAxis) { | |
| 173 | 44 | bool result = setDouble(OS_IlluminanceMapFields::PhiRotationAroundZAxis, phiRotationAroundZAxis); | |
| 174 | 44 | return result; | |
| 175 | } | ||
| 176 | |||
| 177 | ✗ | void IlluminanceMap_Impl::resetPhiRotationAroundZAxis() { | |
| 178 | ✗ | bool result = setString(OS_IlluminanceMapFields::PhiRotationAroundZAxis, ""); | |
| 179 | ✗ | OS_ASSERT(result); | |
| 180 | ✗ | } | |
| 181 | |||
| 182 | 178 | bool IlluminanceMap_Impl::setXLength(double xLength) { | |
| 183 | 178 | bool result = setDouble(OS_IlluminanceMapFields::XLength, xLength); | |
| 184 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 178 times.
|
178 | OS_ASSERT(result); |
| 185 | 178 | return result; | |
| 186 | } | ||
| 187 | |||
| 188 | ✗ | void IlluminanceMap_Impl::resetXLength() { | |
| 189 | ✗ | bool result = setString(OS_IlluminanceMapFields::XLength, ""); | |
| 190 | ✗ | OS_ASSERT(result); | |
| 191 | ✗ | } | |
| 192 | |||
| 193 | 10 | bool IlluminanceMap_Impl::setNumberofXGridPoints(int numberofXGridPoints) { | |
| 194 | 10 | bool result = setInt(OS_IlluminanceMapFields::NumberofXGridPoints, numberofXGridPoints); | |
| 195 | 10 | return result; | |
| 196 | } | ||
| 197 | |||
| 198 | ✗ | void IlluminanceMap_Impl::resetNumberofXGridPoints() { | |
| 199 | ✗ | bool result = setString(OS_IlluminanceMapFields::NumberofXGridPoints, ""); | |
| 200 | ✗ | OS_ASSERT(result); | |
| 201 | ✗ | } | |
| 202 | |||
| 203 | 178 | bool IlluminanceMap_Impl::setYLength(double yLength) { | |
| 204 | 178 | bool result = setDouble(OS_IlluminanceMapFields::YLength, yLength); | |
| 205 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 178 times.
|
178 | OS_ASSERT(result); |
| 206 | 178 | return result; | |
| 207 | } | ||
| 208 | |||
| 209 | ✗ | void IlluminanceMap_Impl::resetYLength() { | |
| 210 | ✗ | bool result = setString(OS_IlluminanceMapFields::YLength, ""); | |
| 211 | ✗ | OS_ASSERT(result); | |
| 212 | ✗ | } | |
| 213 | |||
| 214 | 10 | bool IlluminanceMap_Impl::setNumberofYGridPoints(int numberofYGridPoints) { | |
| 215 | 10 | bool result = setInt(OS_IlluminanceMapFields::NumberofYGridPoints, numberofYGridPoints); | |
| 216 | 10 | return result; | |
| 217 | } | ||
| 218 | |||
| 219 | ✗ | void IlluminanceMap_Impl::resetNumberofYGridPoints() { | |
| 220 | ✗ | bool result = setString(OS_IlluminanceMapFields::NumberofYGridPoints, ""); | |
| 221 | ✗ | OS_ASSERT(result); | |
| 222 | ✗ | } | |
| 223 | |||
| 224 | 234 | openstudio::Transformation IlluminanceMap_Impl::transformation() const { | |
| 225 |
4/4✓ Branch 1 taken 234 times.
✓ Branch 4 taken 234 times.
✓ Branch 7 taken 234 times.
✓ Branch 10 taken 234 times.
|
234 | Vector3d origin(this->originXCoordinate(), this->originYCoordinate(), this->originZCoordinate()); |
| 226 | |||
| 227 | EulerAngles angles(degToRad(this->psiRotationAroundXAxis()), degToRad(this->thetaRotationAroundYAxis()), | ||
| 228 |
7/7✓ Branch 1 taken 234 times.
✓ Branch 4 taken 234 times.
✓ Branch 7 taken 234 times.
✓ Branch 10 taken 234 times.
✓ Branch 13 taken 234 times.
✓ Branch 16 taken 234 times.
✓ Branch 19 taken 234 times.
|
234 | degToRad(this->phiRotationAroundZAxis())); |
| 229 | |||
| 230 |
3/3✓ Branch 1 taken 234 times.
✓ Branch 4 taken 234 times.
✓ Branch 7 taken 234 times.
|
234 | Transformation result = Transformation::translation(origin) * Transformation::rotation(angles); |
| 231 | |||
| 232 | 468 | return result; | |
| 233 | 234 | } | |
| 234 | |||
| 235 | 44 | bool IlluminanceMap_Impl::setTransformation(const openstudio::Transformation& transformation) { | |
| 236 | bool test; | ||
| 237 | |||
| 238 |
1/1✓ Branch 1 taken 44 times.
|
44 | Vector3d translation = transformation.translation(); |
| 239 |
2/2✓ Branch 1 taken 44 times.
✓ Branch 4 taken 44 times.
|
44 | this->setOriginXCoordinate(translation.x()); |
| 240 |
2/2✓ Branch 1 taken 44 times.
✓ Branch 4 taken 44 times.
|
44 | this->setOriginYCoordinate(translation.y()); |
| 241 |
2/2✓ Branch 1 taken 44 times.
✓ Branch 4 taken 44 times.
|
44 | this->setOriginZCoordinate(translation.z()); |
| 242 | |||
| 243 |
1/1✓ Branch 1 taken 44 times.
|
44 | EulerAngles eulerAngles = transformation.eulerAngles(); |
| 244 |
3/3✓ Branch 1 taken 44 times.
✓ Branch 4 taken 44 times.
✓ Branch 7 taken 44 times.
|
44 | test = this->setPsiRotationAroundXAxis(radToDeg(eulerAngles.psi())); |
| 245 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 44 times.
✗ Branch 3 not taken.
|
44 | OS_ASSERT(test); |
| 246 |
3/3✓ Branch 1 taken 44 times.
✓ Branch 4 taken 44 times.
✓ Branch 7 taken 44 times.
|
44 | test = this->setThetaRotationAroundYAxis(radToDeg(eulerAngles.theta())); |
| 247 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 44 times.
✗ Branch 3 not taken.
|
44 | OS_ASSERT(test); |
| 248 |
3/3✓ Branch 1 taken 44 times.
✓ Branch 4 taken 44 times.
✓ Branch 7 taken 44 times.
|
44 | test = this->setPhiRotationAroundZAxis(radToDeg(eulerAngles.phi())); |
| 249 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 44 times.
✗ Branch 3 not taken.
|
44 | OS_ASSERT(test); |
| 250 | |||
| 251 | 44 | return true; | |
| 252 | 44 | } | |
| 253 | |||
| 254 | 22 | std::vector<Point3d> IlluminanceMap_Impl::referencePoints() const { | |
| 255 | 22 | std::vector<Point3d> result; | |
| 256 | |||
| 257 |
8/8✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
✓ Branch 7 taken 22 times.
✓ Branch 10 taken 22 times.
✓ Branch 13 taken 22 times.
✓ Branch 18 taken 96 times.
✓ Branch 20 taken 74 times.
✓ Branch 21 taken 22 times.
|
96 | for (double y : linspace(0, this->yLength(), this->numberofYGridPoints())) { |
| 258 |
8/8✓ Branch 1 taken 74 times.
✓ Branch 4 taken 74 times.
✓ Branch 7 taken 74 times.
✓ Branch 10 taken 74 times.
✓ Branch 13 taken 74 times.
✓ Branch 17 taken 492 times.
✓ Branch 19 taken 418 times.
✓ Branch 20 taken 74 times.
|
492 | for (double x : linspace(0, this->xLength(), this->numberofXGridPoints())) { |
| 259 |
2/2✓ Branch 1 taken 418 times.
✓ Branch 4 taken 418 times.
|
418 | result.push_back(Point3d(x, y, 0)); |
| 260 | 74 | } | |
| 261 | 22 | } | |
| 262 | |||
| 263 | 22 | return result; | |
| 264 | ✗ | } | |
| 265 | |||
| 266 | 176 | std::vector<Point3d> IlluminanceMap_Impl::corners() const { | |
| 267 | std::vector<Point3d> result{ | ||
| 268 | {0, this->yLength(), 0}, | ||
| 269 | {0, 0, 0}, | ||
| 270 | {this->xLength(), 0, 0}, | ||
| 271 | {this->xLength(), this->yLength(), 0}, | ||
| 272 |
3/5✓ Branch 1 taken 176 times.
✓ Branch 3 taken 704 times.
✓ Branch 4 taken 176 times.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
|
1056 | }; |
| 273 | 176 | return result; | |
| 274 | 176 | } | |
| 275 | |||
| 276 | 374 | int IlluminanceMap_Impl::spaceIndex() const { | |
| 277 | 374 | return OS_IlluminanceMapFields::SpaceName; | |
| 278 | } | ||
| 279 | |||
| 280 | } // namespace detail | ||
| 281 | |||
| 282 | 181 | IlluminanceMap::IlluminanceMap(const Model& model) : SpaceItem(IlluminanceMap::iddObjectType(), model) { | |
| 283 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 181 times.
✗ Branch 5 not taken.
|
181 | OS_ASSERT(getImpl<detail::IlluminanceMap_Impl>()); |
| 284 | 181 | } | |
| 285 | |||
| 286 | 49985 | IddObjectType IlluminanceMap::iddObjectType() { | |
| 287 |
1/1✓ Branch 1 taken 49985 times.
|
49985 | IddObjectType result(IddObjectType::OS_IlluminanceMap); |
| 288 | 49985 | return result; | |
| 289 | } | ||
| 290 | |||
| 291 | 74 | double IlluminanceMap::originXCoordinate() const { | |
| 292 |
1/1✓ Branch 3 taken 74 times.
|
74 | return getImpl<detail::IlluminanceMap_Impl>()->originXCoordinate(); |
| 293 | } | ||
| 294 | |||
| 295 | 74 | double IlluminanceMap::originYCoordinate() const { | |
| 296 |
1/1✓ Branch 3 taken 74 times.
|
74 | return getImpl<detail::IlluminanceMap_Impl>()->originYCoordinate(); |
| 297 | } | ||
| 298 | |||
| 299 | 38 | double IlluminanceMap::originZCoordinate() const { | |
| 300 |
1/1✓ Branch 3 taken 38 times.
|
38 | return getImpl<detail::IlluminanceMap_Impl>()->originZCoordinate(); |
| 301 | } | ||
| 302 | |||
| 303 | 36 | double IlluminanceMap::psiRotationAroundXAxis() const { | |
| 304 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::IlluminanceMap_Impl>()->psiRotationAroundXAxis(); |
| 305 | } | ||
| 306 | |||
| 307 | ✗ | bool IlluminanceMap::isPsiRotationAroundXAxisDefaulted() const { | |
| 308 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->isPsiRotationAroundXAxisDefaulted(); | |
| 309 | } | ||
| 310 | |||
| 311 | 36 | double IlluminanceMap::thetaRotationAroundYAxis() const { | |
| 312 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::IlluminanceMap_Impl>()->thetaRotationAroundYAxis(); |
| 313 | } | ||
| 314 | |||
| 315 | ✗ | bool IlluminanceMap::isThetaRotationAroundYAxisDefaulted() const { | |
| 316 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->isThetaRotationAroundYAxisDefaulted(); | |
| 317 | } | ||
| 318 | |||
| 319 | 36 | double IlluminanceMap::phiRotationAroundZAxis() const { | |
| 320 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::IlluminanceMap_Impl>()->phiRotationAroundZAxis(); |
| 321 | } | ||
| 322 | |||
| 323 | ✗ | bool IlluminanceMap::isPhiRotationAroundZAxisDefaulted() const { | |
| 324 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->isPhiRotationAroundZAxisDefaulted(); | |
| 325 | } | ||
| 326 | |||
| 327 | 38 | double IlluminanceMap::xLength() const { | |
| 328 |
1/1✓ Branch 3 taken 38 times.
|
38 | return getImpl<detail::IlluminanceMap_Impl>()->xLength(); |
| 329 | } | ||
| 330 | |||
| 331 | ✗ | bool IlluminanceMap::isXLengthDefaulted() const { | |
| 332 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->isXLengthDefaulted(); | |
| 333 | } | ||
| 334 | |||
| 335 | 36 | int IlluminanceMap::numberofXGridPoints() const { | |
| 336 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::IlluminanceMap_Impl>()->numberofXGridPoints(); |
| 337 | } | ||
| 338 | |||
| 339 | ✗ | bool IlluminanceMap::isNumberofXGridPointsDefaulted() const { | |
| 340 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->isNumberofXGridPointsDefaulted(); | |
| 341 | } | ||
| 342 | |||
| 343 | 38 | double IlluminanceMap::yLength() const { | |
| 344 |
1/1✓ Branch 3 taken 38 times.
|
38 | return getImpl<detail::IlluminanceMap_Impl>()->yLength(); |
| 345 | } | ||
| 346 | |||
| 347 | ✗ | bool IlluminanceMap::isYLengthDefaulted() const { | |
| 348 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->isYLengthDefaulted(); | |
| 349 | } | ||
| 350 | |||
| 351 | 36 | int IlluminanceMap::numberofYGridPoints() const { | |
| 352 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::IlluminanceMap_Impl>()->numberofYGridPoints(); |
| 353 | } | ||
| 354 | |||
| 355 | ✗ | bool IlluminanceMap::isNumberofYGridPointsDefaulted() const { | |
| 356 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->isNumberofYGridPointsDefaulted(); | |
| 357 | } | ||
| 358 | |||
| 359 | 178 | bool IlluminanceMap::setOriginXCoordinate(double originXCoordinate) { | |
| 360 |
1/1✓ Branch 3 taken 178 times.
|
178 | return getImpl<detail::IlluminanceMap_Impl>()->setOriginXCoordinate(originXCoordinate); |
| 361 | } | ||
| 362 | |||
| 363 | 178 | bool IlluminanceMap::setOriginYCoordinate(double originYCoordinate) { | |
| 364 |
1/1✓ Branch 3 taken 178 times.
|
178 | return getImpl<detail::IlluminanceMap_Impl>()->setOriginYCoordinate(originYCoordinate); |
| 365 | } | ||
| 366 | |||
| 367 | 178 | bool IlluminanceMap::setOriginZCoordinate(double originZCoordinate) { | |
| 368 |
1/1✓ Branch 3 taken 178 times.
|
178 | return getImpl<detail::IlluminanceMap_Impl>()->setOriginZCoordinate(originZCoordinate); |
| 369 | } | ||
| 370 | |||
| 371 | ✗ | bool IlluminanceMap::setPsiRotationAroundXAxis(double psiRotationAroundXAxis) { | |
| 372 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->setPsiRotationAroundXAxis(psiRotationAroundXAxis); | |
| 373 | } | ||
| 374 | |||
| 375 | ✗ | void IlluminanceMap::resetPsiRotationAroundXAxis() { | |
| 376 | ✗ | getImpl<detail::IlluminanceMap_Impl>()->resetPsiRotationAroundXAxis(); | |
| 377 | ✗ | } | |
| 378 | |||
| 379 | ✗ | bool IlluminanceMap::setThetaRotationAroundYAxis(double thetaRotationAroundYAxis) { | |
| 380 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->setThetaRotationAroundYAxis(thetaRotationAroundYAxis); | |
| 381 | } | ||
| 382 | |||
| 383 | ✗ | void IlluminanceMap::resetThetaRotationAroundYAxis() { | |
| 384 | ✗ | getImpl<detail::IlluminanceMap_Impl>()->resetThetaRotationAroundYAxis(); | |
| 385 | ✗ | } | |
| 386 | |||
| 387 | ✗ | bool IlluminanceMap::setPhiRotationAroundZAxis(double phiRotationAroundZAxis) { | |
| 388 | ✗ | return getImpl<detail::IlluminanceMap_Impl>()->setPhiRotationAroundZAxis(phiRotationAroundZAxis); | |
| 389 | } | ||
| 390 | |||
| 391 | ✗ | void IlluminanceMap::resetPhiRotationAroundZAxis() { | |
| 392 | ✗ | getImpl<detail::IlluminanceMap_Impl>()->resetPhiRotationAroundZAxis(); | |
| 393 | ✗ | } | |
| 394 | |||
| 395 | 178 | bool IlluminanceMap::setXLength(double xLength) { | |
| 396 |
1/1✓ Branch 3 taken 178 times.
|
178 | return getImpl<detail::IlluminanceMap_Impl>()->setXLength(xLength); |
| 397 | } | ||
| 398 | |||
| 399 | ✗ | void IlluminanceMap::resetXLength() { | |
| 400 | ✗ | getImpl<detail::IlluminanceMap_Impl>()->resetXLength(); | |
| 401 | ✗ | } | |
| 402 | |||
| 403 | 10 | bool IlluminanceMap::setNumberofXGridPoints(int numberofXGridPoints) { | |
| 404 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::IlluminanceMap_Impl>()->setNumberofXGridPoints(numberofXGridPoints); |
| 405 | } | ||
| 406 | |||
| 407 | ✗ | void IlluminanceMap::resetNumberofXGridPoints() { | |
| 408 | ✗ | getImpl<detail::IlluminanceMap_Impl>()->resetNumberofXGridPoints(); | |
| 409 | ✗ | } | |
| 410 | |||
| 411 | 178 | bool IlluminanceMap::setYLength(double yLength) { | |
| 412 |
1/1✓ Branch 3 taken 178 times.
|
178 | return getImpl<detail::IlluminanceMap_Impl>()->setYLength(yLength); |
| 413 | } | ||
| 414 | |||
| 415 | ✗ | void IlluminanceMap::resetYLength() { | |
| 416 | ✗ | getImpl<detail::IlluminanceMap_Impl>()->resetYLength(); | |
| 417 | ✗ | } | |
| 418 | |||
| 419 | 10 | bool IlluminanceMap::setNumberofYGridPoints(int numberofYGridPoints) { | |
| 420 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::IlluminanceMap_Impl>()->setNumberofYGridPoints(numberofYGridPoints); |
| 421 | } | ||
| 422 | |||
| 423 | ✗ | void IlluminanceMap::resetNumberofYGridPoints() { | |
| 424 | ✗ | getImpl<detail::IlluminanceMap_Impl>()->resetNumberofYGridPoints(); | |
| 425 | ✗ | } | |
| 426 | |||
| 427 | 234 | openstudio::Transformation IlluminanceMap::transformation() const { | |
| 428 |
1/1✓ Branch 3 taken 234 times.
|
234 | return getImpl<detail::IlluminanceMap_Impl>()->transformation(); |
| 429 | } | ||
| 430 | |||
| 431 | 44 | bool IlluminanceMap::setTransformation(const openstudio::Transformation& transformation) { | |
| 432 |
1/1✓ Branch 3 taken 44 times.
|
44 | return getImpl<detail::IlluminanceMap_Impl>()->setTransformation(transformation); |
| 433 | } | ||
| 434 | |||
| 435 | 22 | std::vector<Point3d> IlluminanceMap::referencePoints() const { | |
| 436 |
1/1✓ Branch 3 taken 22 times.
|
22 | return getImpl<detail::IlluminanceMap_Impl>()->referencePoints(); |
| 437 | } | ||
| 438 | |||
| 439 | 176 | std::vector<Point3d> IlluminanceMap::corners() const { | |
| 440 |
1/1✓ Branch 3 taken 176 times.
|
176 | return getImpl<detail::IlluminanceMap_Impl>()->corners(); |
| 441 | } | ||
| 442 | |||
| 443 | /// @cond | ||
| 444 |
1/1✓ Branch 3 taken 435 times.
|
435 | IlluminanceMap::IlluminanceMap(std::shared_ptr<detail::IlluminanceMap_Impl> impl) : SpaceItem(std::move(impl)) {} |
| 445 | /// @endcond | ||
| 446 | |||
| 447 | } // namespace model | ||
| 448 | } // namespace openstudio | ||
| 449 |