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>
18std::vector<score::gfx::Image> getImages(
const ossia::value& val);
19ossia::value fromImageSet(
const tcb::span<score::gfx::Image>& images);
20void releaseImages(std::vector<score::gfx::Image>& imgs);
25 std::optional<score::gfx::Image> acquire(
const std::string& path);
31 ossia::hash_map<std::string, std::pair<int, score::gfx::Image>> m_images;
40 SCORE_SERIALIZE_FRIENDS
41 PROCESS_METADATA_IMPL(Gfx::Images::Model)
45 constexpr bool hasExternalUI() {
return false; }
48 template <
typename Impl>
49 Model(Impl& vis, QObject* parent)
50 :
Process::ProcessModel{vis, parent}
65 void on_imagesChanged(
const ossia::value& v);
66 QString prettyName() const noexcept override;
67 std::vector<
score::gfx::Image> m_currentImages;
70using ProcessFactory =
Process::ProcessFactory_T<
Gfx::Images::Model>;
72class LibraryHandler final : public Library::LibraryInterface
74 SCORE_CONCRETE(
"0916759f-a5f6-4870-a96b-4e1e5efe5885")
76 QSet<QString> acceptedFiles() const noexcept override;
79class DropHandler final : public
Process::ProcessDropHandler
81 SCORE_CONCRETE(
"f37aa176-d8be-45bc-b833-d014efba6157")
83 QSet<QString> mimeTypes() const noexcept override;
84 QSet<QString> fileExtensions() const noexcept override;
86 std::vector<ProcessDrop>& drops, const QMimeData& data,
87 const
score::DocumentContext& ctx) const noexcept override;
The Process class.
Definition score-lib-process/Process/Process.hpp:61
The id_base_t class.
Definition Identifier.hpp:57
Binds the rendering pipeline to ossia processes.
Definition CameraDevice.cpp:28
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1324
Base toolkit upon which the software is built.
Definition Application.cpp:90
Definition score-plugin-gfx/Gfx/Images/Process.hpp:23
Definition TimeValue.hpp:21
Image data and metadata.
Definition score-plugin-gfx/Gfx/Graph/Utils.hpp:146