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

Method setLightingPowerPerPerson

src/model/Space.cpp:1533–1545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1531 }
1532
1533 bool Space_Impl::setLightingPowerPerPerson(double lightingPowerPerPerson) {
1534 OptionalLights templateLights;
1535 LightsVector myLights = lights();
1536 if (myLights.empty()) {
1537 if (OptionalSpaceType st = spaceType()) {
1538 myLights = st->lights();
1539 }
1540 }
1541 if (!myLights.empty()) {
1542 templateLights = myLights[0];
1543 }
1544 return setLightingPowerPerPerson(lightingPowerPerPerson, templateLights);
1545 }
1546
1547 bool Space_Impl::setLightingPowerPerPerson(double lightingPowerPerPerson, const boost::optional<Lights>& templateLights) {
1548 if (lightingPowerPerPerson < 0.0) {

Callers

nothing calls this directly

Calls 12

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

Tested by

no test coverage detected