MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / DeleteImageMap

Method DeleteImageMap

include/slg/imagemap/imagemapcache.h:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 const ImageMapStorage::WrapType wrapType = ImageMapStorage::REPEAT);
50
51 void DeleteImageMap(const ImageMap *im) {
52 for (boost::unordered_map<std::string, ImageMap *>::iterator it = mapByKey.begin(); it != mapByKey.end(); ++it) {
53 if (it->second == im) {
54 delete it->second;
55
56 maps.erase(std::find(maps.begin(), maps.end(), it->second));
57 mapByKey.erase(it);
58 return;
59 }
60 }
61 }
62
63 std::string GetSequenceFileName(const ImageMap *im) const;
64 u_int GetImageMapIndex(const ImageMap *im) const;

Callers 2

CreateEmissionMapMethod · 0.80
BOOST_FOREACHFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected