2 #include <Process/Dataflow/Port.hpp>
6 #include <ossia/network/domain/domain.hpp>
12 struct LogFloatSlider;
15 struct FloatRangeSlider;
41 SCORE_LIB_PROCESS_EXPORT,
Process::Port, Process::FloatSlider,
42 "af2b4fc3-aecb-4c15-a5aa-1c573a239925")
45 "82427d27-084a-4ab6-9c4e-db83929a1200")
48 "5554eb67-bcc8-45ab-8ec2-37a3f191aa64")
52 "348b80a4-45dc-4f70-8f5f-6546c85089a2")
56 "0c1902bc-e282-11ec-8fea-0242ac120002")
58 SCORE_LIB_PROCESS_EXPORT,
Process::Port,
Process::FloatRangeSlider,
59 "73ae3e85-0c91-497e-b612-b1391f87ac72")
63 "54dc640b-4385-4a5a-b9da-e44fe63701d9")
66 "25be1f08-a3fb-4ce3-a34e-4d8f54f15874")
70 "238399a0-7e81-47e3-896f-08e8856e2973")
73 "10d62b0d-5bc9-4ac9-9540-9e8ac0c24947")
77 "fb27e4cb-ea7f-41e2-ad92-2354498c1b6b")
81 "27d488b6-784b-4bfc-8e7f-e28ef030c248")
84 "b631d9b7-cbe3-4d9c-b470-f139e348aecb")
88 "9ae797ea-d94c-4792-acec-9ec1932bae5d")
91 "40833147-4c42-4b8b-bb80-0b1d15dae129")
94 "c347b510-927a-4924-9da1-c76871623567")
97 "7d5a68ae-501f-4038-bb24-4a7ffc049923")
100 "de15c0da-429b-49d3-bb07-7c41f5f205c8")
104 "8b1d76c4-3838-4ac0-9b9c-c12bc5db8e8a")
108 "485680cc-b8b9-4a01-acc7-3e8334bdc016")
112 "feb87e84-e0d2-428f-96ff-a123ac964f59")
116 "7cd210d3-ebd1-4f71-9de6-cccfb639cbc3")
120 "8f38638e-9f9f-48b0-ae36-1cba86ef5703")
123 "8093743c-584f-4bb9-97d4-6c7602f87116")
126 "bae00244-cd93-4893-a4ad-71489adb3fa1")
129 "0adbbdda-fda4-451e-91cc-1da731bde9d5")
132 "377e8205-b442-4d54-8832-3761def522b2")
135 "25de6d71-1554-4fe1-bf3f-9cbf12bdadeb")
139 "f6d740ce-acc0-44c0-932a-0a03345af84f")
151 auto getMin() const noexcept {
return domain().get().convert_min<
float>(); }
152 auto getMax() const noexcept {
return domain().get().convert_max<
float>(); }
153 void setupExecution(ossia::inlet& inl)
const noexcept
override;
154 using Process::ControlInlet::ControlInlet;
159 MODEL_METADATA_IMPL(FloatKnob)
165 auto getMin() const noexcept {
return domain().get().convert_min<
float>(); }
166 auto getMax() const noexcept {
return domain().get().convert_max<
float>(); }
167 void setupExecution(ossia::inlet& inl)
const noexcept
override;
169 using Process::ControlInlet::ControlInlet;
174 MODEL_METADATA_IMPL(LogFloatSlider)
180 auto getMin() const noexcept {
return domain().get().convert_min<
float>(); }
181 auto getMax() const noexcept {
return domain().get().convert_max<
float>(); }
182 void setupExecution(ossia::inlet& inl)
const noexcept
override;
184 using Process::ControlInlet::ControlInlet;
195 auto getMin() const noexcept {
return domain().get().convert_min<
int>(); }
196 auto getMax() const noexcept {
return domain().get().convert_max<
int>(); }
197 void setupExecution(ossia::inlet& inl)
const noexcept
override;
199 using Process::ControlInlet::ControlInlet;
210 auto getMin() const noexcept {
return domain().get().convert_min<
int>(); }
211 auto getMax() const noexcept {
return domain().get().convert_max<
int>(); }
212 auto getInit() const noexcept {
return ossia::convert<ossia::vec2f>(this->init()); }
213 void setupExecution(ossia::inlet& inl)
const noexcept
override;
215 using Process::ControlInlet::ControlInlet;
220 MODEL_METADATA_IMPL(FloatRangeSlider)
222 float min,
float max, ossia::vec2f init,
const QString& name,
Id<Process::Port> id,
226 auto getMin() const noexcept {
return domain().get().convert_min<
float>(); }
227 auto getMax() const noexcept {
return domain().get().convert_max<
float>(); }
228 auto getInit() const noexcept {
return ossia::convert<ossia::vec2f>(this->init()); }
229 void setupExecution(ossia::inlet& inl)
const noexcept
override;
231 using Process::ControlInlet::ControlInlet;
242 auto getMin() const noexcept {
return domain().get().convert_min<
int>(); }
243 auto getMax() const noexcept {
return domain().get().convert_max<
int>(); }
244 auto getInit() const noexcept {
return ossia::convert<ossia::vec2f>(this->init()); }
245 void setupExecution(ossia::inlet& inl)
const noexcept
override;
247 using Process::ControlInlet::ControlInlet;
254 float min,
float max, ossia::vec2f init,
const QString& name,
Id<Process::Port> id,
258 auto getMin() const noexcept {
return domain().get().convert_min<
float>(); }
259 auto getMax() const noexcept {
return domain().get().convert_max<
float>(); }
260 auto getInit() const noexcept {
return ossia::convert<ossia::vec2f>(this->init()); }
261 void setupExecution(ossia::inlet& inl)
const noexcept
override;
263 using Process::ControlInlet::ControlInlet;
268 MODEL_METADATA_IMPL(IntSpinBox)
274 auto getMin() const noexcept {
return domain().get().convert_min<
int>(); }
275 auto getMax() const noexcept {
return domain().get().convert_max<
int>(); }
276 void setupExecution(ossia::inlet& inl)
const noexcept
override;
278 using Process::ControlInlet::ControlInlet;
283 MODEL_METADATA_IMPL(FloatSpinBox)
289 auto getMin() const noexcept {
return domain().get().convert_min<
float>(); }
290 auto getMax() const noexcept {
return domain().get().convert_max<
float>(); }
291 void setupExecution(ossia::inlet& inl)
const noexcept
override;
293 using Process::ControlInlet::ControlInlet;
297 MODEL_METADATA_IMPL(TimeChooser)
303 auto getMin() const noexcept {
return domain().get().convert_min<
float>(); }
304 auto getMax() const noexcept {
return domain().get().convert_max<
float>(); }
305 void setupExecution(ossia::inlet& inl)
const noexcept
override;
306 using Process::ControlInlet::ControlInlet;
311 MODEL_METADATA_IMPL(
Toggle)
315 void setupExecution(ossia::inlet& inl)
const noexcept
override;
317 using Process::ControlInlet::ControlInlet;
322 MODEL_METADATA_IMPL(ChooserToggle)
328 QStringList alternatives() const noexcept;
329 void setupExecution(ossia::inlet& inl) const noexcept override;
340 void setupExecution(ossia::inlet& inl)
const noexcept
override;
342 using Process::ControlInlet::ControlInlet;
347 W_OBJECT(FileChooserBase)
353 using Process::ControlInlet::ControlInlet;
355 void setupExecution(ossia::inlet& inl)
const noexcept
override;
356 const QString& filters() const noexcept {
return m_filters; };
357 void setFilters(QString nf) { m_filters = std::move(nf); }
359 void enableFileWatch();
360 void destroying() W_SIGNAL(destroying);
365 struct SCORE_LIB_PROCESS_EXPORT
FileChooser : public FileChooserBase
374 using Process::FileChooserBase::FileChooserBase;
386 using Process::FileChooserBase::FileChooserBase;
398 using Process::FileChooserBase::FileChooserBase;
403 MODEL_METADATA_IMPL(ProgramEdit)
404 ProgramEdit(QString init,
const QString& name,
Id<Process::Port> id, QObject* parent);
407 std::string language;
409 void setupExecution(ossia::inlet& inl)
const noexcept
override;
411 using Process::ControlInlet::ControlInlet;
416 MODEL_METADATA_IMPL(ComboBox)
417 std::vector<std::pair<QString, ossia::value>> alternatives;
419 std::vector<std::pair<QString, ossia::value>> values, ossia::value init,
423 const auto& getValues() const noexcept {
return alternatives; }
424 auto count() const noexcept {
return alternatives.size(); }
431 void setupExecution(ossia::inlet& inl)
const noexcept
override;
436 MODEL_METADATA_IMPL(
Enum)
437 std::vector<QString> values;
438 std::vector<QString> pixmaps;
440 const std::vector<std::string>& dom, std::vector<QString> pixmaps,
444 const QStringList& values, std::vector<QString> pixmaps, std::string init,
448 const std::vector<QString>& getValues()
const {
return values; }
455 void setupExecution(ossia::inlet& inl)
const noexcept
override;
460 MODEL_METADATA_IMPL(
Button)
464 void setupExecution(ossia::inlet& inl)
const noexcept
override;
466 using Process::ControlInlet::ControlInlet;
471 MODEL_METADATA_IMPL(ImpulseButton)
472 W_OBJECT(ImpulseButton)
477 void setupExecution(ossia::inlet& inl)
const noexcept
override;
479 using Process::ControlInlet::ControlInlet;
489 void setupExecution(ossia::inlet&)
const noexcept
override;
490 auto getMin() const noexcept {
return ossia::vec4f{0., 0., 0., 0.}; }
491 auto getMax() const noexcept {
return ossia::vec4f{1., 1., 1., 1.}; }
492 using Process::ControlInlet::ControlInlet;
501 ossia::vec2f min, ossia::vec2f max, ossia::vec2f init,
const QString& name,
505 auto getMin() const noexcept {
return domain().get().convert_min<ossia::vec2f>(); }
506 auto getMax() const noexcept {
return domain().get().convert_max<ossia::vec2f>(); }
507 void setupExecution(ossia::inlet& inl)
const noexcept
override;
509 using Process::ControlInlet::ControlInlet;
518 ossia::vec3f min, ossia::vec3f max, ossia::vec3f init,
const QString& name,
522 auto getMin() const noexcept {
return domain().get().convert_min<ossia::vec3f>(); }
523 auto getMax() const noexcept {
return domain().get().convert_max<ossia::vec3f>(); }
524 void setupExecution(ossia::inlet& inl)
const noexcept
override;
526 using Process::ControlInlet::ControlInlet;
535 ossia::vec2f min, ossia::vec2f max, ossia::vec2f init,
bool integral,
539 auto getMin() const noexcept {
return domain().get().convert_min<ossia::vec2f>(); }
540 auto getMax() const noexcept {
return domain().get().convert_max<ossia::vec2f>(); }
541 void setupExecution(ossia::inlet& inl)
const noexcept
override;
543 using Process::ControlInlet::ControlInlet;
545 const bool integral{};
554 ossia::vec3f min, ossia::vec3f max, ossia::vec3f init,
const QString& name,
558 auto getMin() const noexcept {
return domain().get().convert_min<ossia::vec3f>(); }
559 auto getMax() const noexcept {
return domain().get().convert_max<ossia::vec3f>(); }
560 void setupExecution(ossia::inlet& inl)
const noexcept
override;
562 using Process::ControlInlet::ControlInlet;
572 ossia::value getMin() const noexcept;
573 ossia::value getMax() const noexcept;
574 void setupExecution(ossia::inlet& inl) const noexcept override;
581 struct SCORE_LIB_PROCESS_EXPORT Bargraph : public
Process::ControlOutlet
583 MODEL_METADATA_IMPL(Bargraph)
589 auto getMin() const noexcept {
return domain().get().convert_min<
float>(); }
590 auto getMax() const noexcept {
return domain().get().convert_max<
float>(); }
592 using Process::ControlOutlet::ControlOutlet;
Definition: QmlObjects.hpp:114
Definition: DataStreamVisitor.hpp:202
Definition: QmlObjects.hpp:287
Definition: QmlObjects.hpp:249
Definition: QmlObjects.hpp:269
Definition: JSONVisitor.hpp:423
Definition: QmlObjects.hpp:361
Definition: QmlObjects.hpp:315
The id_base_t class.
Definition: Identifier.hpp:57
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Definition: QmlObjects.hpp:236
Definition: QmlObjects.hpp:230
Definition: QmlObjects.hpp:176
Definition: QmlObjects.hpp:194
Definition: QmlObjects.hpp:182
Definition: QmlObjects.hpp:188
Definition: QmlObjects.hpp:224
Definition: QmlObjects.hpp:242
Definition: QmlObjects.hpp:200
Definition: QmlObjects.hpp:212
Definition: QmlObjects.hpp:206
Definition: QmlObjects.hpp:218