-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SDK to 310: Support multiple Shading Controls #236
base: develop
Are you sure you want to change the base?
Conversation
FindOpenStudioSDK.cmake
Outdated
@@ -54,7 +54,7 @@ else() | |||
# Occasionally we can point to a specific PR by using something like ""http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/PR-4080" | |||
set(OPENSTUDIO_BASELINK_CI | |||
# "http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/develop" | |||
"http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/PR-4080" | |||
"http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/PR-4066" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: need to update hash for Windows but Jenkins build is pending
// TODO: this field will update depending fields, like clearing the Setpoint / Setpoint2 / ScheduleName | ||
// So when value changes, we should trigger a row refresh | ||
addComboBoxColumn<std::string, model::ShadingControl>( | ||
Heading(QString(SHADINGTYPE)), static_cast<std::string (*)(const std::string&)>(&openstudio::toString), | ||
std::function<std::vector<std::string>()>(&model::ShadingControl::shadingControlTypeValues), | ||
CastNullAdapter<model::ShadingControl>(&model::ShadingControl::shadingControlType), | ||
CastNullAdapter<model::ShadingControl>(&model::ShadingControl::setShadingControlType) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
addNameLineEditColumn(Heading(QString(SUBSURFACENAME)), true, false, // Is Inspectable, but not Deletable | ||
CastNullAdapter<model::ModelObject>(&model::ModelObject::name), | ||
CastNullAdapter<model::ModelObject>(&model::ModelObject::setName), | ||
boost::optional<std::function<void(model::ModelObject*)>>( | ||
std::function<void(model::ModelObject*)>([](model::ModelObject* t_mo) { | ||
if (auto ss = t_mo->optionalCast<model::SubSurface>()) { | ||
// TODO: Ideally we should remove the subSurface only from the current Shading Control, but I don't see how... | ||
ss->removeAllShadingControls(); | ||
} | ||
})), | ||
DataSource(subSurfaces, false, | ||
QSharedPointer<DropZoneConcept>(new DropZoneConceptImpl<model::ModelObject, model::ShadingControl>( | ||
Heading(SUBSURFACENAME), getter, setter, reset)))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created an alternate PR #240
Basically I think that EnergyPlus daylighting and shading controls are broken, I don't want to try to build a UI on them until they are fixed.
Fix #235
Moved Shading Controls to a subtab on the Facility Tab. It's probably not the perfect implementation, but it's not bad