| 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(); |