| 257 | LayeredTexture::~LayeredTexture() = default; |
| 258 | |
| 259 | void LayeredTexture::fillTexture(const Document& doc) { |
| 260 | const std::vector<const Connection*>& conns = doc.GetConnectionsByDestinationSequenced(ID()); |
| 261 | for(size_t i = 0; i < conns.size();++i) { |
| 262 | const Connection* con = conns.at(i); |
| 263 | |
| 264 | const Object* const ob = con->SourceObject(); |
| 265 | if (nullptr == ob) { |
| 266 | DOMWarning("failed to read source object for texture link, ignoring",&element); |
| 267 | continue; |
| 268 | } |
| 269 | |
| 270 | const Texture* const tex = dynamic_cast<const Texture*>(ob); |
| 271 | |
| 272 | textures.push_back(tex); |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | // ------------------------------------------------------------------------------------------------ |
| 277 | Video::Video(uint64_t id, const Element &element, const Document &doc, const std::string &name) : |
no test coverage detected