2#include <Process/Dataflow/Port.hpp>
3#include <Process/Drop/ProcessDropHandler.hpp>
4#include <Process/GenericProcessFactory.hpp>
5#include <Process/Process.hpp>
7#include <Gfx/CommandFactory.hpp>
8#include <Gfx/Graph/ImageNode.hpp>
9#include <Gfx/Images/Metadata.hpp>
10#include <Library/LibraryInterface.hpp>
12#include <score/command/PropertyCommand.hpp>
14#include <ossia/detail/hash_map.hpp>
16#include <score_plugin_gfx_export.h>
20SCORE_PLUGIN_GFX_EXPORT std::vector<score::gfx::Image>
22SCORE_PLUGIN_GFX_EXPORT ossia::value
23fromImageSet(
const std::span<score::gfx::Image>& images);
24SCORE_PLUGIN_GFX_EXPORT
void releaseImages(std::vector<score::gfx::Image>& imgs);
29 std::optional<score::gfx::Image> acquire(
const QString& path);
35 ossia::hash_map<QString, std::pair<int, score::gfx::Image>> m_images;
44 SCORE_SERIALIZE_FRIENDS
45 PROCESS_METADATA_IMPL(Gfx::Images::Model)
51 template <
typename Impl>
52 Model(Impl& vis, QObject* parent)
53 :
Process::ProcessModel{vis, parent}
70 void on_imagesChanged(
const ossia::value& v);
75 QString prettyName() const noexcept override;
76 std::vector<
score::gfx::Image> m_currentImages;
80SCORE_PLUGIN_GFX_EXPORT const QSet<QString>& supportedImageExtensions();
82using ProcessFactory =
Process::ProcessFactory_T<
Gfx::Images::Model>;
84class LibraryHandler final : public Library::LibraryInterface
86 SCORE_CONCRETE(
"0916759f-a5f6-4870-a96b-4e1e5efe5885")
88 QSet<QString> acceptedFiles() const noexcept override;
91class DropHandler final : public
Process::ProcessDropHandler
93 SCORE_CONCRETE(
"f37aa176-d8be-45bc-b833-d014efba6157")
95 QSet<QString> mimeTypes() const noexcept override;
96 QSet<QString> fileExtensions() const noexcept override;
98 std::vector<ProcessDrop>& drops, const QMimeData& data,
99 const
score::DocumentContext& ctx) const noexcept override;
Collects — and in the same pass rewrites — the files a document references.
Definition ExternalFiles.hpp:93
The Process class.
Definition score-lib-process/Process/Process.hpp:80
The id_base_t class.
Definition Identifier.hpp:59
Binds the rendering pipeline to ossia processes.
Definition AssetTable.cpp:7
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Base toolkit upon which the software is built.
Definition Application.cpp:83
Definition score-plugin-gfx/Gfx/Images/Process.hpp:27
Definition TimeValue.hpp:21
Definition DocumentContext.hpp:18
Image data and metadata.
Definition score-plugin-gfx/Gfx/Graph/Utils.hpp:463