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

Method isSecondaryDaylightingControl

src/model/DaylightingControl.cpp:365–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 bool DaylightingControl_Impl::isSecondaryDaylightingControl() const {
366 bool result = false;
367 std::vector<WorkspaceObject> workspaceObjects = this->getSources(IddObjectType::OS_ThermalZone);
368 if (!workspaceObjects.empty()) {
369 OS_ASSERT(workspaceObjects.size() == 1);
370 boost::optional<DaylightingControl> control = workspaceObjects[0].cast<ThermalZone>().secondaryDaylightingControl();
371 if (control) {
372 result = (this->handle() == control->handle());
373 }
374 }
375 return result;
376 }
377
378 bool DaylightingControl_Impl::aimAt(const Point3d& target) {
379 Point3d position = this->position();

Callers 2

translateModelMethod · 0.80
TEST_FFunction · 0.80

Calls 5

getSourcesMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
handleMethod · 0.45

Tested by 1

TEST_FFunction · 0.64