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

Method setSurface

src/model/SurfaceControlMovableInsulation.cpp:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 bool SurfaceControlMovableInsulation_Impl::setSurface(const Surface& surface) {
114 boost::optional<SurfaceControlMovableInsulation> currentIns = surface.surfaceControlMovableInsulation();
115 if (currentIns) {
116 if (currentIns->handle() == this->handle()) {
117 return true;
118 }
119 currentIns->remove();
120 }
121 return setPointer(OS_SurfaceControl_MovableInsulationFields::SurfaceName, surface.handle());
122 }
123
124 bool SurfaceControlMovableInsulation_Impl::setMaterial(const Material& material) {
125 return setPointer(OS_SurfaceControl_MovableInsulationFields::MaterialName, material.handle());

Callers

nothing calls this directly

Calls 3

handleMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected