src/model/RadianceParameters.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 "RadianceParameters.hpp" | ||
| 7 | #include "RadianceParameters_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/OS_RadianceParameters_FieldEnums.hxx> | ||
| 10 | #include <utilities/idd/IddEnums.hxx> | ||
| 11 | #include <utilities/idd/IddFactory.hxx> | ||
| 12 | |||
| 13 | #include "../utilities/units/Unit.hpp" | ||
| 14 | |||
| 15 | #include "../utilities/core/Assert.hpp" | ||
| 16 | |||
| 17 | namespace openstudio { | ||
| 18 | namespace model { | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | 21 | RadianceParameters_Impl::RadianceParameters_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 23 | 21 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 24 |
4/6✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
✓ Branch 7 taken 21 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 21 times.
✗ Branch 13 not taken.
|
21 | OS_ASSERT(idfObject.iddObject().type() == RadianceParameters::iddObjectType()); |
| 25 | 21 | } | |
| 26 | |||
| 27 | 14 | RadianceParameters_Impl::RadianceParameters_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 28 | 14 | : ModelObject_Impl(other, model, keepHandle) { | |
| 29 |
4/6✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 14 times.
✗ Branch 13 not taken.
|
14 | OS_ASSERT(other.iddObject().type() == RadianceParameters::iddObjectType()); |
| 30 | 14 | } | |
| 31 | |||
| 32 | 47 | RadianceParameters_Impl::RadianceParameters_Impl(const RadianceParameters_Impl& other, Model_Impl* model, bool keepHandle) | |
| 33 | 47 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 34 | |||
| 35 | 82 | RadianceParameters_Impl::~RadianceParameters_Impl() { | |
| 36 | // Empty implementation for debugging | ||
| 37 | 82 | } | |
| 38 | |||
| 39 | ✗ | const std::vector<std::string>& RadianceParameters_Impl::outputVariableNames() const { | |
| 40 | ✗ | static const std::vector<std::string> result; | |
| 41 | ✗ | return result; | |
| 42 | } | ||
| 43 | |||
| 44 | ✗ | IddObjectType RadianceParameters_Impl::iddObjectType() const { | |
| 45 | ✗ | return RadianceParameters::iddObjectType(); | |
| 46 | } | ||
| 47 | |||
| 48 | 7 | int RadianceParameters_Impl::accumulatedRaysperRecord() const { | |
| 49 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<int> value = getInt(OS_RadianceParametersFields::AccumulatedRaysperRecord, true); |
| 50 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 51 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 52 | } | ||
| 53 | |||
| 54 | ✗ | bool RadianceParameters_Impl::isAccumulatedRaysperRecordDefaulted() const { | |
| 55 | ✗ | return isEmpty(OS_RadianceParametersFields::AccumulatedRaysperRecord); | |
| 56 | } | ||
| 57 | |||
| 58 | 13 | double RadianceParameters_Impl::directThreshold() const { | |
| 59 |
1/1✓ Branch 1 taken 13 times.
|
13 | boost::optional<double> value = getDouble(OS_RadianceParametersFields::DirectThreshold, true); |
| 60 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
|
13 | OS_ASSERT(value); |
| 61 |
1/1✓ Branch 1 taken 13 times.
|
26 | return value.get(); |
| 62 | } | ||
| 63 | |||
| 64 | ✗ | bool RadianceParameters_Impl::isDirectThresholdDefaulted() const { | |
| 65 | ✗ | return isEmpty(OS_RadianceParametersFields::DirectThreshold); | |
| 66 | } | ||
| 67 | |||
| 68 | 13 | double RadianceParameters_Impl::directCertainty() const { | |
| 69 |
1/1✓ Branch 1 taken 13 times.
|
13 | boost::optional<double> value = getDouble(OS_RadianceParametersFields::DirectCertainty, true); |
| 70 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
|
13 | OS_ASSERT(value); |
| 71 |
1/1✓ Branch 1 taken 13 times.
|
26 | return value.get(); |
| 72 | } | ||
| 73 | |||
| 74 | ✗ | bool RadianceParameters_Impl::isDirectCertaintyDefaulted() const { | |
| 75 | ✗ | return isEmpty(OS_RadianceParametersFields::DirectCertainty); | |
| 76 | } | ||
| 77 | |||
| 78 | 13 | double RadianceParameters_Impl::directJitter() const { | |
| 79 |
1/1✓ Branch 1 taken 13 times.
|
13 | boost::optional<double> value = getDouble(OS_RadianceParametersFields::DirectJitter, true); |
| 80 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
|
13 | OS_ASSERT(value); |
| 81 |
1/1✓ Branch 1 taken 13 times.
|
26 | return value.get(); |
| 82 | } | ||
| 83 | |||
| 84 | ✗ | bool RadianceParameters_Impl::isDirectJitterDefaulted() const { | |
| 85 | ✗ | return isEmpty(OS_RadianceParametersFields::DirectJitter); | |
| 86 | } | ||
| 87 | |||
| 88 | 13 | double RadianceParameters_Impl::directPretest() const { | |
| 89 |
1/1✓ Branch 1 taken 13 times.
|
13 | boost::optional<double> value = getDouble(OS_RadianceParametersFields::DirectPretest, true); |
| 90 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
|
13 | OS_ASSERT(value); |
| 91 |
1/1✓ Branch 1 taken 13 times.
|
26 | return value.get(); |
| 92 | } | ||
| 93 | |||
| 94 | ✗ | bool RadianceParameters_Impl::isDirectPretestDefaulted() const { | |
| 95 | ✗ | return isEmpty(OS_RadianceParametersFields::DirectPretest); | |
| 96 | } | ||
| 97 | |||
| 98 | 10 | int RadianceParameters_Impl::ambientBouncesVMX() const { | |
| 99 |
1/1✓ Branch 1 taken 10 times.
|
10 | boost::optional<int> value = getInt(OS_RadianceParametersFields::AmbientBouncesVMX, true); |
| 100 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 10 times.
✗ Branch 4 not taken.
|
10 | OS_ASSERT(value); |
| 101 |
1/1✓ Branch 1 taken 10 times.
|
20 | return value.get(); |
| 102 | } | ||
| 103 | |||
| 104 | ✗ | bool RadianceParameters_Impl::isAmbientBouncesVMXDefaulted() const { | |
| 105 | ✗ | return isEmpty(OS_RadianceParametersFields::AmbientBouncesVMX); | |
| 106 | } | ||
| 107 | |||
| 108 | 9 | int RadianceParameters_Impl::ambientBouncesDMX() const { | |
| 109 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<int> value = getInt(OS_RadianceParametersFields::AmbientBouncesDMX, true); |
| 110 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 111 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 112 | } | ||
| 113 | |||
| 114 | ✗ | bool RadianceParameters_Impl::isAmbientBouncesDMXDefaulted() const { | |
| 115 | ✗ | return isEmpty(OS_RadianceParametersFields::AmbientBouncesDMX); | |
| 116 | } | ||
| 117 | |||
| 118 | 9 | int RadianceParameters_Impl::ambientDivisionsVMX() const { | |
| 119 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<int> value = getInt(OS_RadianceParametersFields::AmbientDivisionsVMX, true); |
| 120 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 121 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 122 | } | ||
| 123 | |||
| 124 | ✗ | bool RadianceParameters_Impl::isAmbientDivisionsVMXDefaulted() const { | |
| 125 | ✗ | return isEmpty(OS_RadianceParametersFields::AmbientDivisionsVMX); | |
| 126 | } | ||
| 127 | |||
| 128 | 9 | int RadianceParameters_Impl::ambientDivisionsDMX() const { | |
| 129 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<int> value = getInt(OS_RadianceParametersFields::AmbientDivisionsDMX, true); |
| 130 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 131 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 132 | } | ||
| 133 | |||
| 134 | ✗ | bool RadianceParameters_Impl::isAmbientDivisionsDMXDefaulted() const { | |
| 135 | ✗ | return isEmpty(OS_RadianceParametersFields::AmbientDivisionsDMX); | |
| 136 | } | ||
| 137 | |||
| 138 | 12 | int RadianceParameters_Impl::ambientSupersamples() const { | |
| 139 |
1/1✓ Branch 1 taken 12 times.
|
12 | boost::optional<int> value = getInt(OS_RadianceParametersFields::AmbientSupersamples, true); |
| 140 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
✗ Branch 4 not taken.
|
12 | OS_ASSERT(value); |
| 141 |
1/1✓ Branch 1 taken 12 times.
|
24 | return value.get(); |
| 142 | } | ||
| 143 | |||
| 144 | ✗ | bool RadianceParameters_Impl::isAmbientSupersamplesDefaulted() const { | |
| 145 | ✗ | return isEmpty(OS_RadianceParametersFields::AmbientSupersamples); | |
| 146 | } | ||
| 147 | |||
| 148 | 9 | double RadianceParameters_Impl::limitWeightVMX() const { | |
| 149 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<double> value = getDouble(OS_RadianceParametersFields::LimitWeightVMX, true); |
| 150 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 151 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 152 | } | ||
| 153 | |||
| 154 | ✗ | bool RadianceParameters_Impl::isLimitWeightVMXDefaulted() const { | |
| 155 | ✗ | return isEmpty(OS_RadianceParametersFields::LimitWeightVMX); | |
| 156 | } | ||
| 157 | |||
| 158 | 9 | double RadianceParameters_Impl::limitWeightDMX() const { | |
| 159 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<double> value = getDouble(OS_RadianceParametersFields::LimitWeightDMX, true); |
| 160 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 161 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 162 | } | ||
| 163 | |||
| 164 | ✗ | bool RadianceParameters_Impl::isLimitWeightDMXDefaulted() const { | |
| 165 | ✗ | return isEmpty(OS_RadianceParametersFields::LimitWeightDMX); | |
| 166 | } | ||
| 167 | |||
| 168 | 9 | int RadianceParameters_Impl::klemsSamplingDensity() const { | |
| 169 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<int> value = getInt(OS_RadianceParametersFields::KlemsSamplingDensity, true); |
| 170 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 171 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 172 | } | ||
| 173 | |||
| 174 | ✗ | bool RadianceParameters_Impl::isKlemsSamplingDensityDefaulted() const { | |
| 175 | ✗ | return isEmpty(OS_RadianceParametersFields::KlemsSamplingDensity); | |
| 176 | } | ||
| 177 | |||
| 178 | 7 | std::string RadianceParameters_Impl::skyDiscretizationResolution() const { | |
| 179 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_RadianceParametersFields::SkyDiscretizationResolution, true); |
| 180 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 181 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 182 | 7 | } | |
| 183 | |||
| 184 | 11 | bool RadianceParameters_Impl::setSkyDiscretizationResolution(const std::string& skyDiscretizationResolution) { | |
| 185 | 11 | bool result = setString(OS_RadianceParametersFields::SkyDiscretizationResolution, skyDiscretizationResolution); | |
| 186 | 11 | return result; | |
| 187 | } | ||
| 188 | |||
| 189 | ✗ | void RadianceParameters_Impl::resetSkyDiscretizationResolution() { | |
| 190 | ✗ | bool result = setString(OS_RadianceParametersFields::SkyDiscretizationResolution, ""); | |
| 191 | ✗ | OS_ASSERT(result); | |
| 192 | ✗ | } | |
| 193 | |||
| 194 | ✗ | std::vector<std::string> RadianceParameters_Impl::skyDiscretizationResolutionValues() const { | |
| 195 | ✗ | return RadianceParameters::skyDiscretizationResolutionValues(); | |
| 196 | } | ||
| 197 | |||
| 198 | 9 | bool RadianceParameters_Impl::setAccumulatedRaysperRecord(int accumulatedRaysperRecord) { | |
| 199 | 9 | bool result = setInt(OS_RadianceParametersFields::AccumulatedRaysperRecord, accumulatedRaysperRecord); | |
| 200 | 9 | return result; | |
| 201 | } | ||
| 202 | |||
| 203 | 1 | void RadianceParameters_Impl::resetAccumulatedRaysperRecord() { | |
| 204 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::AccumulatedRaysperRecord, ""); |
| 205 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 206 | 1 | } | |
| 207 | |||
| 208 | 9 | bool RadianceParameters_Impl::setDirectThreshold(double directThreshold) { | |
| 209 | 9 | bool result = setDouble(OS_RadianceParametersFields::DirectThreshold, directThreshold); | |
| 210 | 9 | return result; | |
| 211 | } | ||
| 212 | |||
| 213 | 1 | void RadianceParameters_Impl::resetDirectThreshold() { | |
| 214 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::DirectThreshold, ""); |
| 215 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 216 | 1 | } | |
| 217 | |||
| 218 | 9 | bool RadianceParameters_Impl::setDirectCertainty(double directCertainty) { | |
| 219 | 9 | bool result = setDouble(OS_RadianceParametersFields::DirectCertainty, directCertainty); | |
| 220 | 9 | return result; | |
| 221 | } | ||
| 222 | |||
| 223 | 1 | void RadianceParameters_Impl::resetDirectCertainty() { | |
| 224 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::DirectCertainty, ""); |
| 225 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 226 | 1 | } | |
| 227 | |||
| 228 | 9 | bool RadianceParameters_Impl::setDirectJitter(double directJitter) { | |
| 229 | 9 | bool result = setDouble(OS_RadianceParametersFields::DirectJitter, directJitter); | |
| 230 | 9 | return result; | |
| 231 | } | ||
| 232 | |||
| 233 | 1 | void RadianceParameters_Impl::resetDirectJitter() { | |
| 234 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::DirectJitter, ""); |
| 235 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 236 | 1 | } | |
| 237 | |||
| 238 | 9 | bool RadianceParameters_Impl::setDirectPretest(double directPretest) { | |
| 239 | 9 | bool result = setDouble(OS_RadianceParametersFields::DirectPretest, directPretest); | |
| 240 | 9 | return result; | |
| 241 | } | ||
| 242 | |||
| 243 | 1 | void RadianceParameters_Impl::resetDirectPretest() { | |
| 244 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::DirectPretest, ""); |
| 245 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 246 | 1 | } | |
| 247 | |||
| 248 | 9 | bool RadianceParameters_Impl::setAmbientBouncesVMX(int ambientBouncesVMX) { | |
| 249 | 9 | bool result = setInt(OS_RadianceParametersFields::AmbientBouncesVMX, ambientBouncesVMX); | |
| 250 | 9 | return result; | |
| 251 | } | ||
| 252 | |||
| 253 | 1 | void RadianceParameters_Impl::resetAmbientBouncesVMX() { | |
| 254 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::AmbientBouncesVMX, ""); |
| 255 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 256 | 1 | } | |
| 257 | |||
| 258 | 9 | bool RadianceParameters_Impl::setAmbientBouncesDMX(int ambientBouncesDMX) { | |
| 259 | 9 | bool result = setInt(OS_RadianceParametersFields::AmbientBouncesDMX, ambientBouncesDMX); | |
| 260 | 9 | return result; | |
| 261 | } | ||
| 262 | |||
| 263 | 1 | void RadianceParameters_Impl::resetAmbientBouncesDMX() { | |
| 264 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::AmbientBouncesDMX, ""); |
| 265 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 266 | 1 | } | |
| 267 | |||
| 268 | 9 | bool RadianceParameters_Impl::setAmbientDivisionsVMX(int ambientDivisionsVMX) { | |
| 269 | 9 | bool result = setInt(OS_RadianceParametersFields::AmbientDivisionsVMX, ambientDivisionsVMX); | |
| 270 | 9 | return result; | |
| 271 | } | ||
| 272 | |||
| 273 | 1 | void RadianceParameters_Impl::resetAmbientDivisionsVMX() { | |
| 274 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::AmbientDivisionsVMX, ""); |
| 275 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 276 | 1 | } | |
| 277 | |||
| 278 | 9 | bool RadianceParameters_Impl::setAmbientDivisionsDMX(int ambientDivisionsDMX) { | |
| 279 | 9 | bool result = setInt(OS_RadianceParametersFields::AmbientDivisionsDMX, ambientDivisionsDMX); | |
| 280 | 9 | return result; | |
| 281 | } | ||
| 282 | |||
| 283 | 1 | void RadianceParameters_Impl::resetAmbientDivisionsDMX() { | |
| 284 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::AmbientDivisionsDMX, ""); |
| 285 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 286 | 1 | } | |
| 287 | |||
| 288 | 9 | bool RadianceParameters_Impl::setAmbientSupersamples(int ambientSupersamples) { | |
| 289 | 9 | bool result = setInt(OS_RadianceParametersFields::AmbientSupersamples, ambientSupersamples); | |
| 290 | 9 | return result; | |
| 291 | } | ||
| 292 | |||
| 293 | 1 | void RadianceParameters_Impl::resetAmbientSupersamples() { | |
| 294 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::AmbientSupersamples, ""); |
| 295 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 296 | 1 | } | |
| 297 | |||
| 298 | 9 | bool RadianceParameters_Impl::setLimitWeightVMX(double limitWeightVMX) { | |
| 299 | 9 | bool result = setDouble(OS_RadianceParametersFields::LimitWeightVMX, limitWeightVMX); | |
| 300 | 9 | return result; | |
| 301 | } | ||
| 302 | |||
| 303 | 1 | void RadianceParameters_Impl::resetLimitWeightVMX() { | |
| 304 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::LimitWeightVMX, ""); |
| 305 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 306 | 1 | } | |
| 307 | |||
| 308 | 9 | bool RadianceParameters_Impl::setLimitWeightDMX(double limitWeightDMX) { | |
| 309 | 9 | bool result = setDouble(OS_RadianceParametersFields::LimitWeightDMX, limitWeightDMX); | |
| 310 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
|
9 | OS_ASSERT(result); |
| 311 | 9 | return result; | |
| 312 | } | ||
| 313 | |||
| 314 | 1 | void RadianceParameters_Impl::resetLimitWeightDMX() { | |
| 315 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::LimitWeightDMX, ""); |
| 316 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 317 | 1 | } | |
| 318 | |||
| 319 | 9 | bool RadianceParameters_Impl::setKlemsSamplingDensity(int klemsSamplingDensity) { | |
| 320 | 9 | bool result = setInt(OS_RadianceParametersFields::KlemsSamplingDensity, klemsSamplingDensity); | |
| 321 | 9 | return result; | |
| 322 | } | ||
| 323 | |||
| 324 | 1 | void RadianceParameters_Impl::resetKlemsSamplingDensity() { | |
| 325 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_RadianceParametersFields::KlemsSamplingDensity, ""); |
| 326 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 327 | 1 | } | |
| 328 | |||
| 329 | 7 | void RadianceParameters_Impl::applyCoarseSettings() { | |
| 330 | 7 | setAccumulatedRaysperRecord(1); | |
| 331 | 7 | setDirectThreshold(0.0); | |
| 332 | 7 | setDirectCertainty(1.0); | |
| 333 | 7 | setDirectJitter(1.0); | |
| 334 | 7 | setDirectPretest(1.0); | |
| 335 | 7 | setAmbientBouncesVMX(6); | |
| 336 | 7 | setAmbientBouncesDMX(2); | |
| 337 | 7 | setAmbientDivisionsVMX(4050); | |
| 338 | 7 | setAmbientDivisionsDMX(512); | |
| 339 | 7 | setAmbientSupersamples(256); | |
| 340 | 7 | setLimitWeightVMX(0.001); | |
| 341 | 7 | setLimitWeightDMX(0.001); | |
| 342 | 7 | setKlemsSamplingDensity(500); | |
| 343 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | setSkyDiscretizationResolution("146"); |
| 344 | 7 | } | |
| 345 | |||
| 346 | 2 | bool RadianceParameters_Impl::isCoarseSettings() { | |
| 347 | 2 | bool result = false; | |
| 348 | |||
| 349 |
8/12✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 2 times.
✓ Branch 8 taken 2 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 2 times.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 2 times.
✓ Branch 18 taken 2 times.
✗ Branch 19 not taken.
|
2 | if (accumulatedRaysperRecord() == 1 && directThreshold() == 0.0 && directCertainty() == 1.0 && directJitter() == 1.0 && directPretest() == 1.0 |
| 350 |
9/12✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
✓ Branch 11 taken 1 time.
✓ Branch 13 taken 1 time.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 time.
✓ Branch 18 taken 1 time.
✗ Branch 19 not taken.
|
2 | && ambientBouncesVMX() == 6 && ambientBouncesDMX() == 2 && ambientDivisionsVMX() == 4050 && ambientDivisionsDMX() == 512 |
| 351 |
8/12✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
✓ Branch 6 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
✓ Branch 11 taken 1 time.
✓ Branch 13 taken 1 time.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 time.
✓ Branch 18 taken 1 time.
✗ Branch 19 not taken.
|
1 | && ambientSupersamples() == 256 && limitWeightVMX() == 0.001 && limitWeightDMX() == 0.001 && klemsSamplingDensity() == 500 |
| 352 |
9/13✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 1 time.
✓ Branch 9 taken 1 time.
✓ Branch 11 taken 1 time.
✗ Branch 12 not taken.
✓ Branch 13 taken 1 time.
✓ Branch 14 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 17 taken 1 time.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
|
4 | && skyDiscretizationResolution() == "146") { |
| 353 | 1 | result = true; | |
| 354 | } | ||
| 355 | |||
| 356 | 2 | return result; | |
| 357 | } | ||
| 358 | |||
| 359 | 1 | void RadianceParameters_Impl::applyFineSettings() { | |
| 360 | 1 | setAccumulatedRaysperRecord(1); | |
| 361 | 1 | setDirectThreshold(0.0); | |
| 362 | 1 | setDirectCertainty(1.0); | |
| 363 | 1 | setDirectJitter(1.0); | |
| 364 | 1 | setDirectPretest(1.0); | |
| 365 | 1 | setAmbientBouncesVMX(10); | |
| 366 | 1 | setAmbientBouncesDMX(3); | |
| 367 | 1 | setAmbientDivisionsVMX(65536); | |
| 368 | 1 | setAmbientDivisionsDMX(1024); | |
| 369 | 1 | setAmbientSupersamples(512); | |
| 370 | 1 | setLimitWeightVMX(0.0000152); | |
| 371 | 1 | setLimitWeightDMX(0.0001); | |
| 372 | 1 | setKlemsSamplingDensity(1000); | |
| 373 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setSkyDiscretizationResolution("2306"); |
| 374 | 1 | } | |
| 375 | |||
| 376 | 2 | bool RadianceParameters_Impl::isFineSettings() { | |
| 377 | 2 | bool result = false; | |
| 378 | |||
| 379 |
8/12✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 2 times.
✓ Branch 8 taken 2 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 2 times.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 2 times.
✓ Branch 18 taken 2 times.
✗ Branch 19 not taken.
|
2 | if (accumulatedRaysperRecord() == 1 && directThreshold() == 0.0 && directCertainty() == 1.0 && directJitter() == 1.0 && directPretest() == 1.0 |
| 380 |
8/12✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 2 times.
✓ Branch 8 taken 2 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 2 times.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 2 times.
✓ Branch 18 taken 2 times.
✗ Branch 19 not taken.
|
2 | && ambientBouncesVMX() == 10 && ambientBouncesDMX() == 3 && ambientDivisionsVMX() == 65536 && ambientDivisionsDMX() == 1024 |
| 381 |
8/12✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 2 times.
✓ Branch 8 taken 2 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 2 times.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 2 times.
✓ Branch 18 taken 2 times.
✗ Branch 19 not taken.
|
2 | && ambientSupersamples() == 512 && limitWeightVMX() == 0.0000152 && limitWeightDMX() == 0.0001 && klemsSamplingDensity() == 1000 |
| 382 |
9/13✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 2 times.
✓ Branch 9 taken 2 times.
✓ Branch 11 taken 1 time.
✓ Branch 12 taken 1 time.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 time.
✓ Branch 17 taken 1 time.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
|
4 | && skyDiscretizationResolution() == "2306") { |
| 383 | 1 | result = true; | |
| 384 | } | ||
| 385 | |||
| 386 | 2 | return result; | |
| 387 | } | ||
| 388 | |||
| 389 | } // namespace detail | ||
| 390 | |||
| 391 | 7657 | IddObjectType RadianceParameters::iddObjectType() { | |
| 392 |
1/1✓ Branch 1 taken 7657 times.
|
7657 | return {IddObjectType::OS_RadianceParameters}; |
| 393 | } | ||
| 394 | |||
| 395 | 3 | int RadianceParameters::accumulatedRaysperRecord() const { | |
| 396 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RadianceParameters_Impl>()->accumulatedRaysperRecord(); |
| 397 | } | ||
| 398 | |||
| 399 | ✗ | bool RadianceParameters::isAccumulatedRaysperRecordDefaulted() const { | |
| 400 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isAccumulatedRaysperRecordDefaulted(); | |
| 401 | } | ||
| 402 | |||
| 403 | 9 | double RadianceParameters::directThreshold() const { | |
| 404 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::RadianceParameters_Impl>()->directThreshold(); |
| 405 | } | ||
| 406 | |||
| 407 | ✗ | bool RadianceParameters::isDirectThresholdDefaulted() const { | |
| 408 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isDirectThresholdDefaulted(); | |
| 409 | } | ||
| 410 | |||
| 411 | 9 | double RadianceParameters::directCertainty() const { | |
| 412 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::RadianceParameters_Impl>()->directCertainty(); |
| 413 | } | ||
| 414 | |||
| 415 | ✗ | bool RadianceParameters::isDirectCertaintyDefaulted() const { | |
| 416 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isDirectCertaintyDefaulted(); | |
| 417 | } | ||
| 418 | |||
| 419 | 9 | double RadianceParameters::directJitter() const { | |
| 420 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::RadianceParameters_Impl>()->directJitter(); |
| 421 | } | ||
| 422 | |||
| 423 | ✗ | bool RadianceParameters::isDirectJitterDefaulted() const { | |
| 424 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isDirectJitterDefaulted(); | |
| 425 | } | ||
| 426 | |||
| 427 | 9 | double RadianceParameters::directPretest() const { | |
| 428 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::RadianceParameters_Impl>()->directPretest(); |
| 429 | } | ||
| 430 | |||
| 431 | ✗ | bool RadianceParameters::isDirectPretestDefaulted() const { | |
| 432 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isDirectPretestDefaulted(); | |
| 433 | } | ||
| 434 | |||
| 435 | 6 | int RadianceParameters::ambientBouncesVMX() const { | |
| 436 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RadianceParameters_Impl>()->ambientBouncesVMX(); |
| 437 | } | ||
| 438 | |||
| 439 | ✗ | bool RadianceParameters::isAmbientBouncesVMXDefaulted() const { | |
| 440 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isAmbientBouncesVMXDefaulted(); | |
| 441 | } | ||
| 442 | |||
| 443 | 6 | int RadianceParameters::ambientBouncesDMX() const { | |
| 444 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RadianceParameters_Impl>()->ambientBouncesDMX(); |
| 445 | } | ||
| 446 | |||
| 447 | ✗ | bool RadianceParameters::isAmbientBouncesDMXDefaulted() const { | |
| 448 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isAmbientBouncesDMXDefaulted(); | |
| 449 | } | ||
| 450 | |||
| 451 | 6 | int RadianceParameters::ambientDivisionsVMX() const { | |
| 452 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RadianceParameters_Impl>()->ambientDivisionsVMX(); |
| 453 | } | ||
| 454 | |||
| 455 | ✗ | bool RadianceParameters::isAmbientDivisionsVMXDefaulted() const { | |
| 456 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isAmbientDivisionsVMXDefaulted(); | |
| 457 | } | ||
| 458 | |||
| 459 | 6 | int RadianceParameters::ambientDivisionsDMX() const { | |
| 460 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RadianceParameters_Impl>()->ambientDivisionsDMX(); |
| 461 | } | ||
| 462 | |||
| 463 | ✗ | bool RadianceParameters::isAmbientDivisionsDMXDefaulted() const { | |
| 464 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isAmbientDivisionsDMXDefaulted(); | |
| 465 | } | ||
| 466 | |||
| 467 | 9 | int RadianceParameters::ambientSupersamples() const { | |
| 468 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::RadianceParameters_Impl>()->ambientSupersamples(); |
| 469 | } | ||
| 470 | |||
| 471 | ✗ | bool RadianceParameters::isAmbientSupersamplesDefaulted() const { | |
| 472 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isAmbientSupersamplesDefaulted(); | |
| 473 | } | ||
| 474 | |||
| 475 | 6 | double RadianceParameters::limitWeightVMX() const { | |
| 476 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RadianceParameters_Impl>()->limitWeightVMX(); |
| 477 | } | ||
| 478 | |||
| 479 | ✗ | bool RadianceParameters::isLimitWeightVMXDefaulted() const { | |
| 480 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isLimitWeightVMXDefaulted(); | |
| 481 | } | ||
| 482 | |||
| 483 | 6 | double RadianceParameters::limitWeightDMX() const { | |
| 484 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RadianceParameters_Impl>()->limitWeightDMX(); |
| 485 | } | ||
| 486 | |||
| 487 | ✗ | bool RadianceParameters::isLimitWeightDMXDefaulted() const { | |
| 488 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isLimitWeightDMXDefaulted(); | |
| 489 | } | ||
| 490 | |||
| 491 | 6 | int RadianceParameters::klemsSamplingDensity() const { | |
| 492 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RadianceParameters_Impl>()->klemsSamplingDensity(); |
| 493 | } | ||
| 494 | |||
| 495 | ✗ | bool RadianceParameters::isKlemsSamplingDensityDefaulted() const { | |
| 496 | ✗ | return getImpl<detail::RadianceParameters_Impl>()->isKlemsSamplingDensityDefaulted(); | |
| 497 | } | ||
| 498 | |||
| 499 | ✗ | std::vector<std::string> RadianceParameters::skyDiscretizationResolutionValues() { | |
| 500 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_RadianceParametersFields::SkyDiscretizationResolution); | |
| 501 | } | ||
| 502 | |||
| 503 | 4 | std::string RadianceParameters::skyDiscretizationResolution() const { | |
| 504 | 4 | auto impl = getImpl<detail::RadianceParameters_Impl>(); | |
| 505 |
1/1✓ Branch 2 taken 4 times.
|
8 | return impl->skyDiscretizationResolution(); |
| 506 | 4 | } | |
| 507 | |||
| 508 | 3 | bool RadianceParameters::setSkyDiscretizationResolution(const std::string& skyDiscretizationResolution) { | |
| 509 | 3 | auto impl = getImpl<detail::RadianceParameters_Impl>(); | |
| 510 |
1/1✓ Branch 2 taken 3 times.
|
6 | return impl->setSkyDiscretizationResolution(skyDiscretizationResolution); |
| 511 | 3 | } | |
| 512 | |||
| 513 | ✗ | void RadianceParameters::resetSkyDiscretizationResolution() { | |
| 514 | ✗ | getImpl<detail::RadianceParameters_Impl>()->resetSkyDiscretizationResolution(); | |
| 515 | ✗ | } | |
| 516 | |||
| 517 | 1 | bool RadianceParameters::setAccumulatedRaysperRecord(int accumulatedRaysperRecord) { | |
| 518 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setAccumulatedRaysperRecord(accumulatedRaysperRecord); |
| 519 | } | ||
| 520 | |||
| 521 | 1 | void RadianceParameters::resetAccumulatedRaysperRecord() { | |
| 522 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetAccumulatedRaysperRecord(); |
| 523 | 1 | } | |
| 524 | |||
| 525 | 1 | bool RadianceParameters::setDirectThreshold(double directThreshold) { | |
| 526 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setDirectThreshold(directThreshold); |
| 527 | } | ||
| 528 | |||
| 529 | 1 | void RadianceParameters::resetDirectThreshold() { | |
| 530 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetDirectThreshold(); |
| 531 | 1 | } | |
| 532 | |||
| 533 | 1 | bool RadianceParameters::setDirectCertainty(double directCertainty) { | |
| 534 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setDirectCertainty(directCertainty); |
| 535 | } | ||
| 536 | |||
| 537 | 1 | void RadianceParameters::resetDirectCertainty() { | |
| 538 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetDirectCertainty(); |
| 539 | 1 | } | |
| 540 | |||
| 541 | 1 | bool RadianceParameters::setDirectJitter(double directJitter) { | |
| 542 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setDirectJitter(directJitter); |
| 543 | } | ||
| 544 | |||
| 545 | 1 | void RadianceParameters::resetDirectJitter() { | |
| 546 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetDirectJitter(); |
| 547 | 1 | } | |
| 548 | |||
| 549 | 1 | bool RadianceParameters::setDirectPretest(double directPretest) { | |
| 550 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setDirectPretest(directPretest); |
| 551 | } | ||
| 552 | |||
| 553 | 1 | void RadianceParameters::resetDirectPretest() { | |
| 554 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetDirectPretest(); |
| 555 | 1 | } | |
| 556 | |||
| 557 | 1 | bool RadianceParameters::setAmbientBouncesVMX(int ambientBouncesVMX) { | |
| 558 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setAmbientBouncesVMX(ambientBouncesVMX); |
| 559 | } | ||
| 560 | |||
| 561 | 1 | void RadianceParameters::resetAmbientBouncesVMX() { | |
| 562 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetAmbientBouncesVMX(); |
| 563 | 1 | } | |
| 564 | |||
| 565 | 1 | bool RadianceParameters::setAmbientBouncesDMX(int ambientBouncesDMX) { | |
| 566 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setAmbientBouncesDMX(ambientBouncesDMX); |
| 567 | } | ||
| 568 | |||
| 569 | 1 | void RadianceParameters::resetAmbientBouncesDMX() { | |
| 570 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetAmbientBouncesDMX(); |
| 571 | 1 | } | |
| 572 | |||
| 573 | 1 | bool RadianceParameters::setAmbientDivisionsVMX(int ambientDivisionsVMX) { | |
| 574 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setAmbientDivisionsVMX(ambientDivisionsVMX); |
| 575 | } | ||
| 576 | |||
| 577 | 1 | void RadianceParameters::resetAmbientDivisionsVMX() { | |
| 578 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetAmbientDivisionsVMX(); |
| 579 | 1 | } | |
| 580 | |||
| 581 | 1 | bool RadianceParameters::setAmbientDivisionsDMX(int ambientDivisionsDMX) { | |
| 582 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setAmbientDivisionsDMX(ambientDivisionsDMX); |
| 583 | } | ||
| 584 | |||
| 585 | 1 | void RadianceParameters::resetAmbientDivisionsDMX() { | |
| 586 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetAmbientDivisionsDMX(); |
| 587 | 1 | } | |
| 588 | |||
| 589 | 1 | bool RadianceParameters::setAmbientSupersamples(int ambientSupersamples) { | |
| 590 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setAmbientSupersamples(ambientSupersamples); |
| 591 | } | ||
| 592 | |||
| 593 | 1 | void RadianceParameters::resetAmbientSupersamples() { | |
| 594 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetAmbientSupersamples(); |
| 595 | 1 | } | |
| 596 | |||
| 597 | 1 | bool RadianceParameters::setLimitWeightVMX(double limitWeightVMX) { | |
| 598 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setLimitWeightVMX(limitWeightVMX); |
| 599 | } | ||
| 600 | |||
| 601 | 1 | void RadianceParameters::resetLimitWeightVMX() { | |
| 602 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetLimitWeightVMX(); |
| 603 | 1 | } | |
| 604 | |||
| 605 | 1 | bool RadianceParameters::setLimitWeightDMX(double limitWeightDMX) { | |
| 606 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setLimitWeightDMX(limitWeightDMX); |
| 607 | } | ||
| 608 | |||
| 609 | 1 | void RadianceParameters::resetLimitWeightDMX() { | |
| 610 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetLimitWeightDMX(); |
| 611 | 1 | } | |
| 612 | |||
| 613 | 1 | bool RadianceParameters::setKlemsSamplingDensity(int klemsSamplingDensity) { | |
| 614 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RadianceParameters_Impl>()->setKlemsSamplingDensity(klemsSamplingDensity); |
| 615 | } | ||
| 616 | |||
| 617 | 1 | void RadianceParameters::resetKlemsSamplingDensity() { | |
| 618 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->resetKlemsSamplingDensity(); |
| 619 | 1 | } | |
| 620 | |||
| 621 | 7 | void RadianceParameters::applyCoarseSettings() { | |
| 622 |
1/1✓ Branch 3 taken 7 times.
|
7 | getImpl<detail::RadianceParameters_Impl>()->applyCoarseSettings(); |
| 623 | 7 | } | |
| 624 | |||
| 625 | 2 | bool RadianceParameters::isCoarseSettings() { | |
| 626 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RadianceParameters_Impl>()->isCoarseSettings(); |
| 627 | } | ||
| 628 | |||
| 629 | 1 | void RadianceParameters::applyFineSettings() { | |
| 630 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RadianceParameters_Impl>()->applyFineSettings(); |
| 631 | 1 | } | |
| 632 | |||
| 633 | 2 | bool RadianceParameters::isFineSettings() { | |
| 634 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RadianceParameters_Impl>()->isFineSettings(); |
| 635 | } | ||
| 636 | |||
| 637 | /// @cond | ||
| 638 |
1/1✓ Branch 3 taken 8 times.
|
8 | RadianceParameters::RadianceParameters(std::shared_ptr<detail::RadianceParameters_Impl> impl) : ModelObject(std::move(impl)) {} |
| 639 | |||
| 640 | 7 | RadianceParameters::RadianceParameters(Model& model) : ModelObject(RadianceParameters::iddObjectType(), model) { | |
| 641 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 7 times.
✗ Branch 5 not taken.
|
7 | OS_ASSERT(getImpl<detail::RadianceParameters_Impl>()); |
| 642 | |||
| 643 |
1/1✓ Branch 1 taken 7 times.
|
7 | applyCoarseSettings(); |
| 644 | 7 | } | |
| 645 | |||
| 646 | /// @endcond | ||
| 647 | |||
| 648 | } // namespace model | ||
| 649 | } // namespace openstudio | ||
| 650 |