MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / setLightingPower

Method setLightingPower

src/model/Space.cpp:1347–1359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1345 }
1346
1347 bool Space_Impl::setLightingPower(double lightingPower) {
1348 OptionalLights templateLights;
1349 LightsVector myLights = lights();
1350 if (myLights.empty()) {
1351 if (OptionalSpaceType st = spaceType()) {
1352 myLights = st->lights();
1353 }
1354 }
1355 if (!myLights.empty()) {
1356 templateLights = myLights[0];
1357 }
1358 return setLightingPower(lightingPower, templateLights);
1359 }
1360
1361 bool Space_Impl::setLightingPower(double lightingPower, const boost::optional<Lights>& templateLights) {
1362 if (lightingPower < 0.0) {

Callers

nothing calls this directly

Calls 12

spaceTypeMethod · 0.95
setLightingLevelMethod · 0.80
lightsDefinitionMethod · 0.80
emptyMethod · 0.45
lightsMethod · 0.45
makeUniqueMethod · 0.45
setSpaceMethod · 0.45
setMultiplierMethod · 0.45
removeMethod · 0.45
luminairesMethod · 0.45
sizeMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected