MCPcopy Create free account
hub / github.com/Tom94/tev / updateImageVectorGraphics

Method updateImageVectorGraphics

src/ImageViewer.cpp:1807–1822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1805}
1806
1807void ImageViewer::updateImageVectorGraphics(string_view imageName, bool shallSelect, bool append, span<const VgCommand> commands) {
1808 auto image = imageByName(imageName);
1809 if (!image) {
1810 tlog::warning("Vector graphics of image {} could not be updated, because it does not exist.", imageName);
1811 return;
1812 }
1813
1814 tlog::debug(
1815 "Updating vector graphics: image=\"{}\" commands.size={} append={} shallSelect={}", imageName, commands.size(), append, shallSelect
1816 );
1817
1818 image->updateVectorGraphics(append, commands);
1819 if (shallSelect) {
1820 selectImage(image);
1821 }
1822}
1823
1824void ImageViewer::selectImage(const shared_ptr<Image>& image, bool stopPlayback) {
1825 // Once the selected image has been updated, reflect that in the image info window.

Callers 1

handleIpcPacketFunction · 0.80

Calls 2

updateVectorGraphicsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected