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

Method Dispatch

src/model/FloorspaceReverseTranslator.cpp:84–92  ·  view source on GitHub ↗

Creates a BuildingUnit

Source from the content-addressed store, hash-verified

82
83 // Creates a BuildingUnit
84 void FloorspaceReverseTranslator_Impl::Dispatch(const FSBuildingUnit& fsEntity) {
85 BuildingUnit buildingUnit(m_model);
86 buildingUnit.setName(fsEntity.name());
87 boost::optional<RenderingColor> renderingColor = RenderingColor::fromColorString(fsEntity.color(), m_model);
88 if (renderingColor.has_value()) {
89 buildingUnit.setRenderingColor(*renderingColor);
90 }
91 MapHandles(fsEntity, buildingUnit);
92 }
93
94 void FloorspaceReverseTranslator_Impl::Dispatch(const FSBuildingType& entity) {
95 // TODO: building_type does not appear to go anywhere

Callers 1

AcceptMethod · 0.80

Calls 15

initializeModelObjectsFunction · 0.85
pointMethod · 0.80
AcceptMethod · 0.80
buildingUnitsMethod · 0.80
spaceTypesMethod · 0.80
constructionSetsMethod · 0.80
floorOffsetMethod · 0.80

Tested by

no test coverage detected