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

Method colorString

src/model/RenderingColor.cpp:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 }
130
131 std::string RenderingColor_Impl::colorString() const {
132 std::stringstream stream;
133 stream << "#" << std::setfill('0') << std::setw(6) << std::uppercase << std::hex
134 << renderingRedValue() * 65536 + renderingGreenValue() * 256 + renderingBlueValue();
135
136 std::string result = stream.str();
137 OS_ASSERT(result.size() == 7);
138 return result;
139 }
140
141 } // namespace detail
142

Callers 9

modelToThreeJSMethod · 0.80
mergeThermalZoneMethod · 0.80
mergeSpaceTypeMethod · 0.80
mergeBuildingStoryMethod · 0.80
mergeBuildingUnitMethod · 0.80
updateFloorplanJSMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

strMethod · 0.45
sizeMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64