Skip to content

Commit

Permalink
Fixes #340
Browse files Browse the repository at this point in the history
  • Loading branch information
macumber committed May 28, 2021
1 parent 5ace24e commit 67d0cba
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions src/openstudio_lib/SpacesSubsurfacesGridView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,23 +365,6 @@ void SpacesSubsurfacesGridController::addColumns(const QString& category, std::v
return allModelObjects;
});

std::function<std::vector<boost::optional<model::ModelObject>>(const model::Space&)> allOutsideBoundaryConditionObjects(
[allSubSurfaces](const model::Space& t_space) {
std::vector<boost::optional<model::ModelObject>> allModelObjects;
std::vector<boost::optional<model::SubSurface>> allAdjacentSubSurfaces;
for (auto subSurface : allSubSurfaces(t_space)) {
auto adjacentSubSurface = subSurface.cast<model::SubSurface>().adjacentSubSurface();
if (adjacentSubSurface) {
allAdjacentSubSurfaces.push_back(adjacentSubSurface);
} else {
allAdjacentSubSurfaces.push_back(boost::optional<model::SubSurface>());
}
}
allModelObjects.insert(allModelObjects.end(), allAdjacentSubSurfaces.begin(), allAdjacentSubSurfaces.end());

return allModelObjects;
});

if (field == SELECTED) {
auto checkbox = QSharedPointer<OSSelectAllCheckBox>(new OSSelectAllCheckBox());
checkbox->setToolTip("Check to select all rows");
Expand Down Expand Up @@ -433,8 +416,8 @@ void SpacesSubsurfacesGridController::addColumns(const QString& category, std::v
CastNullAdapter<model::SubSurface>(&model::SubSurface::adjacentSubSurface), setter,
boost::optional<std::function<void(model::SubSurface*)>>(NullAdapter(&model::SubSurface::resetAdjacentSubSurface)),
boost::optional<std::function<bool(model::SubSurface*)>>(),
boost::optional<std::function<std::vector<model::ModelObject>(model::SubSurface*)>>(),
DataSource(allOutsideBoundaryConditionObjects, true));
boost::optional<std::function<std::vector<model::ModelObject>(model::SubSurface*)>>(),
DataSource(allSubSurfaces, true));
} else if (field == SHADINGSURFACENAME) {

} else if (field == SHADINGCONTROLNAME) {
Expand Down

0 comments on commit 67d0cba

Please sign in to comment.