src/model/Blind.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 "Blind.hpp" | ||
| 7 | #include "Blind_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/IddFactory.hxx> | ||
| 10 | |||
| 11 | #include <utilities/idd/OS_WindowMaterial_Blind_FieldEnums.hxx> | ||
| 12 | #include <utilities/idd/IddEnums.hxx> | ||
| 13 | |||
| 14 | #include "../utilities/units/Unit.hpp" | ||
| 15 | |||
| 16 | #include "../utilities/core/Assert.hpp" | ||
| 17 | |||
| 18 | namespace openstudio { | ||
| 19 | namespace model { | ||
| 20 | |||
| 21 | namespace detail { | ||
| 22 | |||
| 23 | 17 | Blind_Impl::Blind_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) : ShadingMaterial_Impl(idfObject, model, keepHandle) { | |
| 24 |
4/6✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 17 times.
✗ Branch 13 not taken.
|
17 | OS_ASSERT(idfObject.iddObject().type() == Blind::iddObjectType()); |
| 25 | 17 | } | |
| 26 | |||
| 27 | 2 | Blind_Impl::Blind_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 28 | 2 | : ShadingMaterial_Impl(other, model, keepHandle) { | |
| 29 |
4/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
✗ Branch 13 not taken.
|
2 | OS_ASSERT(other.iddObject().type() == Blind::iddObjectType()); |
| 30 | 2 | } | |
| 31 | |||
| 32 | 8 | Blind_Impl::Blind_Impl(const Blind_Impl& other, Model_Impl* model, bool keepHandle) : ShadingMaterial_Impl(other, model, keepHandle) {} | |
| 33 | |||
| 34 | ✗ | double Blind_Impl::thickness() const { | |
| 35 | ✗ | OptionalDouble od = getDouble(OS_WindowMaterial_BlindFields::SlatThickness, true); | |
| 36 | ✗ | if (!od) { | |
| 37 | ✗ | LOG_AND_THROW("Slat thickness not yet set for " << briefDescription() << "."); | |
| 38 | } | ||
| 39 | ✗ | return *od; | |
| 40 | } | ||
| 41 | |||
| 42 | ✗ | OptionalDouble Blind_Impl::getVisibleTransmittance() const { | |
| 43 | ✗ | LOG_AND_THROW("Visible transmittance not supported for blinds."); | |
| 44 | OptionalDouble od(false); | ||
| 45 | return od; | ||
| 46 | } | ||
| 47 | |||
| 48 | ✗ | const std::vector<std::string>& Blind_Impl::outputVariableNames() const { | |
| 49 | ✗ | static const std::vector<std::string> result; | |
| 50 | ✗ | return result; | |
| 51 | } | ||
| 52 | |||
| 53 | ✗ | IddObjectType Blind_Impl::iddObjectType() const { | |
| 54 | ✗ | return Blind::iddObjectType(); | |
| 55 | } | ||
| 56 | |||
| 57 | ✗ | bool Blind_Impl::setThickness(double value) { | |
| 58 | ✗ | return setDouble(OS_WindowMaterial_BlindFields::SlatThickness, value); | |
| 59 | } | ||
| 60 | |||
| 61 | 3 | std::string Blind_Impl::slatOrientation() const { | |
| 62 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_WindowMaterial_BlindFields::SlatOrientation, true); |
| 63 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 64 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | return value.get(); |
| 65 | 3 | } | |
| 66 | |||
| 67 | ✗ | bool Blind_Impl::isSlatOrientationDefaulted() const { | |
| 68 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::SlatOrientation); | |
| 69 | } | ||
| 70 | |||
| 71 | 2 | double Blind_Impl::slatWidth() const { | |
| 72 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatWidth, true); |
| 73 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 74 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 75 | } | ||
| 76 | |||
| 77 | 2 | double Blind_Impl::slatSeparation() const { | |
| 78 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatSeparation, true); |
| 79 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 80 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 81 | } | ||
| 82 | |||
| 83 | 3 | double Blind_Impl::slatThickness() const { | |
| 84 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatThickness, true); |
| 85 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 86 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 87 | } | ||
| 88 | |||
| 89 | ✗ | bool Blind_Impl::isSlatThicknessDefaulted() const { | |
| 90 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::SlatThickness); | |
| 91 | } | ||
| 92 | |||
| 93 | 3 | double Blind_Impl::slatAngle() const { | |
| 94 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatAngle, true); |
| 95 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 96 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 97 | } | ||
| 98 | |||
| 99 | ✗ | bool Blind_Impl::isSlatAngleDefaulted() const { | |
| 100 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::SlatAngle); | |
| 101 | } | ||
| 102 | |||
| 103 | 3 | double Blind_Impl::slatConductivity() const { | |
| 104 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatConductivity, true); |
| 105 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 106 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 107 | } | ||
| 108 | |||
| 109 | ✗ | bool Blind_Impl::isSlatConductivityDefaulted() const { | |
| 110 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::SlatConductivity); | |
| 111 | } | ||
| 112 | |||
| 113 | 3 | double Blind_Impl::slatBeamSolarTransmittance() const { | |
| 114 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatBeamSolarTransmittance, true); |
| 115 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 116 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 117 | } | ||
| 118 | |||
| 119 | ✗ | bool Blind_Impl::isSlatBeamSolarTransmittanceDefaulted() const { | |
| 120 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::SlatBeamSolarTransmittance); | |
| 121 | } | ||
| 122 | |||
| 123 | 2 | double Blind_Impl::frontSideSlatBeamSolarReflectance() const { | |
| 124 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::FrontSideSlatBeamSolarReflectance, true); |
| 125 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 126 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 127 | } | ||
| 128 | |||
| 129 | 2 | double Blind_Impl::backSideSlatBeamSolarReflectance() const { | |
| 130 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::BackSideSlatBeamSolarReflectance, true); |
| 131 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 132 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 133 | } | ||
| 134 | |||
| 135 | 2 | double Blind_Impl::slatDiffuseSolarTransmittance() const { | |
| 136 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatDiffuseSolarTransmittance, true); |
| 137 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 138 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 139 | } | ||
| 140 | |||
| 141 | ✗ | bool Blind_Impl::isSlatDiffuseSolarTransmittanceDefaulted() const { | |
| 142 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::SlatDiffuseSolarTransmittance); | |
| 143 | } | ||
| 144 | |||
| 145 | 2 | double Blind_Impl::frontSideSlatDiffuseSolarReflectance() const { | |
| 146 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::FrontSideSlatDiffuseSolarReflectance, true); |
| 147 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 148 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 149 | } | ||
| 150 | |||
| 151 | 2 | double Blind_Impl::backSideSlatDiffuseSolarReflectance() const { | |
| 152 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::BackSideSlatDiffuseSolarReflectance, true); |
| 153 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 154 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 155 | } | ||
| 156 | |||
| 157 | 2 | double Blind_Impl::slatBeamVisibleTransmittance() const { | |
| 158 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatBeamVisibleTransmittance, true); |
| 159 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 160 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 161 | } | ||
| 162 | |||
| 163 | 3 | boost::optional<double> Blind_Impl::frontSideSlatBeamVisibleReflectance() const { | |
| 164 | 3 | return getDouble(OS_WindowMaterial_BlindFields::FrontSideSlatBeamVisibleReflectance, true); | |
| 165 | } | ||
| 166 | |||
| 167 | 3 | boost::optional<double> Blind_Impl::backSideSlatBeamVisibleReflectance() const { | |
| 168 | 3 | return getDouble(OS_WindowMaterial_BlindFields::BackSideSlatBeamVisibleReflectance, true); | |
| 169 | } | ||
| 170 | |||
| 171 | 3 | double Blind_Impl::slatDiffuseVisibleTransmittance() const { | |
| 172 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatDiffuseVisibleTransmittance, true); |
| 173 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 174 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 175 | } | ||
| 176 | |||
| 177 | ✗ | bool Blind_Impl::isSlatDiffuseVisibleTransmittanceDefaulted() const { | |
| 178 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::SlatDiffuseVisibleTransmittance); | |
| 179 | } | ||
| 180 | |||
| 181 | 3 | boost::optional<double> Blind_Impl::frontSideSlatDiffuseVisibleReflectance() const { | |
| 182 | 3 | return getDouble(OS_WindowMaterial_BlindFields::FrontSideSlatDiffuseVisibleReflectance, true); | |
| 183 | } | ||
| 184 | |||
| 185 | 3 | boost::optional<double> Blind_Impl::backSideSlatDiffuseVisibleReflectance() const { | |
| 186 | 3 | return getDouble(OS_WindowMaterial_BlindFields::BackSideSlatDiffuseVisibleReflectance, true); | |
| 187 | } | ||
| 188 | |||
| 189 | 3 | double Blind_Impl::slatInfraredHemisphericalTransmittance() const { | |
| 190 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::SlatInfraredHemisphericalTransmittance, true); |
| 191 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 192 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 193 | } | ||
| 194 | |||
| 195 | ✗ | bool Blind_Impl::isSlatInfraredHemisphericalTransmittanceDefaulted() const { | |
| 196 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::SlatInfraredHemisphericalTransmittance); | |
| 197 | } | ||
| 198 | |||
| 199 | 3 | double Blind_Impl::frontSideSlatInfraredHemisphericalEmissivity() const { | |
| 200 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::FrontSideSlatInfraredHemisphericalEmissivity, true); |
| 201 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 202 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 203 | } | ||
| 204 | |||
| 205 | ✗ | bool Blind_Impl::isFrontSideSlatInfraredHemisphericalEmissivityDefaulted() const { | |
| 206 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::FrontSideSlatInfraredHemisphericalEmissivity); | |
| 207 | } | ||
| 208 | |||
| 209 | 3 | double Blind_Impl::backSideSlatInfraredHemisphericalEmissivity() const { | |
| 210 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::BackSideSlatInfraredHemisphericalEmissivity, true); |
| 211 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 212 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 213 | } | ||
| 214 | |||
| 215 | ✗ | bool Blind_Impl::isBackSideSlatInfraredHemisphericalEmissivityDefaulted() const { | |
| 216 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::BackSideSlatInfraredHemisphericalEmissivity); | |
| 217 | } | ||
| 218 | |||
| 219 | 3 | double Blind_Impl::blindtoGlassDistance() const { | |
| 220 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::BlindtoGlassDistance, true); |
| 221 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 222 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 223 | } | ||
| 224 | |||
| 225 | ✗ | bool Blind_Impl::isBlindtoGlassDistanceDefaulted() const { | |
| 226 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::BlindtoGlassDistance); | |
| 227 | } | ||
| 228 | |||
| 229 | 3 | double Blind_Impl::blindTopOpeningMultiplier() const { | |
| 230 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::BlindTopOpeningMultiplier, true); |
| 231 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 232 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 233 | } | ||
| 234 | |||
| 235 | ✗ | bool Blind_Impl::isBlindTopOpeningMultiplierDefaulted() const { | |
| 236 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::BlindTopOpeningMultiplier); | |
| 237 | } | ||
| 238 | |||
| 239 | 3 | double Blind_Impl::blindBottomOpeningMultiplier() const { | |
| 240 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::BlindBottomOpeningMultiplier, true); |
| 241 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 242 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 243 | } | ||
| 244 | |||
| 245 | ✗ | bool Blind_Impl::isBlindBottomOpeningMultiplierDefaulted() const { | |
| 246 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::BlindBottomOpeningMultiplier); | |
| 247 | } | ||
| 248 | |||
| 249 | 3 | double Blind_Impl::blindLeftSideOpeningMultiplier() const { | |
| 250 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::BlindLeftSideOpeningMultiplier, true); |
| 251 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 252 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 253 | } | ||
| 254 | |||
| 255 | ✗ | bool Blind_Impl::isBlindLeftSideOpeningMultiplierDefaulted() const { | |
| 256 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::BlindLeftSideOpeningMultiplier); | |
| 257 | } | ||
| 258 | |||
| 259 | 3 | double Blind_Impl::blindRightSideOpeningMultiplier() const { | |
| 260 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::BlindRightSideOpeningMultiplier, true); |
| 261 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 262 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 263 | } | ||
| 264 | |||
| 265 | ✗ | bool Blind_Impl::isBlindRightSideOpeningMultiplierDefaulted() const { | |
| 266 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::BlindRightSideOpeningMultiplier); | |
| 267 | } | ||
| 268 | |||
| 269 | 3 | double Blind_Impl::minimumSlatAngle() const { | |
| 270 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::MinimumSlatAngle, true); |
| 271 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 272 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 273 | } | ||
| 274 | |||
| 275 | ✗ | bool Blind_Impl::isMinimumSlatAngleDefaulted() const { | |
| 276 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::MinimumSlatAngle); | |
| 277 | } | ||
| 278 | |||
| 279 | 3 | double Blind_Impl::maximumSlatAngle() const { | |
| 280 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_BlindFields::MaximumSlatAngle, true); |
| 281 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 282 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 283 | } | ||
| 284 | |||
| 285 | ✗ | bool Blind_Impl::isMaximumSlatAngleDefaulted() const { | |
| 286 | ✗ | return isEmpty(OS_WindowMaterial_BlindFields::MaximumSlatAngle); | |
| 287 | } | ||
| 288 | |||
| 289 | 2 | bool Blind_Impl::setSlatOrientation(const std::string& slatOrientation) { | |
| 290 | 2 | bool result = setString(OS_WindowMaterial_BlindFields::SlatOrientation, slatOrientation); | |
| 291 | 2 | return result; | |
| 292 | } | ||
| 293 | |||
| 294 | ✗ | void Blind_Impl::resetSlatOrientation() { | |
| 295 | ✗ | bool result = setString(OS_WindowMaterial_BlindFields::SlatOrientation, ""); | |
| 296 | ✗ | OS_ASSERT(result); | |
| 297 | ✗ | } | |
| 298 | |||
| 299 | 16 | bool Blind_Impl::setSlatWidth(double slatWidth) { | |
| 300 | 16 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatWidth, slatWidth); | |
| 301 | 16 | return result; | |
| 302 | } | ||
| 303 | |||
| 304 | 16 | bool Blind_Impl::setSlatSeparation(double slatSeparation) { | |
| 305 | 16 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatSeparation, slatSeparation); | |
| 306 | 16 | return result; | |
| 307 | } | ||
| 308 | |||
| 309 | 1 | bool Blind_Impl::setSlatThickness(double slatThickness) { | |
| 310 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatThickness, slatThickness); | |
| 311 | 1 | return result; | |
| 312 | } | ||
| 313 | |||
| 314 | 1 | void Blind_Impl::resetSlatThickness() { | |
| 315 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::SlatThickness, ""); |
| 316 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 317 | 1 | } | |
| 318 | |||
| 319 | 1 | bool Blind_Impl::setSlatAngle(double slatAngle) { | |
| 320 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatAngle, slatAngle); | |
| 321 | 1 | return result; | |
| 322 | } | ||
| 323 | |||
| 324 | 1 | void Blind_Impl::resetSlatAngle() { | |
| 325 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::SlatAngle, ""); |
| 326 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 327 | 1 | } | |
| 328 | |||
| 329 | 1 | bool Blind_Impl::setSlatConductivity(double slatConductivity) { | |
| 330 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatConductivity, slatConductivity); | |
| 331 | 1 | return result; | |
| 332 | } | ||
| 333 | |||
| 334 | 1 | void Blind_Impl::resetSlatConductivity() { | |
| 335 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::SlatConductivity, ""); |
| 336 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 337 | 1 | } | |
| 338 | |||
| 339 | 1 | bool Blind_Impl::setSlatBeamSolarTransmittance(double slatBeamSolarTransmittance) { | |
| 340 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatBeamSolarTransmittance, slatBeamSolarTransmittance); | |
| 341 | 1 | return result; | |
| 342 | } | ||
| 343 | |||
| 344 | 1 | void Blind_Impl::resetSlatBeamSolarTransmittance() { | |
| 345 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::SlatBeamSolarTransmittance, ""); |
| 346 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 347 | 1 | } | |
| 348 | |||
| 349 | 16 | bool Blind_Impl::setFrontSideSlatBeamSolarReflectance(double frontSideSlatBeamSolarReflectance) { | |
| 350 | 16 | bool result = setDouble(OS_WindowMaterial_BlindFields::FrontSideSlatBeamSolarReflectance, frontSideSlatBeamSolarReflectance); | |
| 351 | 16 | return result; | |
| 352 | } | ||
| 353 | |||
| 354 | 16 | bool Blind_Impl::setBackSideSlatBeamSolarReflectance(double backSideSlatBeamSolarReflectance) { | |
| 355 | 16 | bool result = setDouble(OS_WindowMaterial_BlindFields::BackSideSlatBeamSolarReflectance, backSideSlatBeamSolarReflectance); | |
| 356 | 16 | return result; | |
| 357 | } | ||
| 358 | |||
| 359 | 1 | bool Blind_Impl::setSlatDiffuseSolarTransmittance(double slatDiffuseSolarTransmittance) { | |
| 360 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatDiffuseSolarTransmittance, slatDiffuseSolarTransmittance); | |
| 361 | 1 | return result; | |
| 362 | } | ||
| 363 | |||
| 364 | ✗ | void Blind_Impl::resetSlatDiffuseSolarTransmittance() { | |
| 365 | ✗ | bool result = setString(OS_WindowMaterial_BlindFields::SlatDiffuseSolarTransmittance, ""); | |
| 366 | ✗ | OS_ASSERT(result); | |
| 367 | ✗ | } | |
| 368 | |||
| 369 | 16 | bool Blind_Impl::setFrontSideSlatDiffuseSolarReflectance(double frontSideSlatDiffuseSolarReflectance) { | |
| 370 | 16 | bool result = setDouble(OS_WindowMaterial_BlindFields::FrontSideSlatDiffuseSolarReflectance, frontSideSlatDiffuseSolarReflectance); | |
| 371 | 16 | return result; | |
| 372 | } | ||
| 373 | |||
| 374 | 16 | bool Blind_Impl::setBackSideSlatDiffuseSolarReflectance(double backSideSlatDiffuseSolarReflectance) { | |
| 375 | 16 | bool result = setDouble(OS_WindowMaterial_BlindFields::BackSideSlatDiffuseSolarReflectance, backSideSlatDiffuseSolarReflectance); | |
| 376 | 16 | return result; | |
| 377 | } | ||
| 378 | |||
| 379 | 16 | bool Blind_Impl::setSlatBeamVisibleTransmittance(double slatBeamVisibleTransmittance) { | |
| 380 | 16 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatBeamVisibleTransmittance, slatBeamVisibleTransmittance); | |
| 381 | 16 | return result; | |
| 382 | } | ||
| 383 | |||
| 384 | 1 | bool Blind_Impl::setFrontSideSlatBeamVisibleReflectance(boost::optional<double> frontSideSlatBeamVisibleReflectance) { | |
| 385 | 1 | bool result(false); | |
| 386 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (frontSideSlatBeamVisibleReflectance) { |
| 387 | 1 | result = setDouble(OS_WindowMaterial_BlindFields::FrontSideSlatBeamVisibleReflectance, frontSideSlatBeamVisibleReflectance.get()); | |
| 388 | } else { | ||
| 389 | ✗ | resetFrontSideSlatBeamVisibleReflectance(); | |
| 390 | ✗ | result = true; | |
| 391 | } | ||
| 392 | 1 | return result; | |
| 393 | } | ||
| 394 | |||
| 395 | 1 | void Blind_Impl::resetFrontSideSlatBeamVisibleReflectance() { | |
| 396 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::FrontSideSlatBeamVisibleReflectance, ""); |
| 397 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 398 | 1 | } | |
| 399 | |||
| 400 | 1 | bool Blind_Impl::setBackSideSlatBeamVisibleReflectance(boost::optional<double> backSideSlatBeamVisibleReflectance) { | |
| 401 | 1 | bool result(false); | |
| 402 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (backSideSlatBeamVisibleReflectance) { |
| 403 | 1 | result = setDouble(OS_WindowMaterial_BlindFields::BackSideSlatBeamVisibleReflectance, backSideSlatBeamVisibleReflectance.get()); | |
| 404 | } else { | ||
| 405 | ✗ | resetBackSideSlatBeamVisibleReflectance(); | |
| 406 | ✗ | result = true; | |
| 407 | } | ||
| 408 | 1 | return result; | |
| 409 | } | ||
| 410 | |||
| 411 | 1 | void Blind_Impl::resetBackSideSlatBeamVisibleReflectance() { | |
| 412 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::BackSideSlatBeamVisibleReflectance, ""); |
| 413 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 414 | 1 | } | |
| 415 | |||
| 416 | 1 | bool Blind_Impl::setSlatDiffuseVisibleTransmittance(double slatDiffuseVisibleTransmittance) { | |
| 417 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatDiffuseVisibleTransmittance, slatDiffuseVisibleTransmittance); | |
| 418 | 1 | return result; | |
| 419 | } | ||
| 420 | |||
| 421 | 1 | void Blind_Impl::resetSlatDiffuseVisibleTransmittance() { | |
| 422 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::SlatDiffuseVisibleTransmittance, ""); |
| 423 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 424 | 1 | } | |
| 425 | |||
| 426 | 1 | bool Blind_Impl::setFrontSideSlatDiffuseVisibleReflectance(boost::optional<double> frontSideSlatDiffuseVisibleReflectance) { | |
| 427 | 1 | bool result(false); | |
| 428 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (frontSideSlatDiffuseVisibleReflectance) { |
| 429 | 1 | result = setDouble(OS_WindowMaterial_BlindFields::FrontSideSlatDiffuseVisibleReflectance, frontSideSlatDiffuseVisibleReflectance.get()); | |
| 430 | } else { | ||
| 431 | ✗ | resetFrontSideSlatDiffuseVisibleReflectance(); | |
| 432 | ✗ | result = true; | |
| 433 | } | ||
| 434 | 1 | return result; | |
| 435 | } | ||
| 436 | |||
| 437 | 1 | void Blind_Impl::resetFrontSideSlatDiffuseVisibleReflectance() { | |
| 438 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::FrontSideSlatDiffuseVisibleReflectance, ""); |
| 439 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 440 | 1 | } | |
| 441 | |||
| 442 | 1 | bool Blind_Impl::setBackSideSlatDiffuseVisibleReflectance(boost::optional<double> backSideSlatDiffuseVisibleReflectance) { | |
| 443 | 1 | bool result(false); | |
| 444 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (backSideSlatDiffuseVisibleReflectance) { |
| 445 | 1 | result = setDouble(OS_WindowMaterial_BlindFields::BackSideSlatDiffuseVisibleReflectance, backSideSlatDiffuseVisibleReflectance.get()); | |
| 446 | } else { | ||
| 447 | ✗ | resetBackSideSlatDiffuseVisibleReflectance(); | |
| 448 | ✗ | result = true; | |
| 449 | } | ||
| 450 | 1 | return result; | |
| 451 | } | ||
| 452 | |||
| 453 | 1 | void Blind_Impl::resetBackSideSlatDiffuseVisibleReflectance() { | |
| 454 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::BackSideSlatDiffuseVisibleReflectance, ""); |
| 455 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 456 | 1 | } | |
| 457 | |||
| 458 | 1 | bool Blind_Impl::setSlatInfraredHemisphericalTransmittance(double slatInfraredHemisphericalTransmittance) { | |
| 459 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::SlatInfraredHemisphericalTransmittance, slatInfraredHemisphericalTransmittance); | |
| 460 | 1 | return result; | |
| 461 | } | ||
| 462 | |||
| 463 | 1 | void Blind_Impl::resetSlatInfraredHemisphericalTransmittance() { | |
| 464 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::SlatInfraredHemisphericalTransmittance, ""); |
| 465 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 466 | 1 | } | |
| 467 | |||
| 468 | 1 | bool Blind_Impl::setFrontSideSlatInfraredHemisphericalEmissivity(double frontSideSlatInfraredHemisphericalEmissivity) { | |
| 469 | bool result = | ||
| 470 | 1 | setDouble(OS_WindowMaterial_BlindFields::FrontSideSlatInfraredHemisphericalEmissivity, frontSideSlatInfraredHemisphericalEmissivity); | |
| 471 | 1 | return result; | |
| 472 | } | ||
| 473 | |||
| 474 | 1 | void Blind_Impl::resetFrontSideSlatInfraredHemisphericalEmissivity() { | |
| 475 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::FrontSideSlatInfraredHemisphericalEmissivity, ""); |
| 476 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 477 | 1 | } | |
| 478 | |||
| 479 | 1 | bool Blind_Impl::setBackSideSlatInfraredHemisphericalEmissivity(double backSideSlatInfraredHemisphericalEmissivity) { | |
| 480 | bool result = | ||
| 481 | 1 | setDouble(OS_WindowMaterial_BlindFields::BackSideSlatInfraredHemisphericalEmissivity, backSideSlatInfraredHemisphericalEmissivity); | |
| 482 | 1 | return result; | |
| 483 | } | ||
| 484 | |||
| 485 | 1 | void Blind_Impl::resetBackSideSlatInfraredHemisphericalEmissivity() { | |
| 486 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::BackSideSlatInfraredHemisphericalEmissivity, ""); |
| 487 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 488 | 1 | } | |
| 489 | |||
| 490 | 1 | bool Blind_Impl::setBlindtoGlassDistance(double blindtoGlassDistance) { | |
| 491 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::BlindtoGlassDistance, blindtoGlassDistance); | |
| 492 | 1 | return result; | |
| 493 | } | ||
| 494 | |||
| 495 | 1 | void Blind_Impl::resetBlindtoGlassDistance() { | |
| 496 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::BlindtoGlassDistance, ""); |
| 497 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 498 | 1 | } | |
| 499 | |||
| 500 | 1 | bool Blind_Impl::setBlindTopOpeningMultiplier(double blindTopOpeningMultiplier) { | |
| 501 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::BlindTopOpeningMultiplier, blindTopOpeningMultiplier); | |
| 502 | 1 | return result; | |
| 503 | } | ||
| 504 | |||
| 505 | 1 | void Blind_Impl::resetBlindTopOpeningMultiplier() { | |
| 506 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::BlindTopOpeningMultiplier, ""); |
| 507 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 508 | 1 | } | |
| 509 | |||
| 510 | 1 | bool Blind_Impl::setBlindBottomOpeningMultiplier(double blindBottomOpeningMultiplier) { | |
| 511 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::BlindBottomOpeningMultiplier, blindBottomOpeningMultiplier); | |
| 512 | 1 | return result; | |
| 513 | } | ||
| 514 | |||
| 515 | 1 | void Blind_Impl::resetBlindBottomOpeningMultiplier() { | |
| 516 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::BlindBottomOpeningMultiplier, ""); |
| 517 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 518 | 1 | } | |
| 519 | |||
| 520 | 1 | bool Blind_Impl::setBlindLeftSideOpeningMultiplier(double blindLeftSideOpeningMultiplier) { | |
| 521 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::BlindLeftSideOpeningMultiplier, blindLeftSideOpeningMultiplier); | |
| 522 | 1 | return result; | |
| 523 | } | ||
| 524 | |||
| 525 | 1 | void Blind_Impl::resetBlindLeftSideOpeningMultiplier() { | |
| 526 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::BlindLeftSideOpeningMultiplier, ""); |
| 527 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 528 | 1 | } | |
| 529 | |||
| 530 | 1 | bool Blind_Impl::setBlindRightSideOpeningMultiplier(double blindRightSideOpeningMultiplier) { | |
| 531 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::BlindRightSideOpeningMultiplier, blindRightSideOpeningMultiplier); | |
| 532 | 1 | return result; | |
| 533 | } | ||
| 534 | |||
| 535 | 1 | void Blind_Impl::resetBlindRightSideOpeningMultiplier() { | |
| 536 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::BlindRightSideOpeningMultiplier, ""); |
| 537 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 538 | 1 | } | |
| 539 | |||
| 540 | 1 | bool Blind_Impl::setMinimumSlatAngle(double minimumSlatAngle) { | |
| 541 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::MinimumSlatAngle, minimumSlatAngle); | |
| 542 | 1 | return result; | |
| 543 | } | ||
| 544 | |||
| 545 | 1 | void Blind_Impl::resetMinimumSlatAngle() { | |
| 546 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::MinimumSlatAngle, ""); |
| 547 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 548 | 1 | } | |
| 549 | |||
| 550 | 1 | bool Blind_Impl::setMaximumSlatAngle(double maximumSlatAngle) { | |
| 551 | 1 | bool result = setDouble(OS_WindowMaterial_BlindFields::MaximumSlatAngle, maximumSlatAngle); | |
| 552 | 1 | return result; | |
| 553 | } | ||
| 554 | |||
| 555 | 1 | void Blind_Impl::resetMaximumSlatAngle() { | |
| 556 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_BlindFields::MaximumSlatAngle, ""); |
| 557 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 558 | 1 | } | |
| 559 | |||
| 560 | ✗ | std::vector<std::string> Blind_Impl::slatOrientationValues() const { | |
| 561 | ✗ | return Blind::slatOrientationValues(); | |
| 562 | } | ||
| 563 | |||
| 564 | } // namespace detail | ||
| 565 | |||
| 566 | 15 | Blind::Blind(const Model& model, double slatWidth, double slatSeparation, double frontSideSlatBeamSolarReflectance, | |
| 567 | double backSideSlatBeamSolarReflectance, double frontSideSlatDiffuseSolarReflectance, double backSideSlatDiffuseSolarReflectance, | ||
| 568 | 15 | double slatBeamVisibleTransmittance) | |
| 569 | 15 | : ShadingMaterial(Blind::iddObjectType(), model) { | |
| 570 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 15 times.
✗ Branch 5 not taken.
|
15 | OS_ASSERT(getImpl<detail::Blind_Impl>()); |
| 571 | |||
| 572 | // TODO: Appropriately handle the following required object-list fields. | ||
| 573 | 15 | bool ok = true; | |
| 574 | // ok = setHandle(); | ||
| 575 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
✗ Branch 3 not taken.
|
15 | OS_ASSERT(ok); |
| 576 |
1/1✓ Branch 1 taken 15 times.
|
15 | ok = setSlatWidth(slatWidth); |
| 577 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
✗ Branch 3 not taken.
|
15 | OS_ASSERT(ok); |
| 578 |
1/1✓ Branch 1 taken 15 times.
|
15 | ok = setSlatSeparation(slatSeparation); |
| 579 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
✗ Branch 3 not taken.
|
15 | OS_ASSERT(ok); |
| 580 |
1/1✓ Branch 1 taken 15 times.
|
15 | ok = setFrontSideSlatBeamSolarReflectance(frontSideSlatBeamSolarReflectance); |
| 581 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
✗ Branch 3 not taken.
|
15 | OS_ASSERT(ok); |
| 582 |
1/1✓ Branch 1 taken 15 times.
|
15 | ok = setBackSideSlatBeamSolarReflectance(backSideSlatBeamSolarReflectance); |
| 583 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
✗ Branch 3 not taken.
|
15 | OS_ASSERT(ok); |
| 584 |
1/1✓ Branch 1 taken 15 times.
|
15 | ok = setFrontSideSlatDiffuseSolarReflectance(frontSideSlatDiffuseSolarReflectance); |
| 585 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
✗ Branch 3 not taken.
|
15 | OS_ASSERT(ok); |
| 586 |
1/1✓ Branch 1 taken 15 times.
|
15 | ok = setBackSideSlatDiffuseSolarReflectance(backSideSlatDiffuseSolarReflectance); |
| 587 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
✗ Branch 3 not taken.
|
15 | OS_ASSERT(ok); |
| 588 |
1/1✓ Branch 1 taken 15 times.
|
15 | ok = setSlatBeamVisibleTransmittance(slatBeamVisibleTransmittance); |
| 589 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
✗ Branch 3 not taken.
|
15 | OS_ASSERT(ok); |
| 590 | 15 | } | |
| 591 | |||
| 592 | 7635 | IddObjectType Blind::iddObjectType() { | |
| 593 |
1/1✓ Branch 1 taken 7635 times.
|
7635 | return {IddObjectType::OS_WindowMaterial_Blind}; |
| 594 | } | ||
| 595 | |||
| 596 | ✗ | std::vector<std::string> Blind::slatOrientationValues() { | |
| 597 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_WindowMaterial_BlindFields::SlatOrientation); | |
| 598 | } | ||
| 599 | |||
| 600 | 3 | std::string Blind::slatOrientation() const { | |
| 601 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->slatOrientation(); |
| 602 | } | ||
| 603 | |||
| 604 | ✗ | bool Blind::isSlatOrientationDefaulted() const { | |
| 605 | ✗ | return getImpl<detail::Blind_Impl>()->isSlatOrientationDefaulted(); | |
| 606 | } | ||
| 607 | |||
| 608 | 2 | double Blind::slatWidth() const { | |
| 609 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Blind_Impl>()->slatWidth(); |
| 610 | } | ||
| 611 | |||
| 612 | 2 | double Blind::slatSeparation() const { | |
| 613 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Blind_Impl>()->slatSeparation(); |
| 614 | } | ||
| 615 | |||
| 616 | 3 | double Blind::slatThickness() const { | |
| 617 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->slatThickness(); |
| 618 | } | ||
| 619 | |||
| 620 | ✗ | bool Blind::isSlatThicknessDefaulted() const { | |
| 621 | ✗ | return getImpl<detail::Blind_Impl>()->isSlatThicknessDefaulted(); | |
| 622 | } | ||
| 623 | |||
| 624 | 3 | double Blind::slatAngle() const { | |
| 625 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->slatAngle(); |
| 626 | } | ||
| 627 | |||
| 628 | ✗ | bool Blind::isSlatAngleDefaulted() const { | |
| 629 | ✗ | return getImpl<detail::Blind_Impl>()->isSlatAngleDefaulted(); | |
| 630 | } | ||
| 631 | |||
| 632 | 3 | double Blind::slatConductivity() const { | |
| 633 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->slatConductivity(); |
| 634 | } | ||
| 635 | |||
| 636 | ✗ | bool Blind::isSlatConductivityDefaulted() const { | |
| 637 | ✗ | return getImpl<detail::Blind_Impl>()->isSlatConductivityDefaulted(); | |
| 638 | } | ||
| 639 | |||
| 640 | 3 | double Blind::slatBeamSolarTransmittance() const { | |
| 641 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->slatBeamSolarTransmittance(); |
| 642 | } | ||
| 643 | |||
| 644 | ✗ | bool Blind::isSlatBeamSolarTransmittanceDefaulted() const { | |
| 645 | ✗ | return getImpl<detail::Blind_Impl>()->isSlatBeamSolarTransmittanceDefaulted(); | |
| 646 | } | ||
| 647 | |||
| 648 | 2 | double Blind::frontSideSlatBeamSolarReflectance() const { | |
| 649 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Blind_Impl>()->frontSideSlatBeamSolarReflectance(); |
| 650 | } | ||
| 651 | |||
| 652 | 2 | double Blind::backSideSlatBeamSolarReflectance() const { | |
| 653 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Blind_Impl>()->backSideSlatBeamSolarReflectance(); |
| 654 | } | ||
| 655 | |||
| 656 | 2 | double Blind::slatDiffuseSolarTransmittance() const { | |
| 657 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Blind_Impl>()->slatDiffuseSolarTransmittance(); |
| 658 | } | ||
| 659 | |||
| 660 | ✗ | bool Blind::isSlatDiffuseSolarTransmittanceDefaulted() const { | |
| 661 | ✗ | return getImpl<detail::Blind_Impl>()->isSlatDiffuseSolarTransmittanceDefaulted(); | |
| 662 | } | ||
| 663 | |||
| 664 | 2 | double Blind::frontSideSlatDiffuseSolarReflectance() const { | |
| 665 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Blind_Impl>()->frontSideSlatDiffuseSolarReflectance(); |
| 666 | } | ||
| 667 | |||
| 668 | 2 | double Blind::backSideSlatDiffuseSolarReflectance() const { | |
| 669 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Blind_Impl>()->backSideSlatDiffuseSolarReflectance(); |
| 670 | } | ||
| 671 | |||
| 672 | 2 | double Blind::slatBeamVisibleTransmittance() const { | |
| 673 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Blind_Impl>()->slatBeamVisibleTransmittance(); |
| 674 | } | ||
| 675 | |||
| 676 | 3 | boost::optional<double> Blind::frontSideSlatBeamVisibleReflectance() const { | |
| 677 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->frontSideSlatBeamVisibleReflectance(); |
| 678 | } | ||
| 679 | |||
| 680 | 3 | boost::optional<double> Blind::backSideSlatBeamVisibleReflectance() const { | |
| 681 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->backSideSlatBeamVisibleReflectance(); |
| 682 | } | ||
| 683 | |||
| 684 | 3 | double Blind::slatDiffuseVisibleTransmittance() const { | |
| 685 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->slatDiffuseVisibleTransmittance(); |
| 686 | } | ||
| 687 | |||
| 688 | ✗ | bool Blind::isSlatDiffuseVisibleTransmittanceDefaulted() const { | |
| 689 | ✗ | return getImpl<detail::Blind_Impl>()->isSlatDiffuseVisibleTransmittanceDefaulted(); | |
| 690 | } | ||
| 691 | |||
| 692 | 3 | boost::optional<double> Blind::frontSideSlatDiffuseVisibleReflectance() const { | |
| 693 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->frontSideSlatDiffuseVisibleReflectance(); |
| 694 | } | ||
| 695 | |||
| 696 | 3 | boost::optional<double> Blind::backSideSlatDiffuseVisibleReflectance() const { | |
| 697 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->backSideSlatDiffuseVisibleReflectance(); |
| 698 | } | ||
| 699 | |||
| 700 | 3 | double Blind::slatInfraredHemisphericalTransmittance() const { | |
| 701 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->slatInfraredHemisphericalTransmittance(); |
| 702 | } | ||
| 703 | |||
| 704 | ✗ | bool Blind::isSlatInfraredHemisphericalTransmittanceDefaulted() const { | |
| 705 | ✗ | return getImpl<detail::Blind_Impl>()->isSlatInfraredHemisphericalTransmittanceDefaulted(); | |
| 706 | } | ||
| 707 | |||
| 708 | 3 | double Blind::frontSideSlatInfraredHemisphericalEmissivity() const { | |
| 709 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->frontSideSlatInfraredHemisphericalEmissivity(); |
| 710 | } | ||
| 711 | |||
| 712 | ✗ | bool Blind::isFrontSideSlatInfraredHemisphericalEmissivityDefaulted() const { | |
| 713 | ✗ | return getImpl<detail::Blind_Impl>()->isFrontSideSlatInfraredHemisphericalEmissivityDefaulted(); | |
| 714 | } | ||
| 715 | |||
| 716 | 3 | double Blind::backSideSlatInfraredHemisphericalEmissivity() const { | |
| 717 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->backSideSlatInfraredHemisphericalEmissivity(); |
| 718 | } | ||
| 719 | |||
| 720 | ✗ | bool Blind::isBackSideSlatInfraredHemisphericalEmissivityDefaulted() const { | |
| 721 | ✗ | return getImpl<detail::Blind_Impl>()->isBackSideSlatInfraredHemisphericalEmissivityDefaulted(); | |
| 722 | } | ||
| 723 | |||
| 724 | 3 | double Blind::blindtoGlassDistance() const { | |
| 725 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->blindtoGlassDistance(); |
| 726 | } | ||
| 727 | |||
| 728 | ✗ | bool Blind::isBlindtoGlassDistanceDefaulted() const { | |
| 729 | ✗ | return getImpl<detail::Blind_Impl>()->isBlindtoGlassDistanceDefaulted(); | |
| 730 | } | ||
| 731 | |||
| 732 | 3 | double Blind::blindTopOpeningMultiplier() const { | |
| 733 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->blindTopOpeningMultiplier(); |
| 734 | } | ||
| 735 | |||
| 736 | ✗ | bool Blind::isBlindTopOpeningMultiplierDefaulted() const { | |
| 737 | ✗ | return getImpl<detail::Blind_Impl>()->isBlindTopOpeningMultiplierDefaulted(); | |
| 738 | } | ||
| 739 | |||
| 740 | 3 | double Blind::blindBottomOpeningMultiplier() const { | |
| 741 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->blindBottomOpeningMultiplier(); |
| 742 | } | ||
| 743 | |||
| 744 | ✗ | bool Blind::isBlindBottomOpeningMultiplierDefaulted() const { | |
| 745 | ✗ | return getImpl<detail::Blind_Impl>()->isBlindBottomOpeningMultiplierDefaulted(); | |
| 746 | } | ||
| 747 | |||
| 748 | 3 | double Blind::blindLeftSideOpeningMultiplier() const { | |
| 749 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->blindLeftSideOpeningMultiplier(); |
| 750 | } | ||
| 751 | |||
| 752 | ✗ | bool Blind::isBlindLeftSideOpeningMultiplierDefaulted() const { | |
| 753 | ✗ | return getImpl<detail::Blind_Impl>()->isBlindLeftSideOpeningMultiplierDefaulted(); | |
| 754 | } | ||
| 755 | |||
| 756 | 3 | double Blind::blindRightSideOpeningMultiplier() const { | |
| 757 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->blindRightSideOpeningMultiplier(); |
| 758 | } | ||
| 759 | |||
| 760 | ✗ | bool Blind::isBlindRightSideOpeningMultiplierDefaulted() const { | |
| 761 | ✗ | return getImpl<detail::Blind_Impl>()->isBlindRightSideOpeningMultiplierDefaulted(); | |
| 762 | } | ||
| 763 | |||
| 764 | 3 | double Blind::minimumSlatAngle() const { | |
| 765 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->minimumSlatAngle(); |
| 766 | } | ||
| 767 | |||
| 768 | ✗ | bool Blind::isMinimumSlatAngleDefaulted() const { | |
| 769 | ✗ | return getImpl<detail::Blind_Impl>()->isMinimumSlatAngleDefaulted(); | |
| 770 | } | ||
| 771 | |||
| 772 | 3 | double Blind::maximumSlatAngle() const { | |
| 773 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::Blind_Impl>()->maximumSlatAngle(); |
| 774 | } | ||
| 775 | |||
| 776 | ✗ | bool Blind::isMaximumSlatAngleDefaulted() const { | |
| 777 | ✗ | return getImpl<detail::Blind_Impl>()->isMaximumSlatAngleDefaulted(); | |
| 778 | } | ||
| 779 | |||
| 780 | 2 | bool Blind::setSlatOrientation(const std::string& slatOrientation) { | |
| 781 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Blind_Impl>()->setSlatOrientation(slatOrientation); |
| 782 | } | ||
| 783 | |||
| 784 | ✗ | void Blind::resetSlatOrientation() { | |
| 785 | ✗ | getImpl<detail::Blind_Impl>()->resetSlatOrientation(); | |
| 786 | ✗ | } | |
| 787 | |||
| 788 | 16 | bool Blind::setSlatWidth(double slatWidth) { | |
| 789 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::Blind_Impl>()->setSlatWidth(slatWidth); |
| 790 | } | ||
| 791 | |||
| 792 | 16 | bool Blind::setSlatSeparation(double slatSeparation) { | |
| 793 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::Blind_Impl>()->setSlatSeparation(slatSeparation); |
| 794 | } | ||
| 795 | |||
| 796 | 1 | bool Blind::setSlatThickness(double slatThickness) { | |
| 797 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setSlatThickness(slatThickness); |
| 798 | } | ||
| 799 | |||
| 800 | 1 | void Blind::resetSlatThickness() { | |
| 801 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetSlatThickness(); |
| 802 | 1 | } | |
| 803 | |||
| 804 | 1 | bool Blind::setSlatAngle(double slatAngle) { | |
| 805 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setSlatAngle(slatAngle); |
| 806 | } | ||
| 807 | |||
| 808 | 1 | void Blind::resetSlatAngle() { | |
| 809 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetSlatAngle(); |
| 810 | 1 | } | |
| 811 | |||
| 812 | 1 | bool Blind::setSlatConductivity(double slatConductivity) { | |
| 813 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setSlatConductivity(slatConductivity); |
| 814 | } | ||
| 815 | |||
| 816 | 1 | void Blind::resetSlatConductivity() { | |
| 817 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetSlatConductivity(); |
| 818 | 1 | } | |
| 819 | |||
| 820 | 1 | bool Blind::setSlatBeamSolarTransmittance(double slatBeamSolarTransmittance) { | |
| 821 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setSlatBeamSolarTransmittance(slatBeamSolarTransmittance); |
| 822 | } | ||
| 823 | |||
| 824 | 1 | void Blind::resetSlatBeamSolarTransmittance() { | |
| 825 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetSlatBeamSolarTransmittance(); |
| 826 | 1 | } | |
| 827 | |||
| 828 | 16 | bool Blind::setFrontSideSlatBeamSolarReflectance(double frontSideSlatBeamSolarReflectance) { | |
| 829 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::Blind_Impl>()->setFrontSideSlatBeamSolarReflectance(frontSideSlatBeamSolarReflectance); |
| 830 | } | ||
| 831 | |||
| 832 | 16 | bool Blind::setBackSideSlatBeamSolarReflectance(double backSideSlatBeamSolarReflectance) { | |
| 833 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::Blind_Impl>()->setBackSideSlatBeamSolarReflectance(backSideSlatBeamSolarReflectance); |
| 834 | } | ||
| 835 | |||
| 836 | 1 | bool Blind::setSlatDiffuseSolarTransmittance(double slatDiffuseSolarTransmittance) { | |
| 837 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setSlatDiffuseSolarTransmittance(slatDiffuseSolarTransmittance); |
| 838 | } | ||
| 839 | |||
| 840 | ✗ | void Blind::resetSlatDiffuseSolarTransmittance() { | |
| 841 | ✗ | getImpl<detail::Blind_Impl>()->resetSlatDiffuseSolarTransmittance(); | |
| 842 | ✗ | } | |
| 843 | |||
| 844 | 16 | bool Blind::setFrontSideSlatDiffuseSolarReflectance(double frontSideSlatDiffuseSolarReflectance) { | |
| 845 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::Blind_Impl>()->setFrontSideSlatDiffuseSolarReflectance(frontSideSlatDiffuseSolarReflectance); |
| 846 | } | ||
| 847 | |||
| 848 | 16 | bool Blind::setBackSideSlatDiffuseSolarReflectance(double backSideSlatDiffuseSolarReflectance) { | |
| 849 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::Blind_Impl>()->setBackSideSlatDiffuseSolarReflectance(backSideSlatDiffuseSolarReflectance); |
| 850 | } | ||
| 851 | |||
| 852 | 16 | bool Blind::setSlatBeamVisibleTransmittance(double slatBeamVisibleTransmittance) { | |
| 853 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::Blind_Impl>()->setSlatBeamVisibleTransmittance(slatBeamVisibleTransmittance); |
| 854 | } | ||
| 855 | |||
| 856 | 1 | bool Blind::setFrontSideSlatBeamVisibleReflectance(double frontSideSlatBeamVisibleReflectance) { | |
| 857 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setFrontSideSlatBeamVisibleReflectance(frontSideSlatBeamVisibleReflectance); |
| 858 | } | ||
| 859 | |||
| 860 | 1 | void Blind::resetFrontSideSlatBeamVisibleReflectance() { | |
| 861 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetFrontSideSlatBeamVisibleReflectance(); |
| 862 | 1 | } | |
| 863 | |||
| 864 | 1 | bool Blind::setBackSideSlatBeamVisibleReflectance(double backSideSlatBeamVisibleReflectance) { | |
| 865 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setBackSideSlatBeamVisibleReflectance(backSideSlatBeamVisibleReflectance); |
| 866 | } | ||
| 867 | |||
| 868 | 1 | void Blind::resetBackSideSlatBeamVisibleReflectance() { | |
| 869 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetBackSideSlatBeamVisibleReflectance(); |
| 870 | 1 | } | |
| 871 | |||
| 872 | 1 | bool Blind::setSlatDiffuseVisibleTransmittance(double slatDiffuseVisibleTransmittance) { | |
| 873 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setSlatDiffuseVisibleTransmittance(slatDiffuseVisibleTransmittance); |
| 874 | } | ||
| 875 | |||
| 876 | 1 | void Blind::resetSlatDiffuseVisibleTransmittance() { | |
| 877 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetSlatDiffuseVisibleTransmittance(); |
| 878 | 1 | } | |
| 879 | |||
| 880 | 1 | bool Blind::setFrontSideSlatDiffuseVisibleReflectance(double frontSideSlatDiffuseVisibleReflectance) { | |
| 881 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setFrontSideSlatDiffuseVisibleReflectance(frontSideSlatDiffuseVisibleReflectance); |
| 882 | } | ||
| 883 | |||
| 884 | 1 | void Blind::resetFrontSideSlatDiffuseVisibleReflectance() { | |
| 885 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetFrontSideSlatDiffuseVisibleReflectance(); |
| 886 | 1 | } | |
| 887 | |||
| 888 | 1 | bool Blind::setBackSideSlatDiffuseVisibleReflectance(double backSideSlatDiffuseVisibleReflectance) { | |
| 889 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setBackSideSlatDiffuseVisibleReflectance(backSideSlatDiffuseVisibleReflectance); |
| 890 | } | ||
| 891 | |||
| 892 | 1 | void Blind::resetBackSideSlatDiffuseVisibleReflectance() { | |
| 893 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetBackSideSlatDiffuseVisibleReflectance(); |
| 894 | 1 | } | |
| 895 | |||
| 896 | 1 | bool Blind::setSlatInfraredHemisphericalTransmittance(double slatInfraredHemisphericalTransmittance) { | |
| 897 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setSlatInfraredHemisphericalTransmittance(slatInfraredHemisphericalTransmittance); |
| 898 | } | ||
| 899 | |||
| 900 | 1 | void Blind::resetSlatInfraredHemisphericalTransmittance() { | |
| 901 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetSlatInfraredHemisphericalTransmittance(); |
| 902 | 1 | } | |
| 903 | |||
| 904 | 1 | bool Blind::setFrontSideSlatInfraredHemisphericalEmissivity(double frontSideSlatInfraredHemisphericalEmissivity) { | |
| 905 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setFrontSideSlatInfraredHemisphericalEmissivity(frontSideSlatInfraredHemisphericalEmissivity); |
| 906 | } | ||
| 907 | |||
| 908 | 1 | void Blind::resetFrontSideSlatInfraredHemisphericalEmissivity() { | |
| 909 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetFrontSideSlatInfraredHemisphericalEmissivity(); |
| 910 | 1 | } | |
| 911 | |||
| 912 | 1 | bool Blind::setBackSideSlatInfraredHemisphericalEmissivity(double backSideSlatInfraredHemisphericalEmissivity) { | |
| 913 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setBackSideSlatInfraredHemisphericalEmissivity(backSideSlatInfraredHemisphericalEmissivity); |
| 914 | } | ||
| 915 | |||
| 916 | 1 | void Blind::resetBackSideSlatInfraredHemisphericalEmissivity() { | |
| 917 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetBackSideSlatInfraredHemisphericalEmissivity(); |
| 918 | 1 | } | |
| 919 | |||
| 920 | 1 | bool Blind::setBlindtoGlassDistance(double blindtoGlassDistance) { | |
| 921 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setBlindtoGlassDistance(blindtoGlassDistance); |
| 922 | } | ||
| 923 | |||
| 924 | 1 | void Blind::resetBlindtoGlassDistance() { | |
| 925 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetBlindtoGlassDistance(); |
| 926 | 1 | } | |
| 927 | |||
| 928 | 1 | bool Blind::setBlindTopOpeningMultiplier(double blindTopOpeningMultiplier) { | |
| 929 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setBlindTopOpeningMultiplier(blindTopOpeningMultiplier); |
| 930 | } | ||
| 931 | |||
| 932 | 1 | void Blind::resetBlindTopOpeningMultiplier() { | |
| 933 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetBlindTopOpeningMultiplier(); |
| 934 | 1 | } | |
| 935 | |||
| 936 | 1 | bool Blind::setBlindBottomOpeningMultiplier(double blindBottomOpeningMultiplier) { | |
| 937 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setBlindBottomOpeningMultiplier(blindBottomOpeningMultiplier); |
| 938 | } | ||
| 939 | |||
| 940 | 1 | void Blind::resetBlindBottomOpeningMultiplier() { | |
| 941 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetBlindBottomOpeningMultiplier(); |
| 942 | 1 | } | |
| 943 | |||
| 944 | 1 | bool Blind::setBlindLeftSideOpeningMultiplier(double blindLeftSideOpeningMultiplier) { | |
| 945 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setBlindLeftSideOpeningMultiplier(blindLeftSideOpeningMultiplier); |
| 946 | } | ||
| 947 | |||
| 948 | 1 | void Blind::resetBlindLeftSideOpeningMultiplier() { | |
| 949 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetBlindLeftSideOpeningMultiplier(); |
| 950 | 1 | } | |
| 951 | |||
| 952 | 1 | bool Blind::setBlindRightSideOpeningMultiplier(double blindRightSideOpeningMultiplier) { | |
| 953 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setBlindRightSideOpeningMultiplier(blindRightSideOpeningMultiplier); |
| 954 | } | ||
| 955 | |||
| 956 | 1 | void Blind::resetBlindRightSideOpeningMultiplier() { | |
| 957 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetBlindRightSideOpeningMultiplier(); |
| 958 | 1 | } | |
| 959 | |||
| 960 | 1 | bool Blind::setMinimumSlatAngle(double minimumSlatAngle) { | |
| 961 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setMinimumSlatAngle(minimumSlatAngle); |
| 962 | } | ||
| 963 | |||
| 964 | 1 | void Blind::resetMinimumSlatAngle() { | |
| 965 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetMinimumSlatAngle(); |
| 966 | 1 | } | |
| 967 | |||
| 968 | 1 | bool Blind::setMaximumSlatAngle(double maximumSlatAngle) { | |
| 969 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Blind_Impl>()->setMaximumSlatAngle(maximumSlatAngle); |
| 970 | } | ||
| 971 | |||
| 972 | 1 | void Blind::resetMaximumSlatAngle() { | |
| 973 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::Blind_Impl>()->resetMaximumSlatAngle(); |
| 974 | 1 | } | |
| 975 | |||
| 976 | /// @cond | ||
| 977 |
1/1✓ Branch 3 taken 19 times.
|
19 | Blind::Blind(std::shared_ptr<detail::Blind_Impl> impl) : ShadingMaterial(std::move(impl)) {} |
| 978 | /// @endcond | ||
| 979 | |||
| 980 | } // namespace model | ||
| 981 | } // namespace openstudio | ||
| 982 |