17 #include <QQmlPropertyMap>
22 #include <unordered_set>
41 class cPropertiesQtMapper;
56 Q_PROPERTY(QQmlPropertyMap*
properties READ GetProperties NOTIFY propertiesChanged)
75 Q_INVOKABLE QObject*
createInputPin(
const QString& strName,
bool bForwardTriggerViaOutputPins =
true);
87 Q_INVOKABLE QObject*
createOutputPin(
const QString& strName,
const QJSValue& oStreamType = QJSValue());
99 Q_INVOKABLE QObject*
createRunner(
const QString& strName,
bool bForwardTriggerViaOutputPins =
true);
121 Q_INVOKABLE
void linkTrigger(
const QString& strSource,
const QString& strDestination);
139 Q_INVOKABLE
void setProperty(
const QString& strName,
const QVariant& oValue,
const QString& strType =
"");
141 void enablePropertyValueOverride();
152 void propertiesChanged();
166 void PostTriggerHandler(
bool bForwardTriggerViaOutputPins, qint64 tmTrigger);
168 QQmlPropertyMap* GetProperties();
172 QJSEngine& m_oEngine;
173 bool m_bUseAsyncSlotConnections;
174 std::mutex m_oProcessingLock;
175 std::vector<QPointer<cScriptReader>> m_oScriptReader;
176 std::vector<streaming::ISampleWriter*> m_oWriters;
177 std::unique_ptr<cPropertiesQtMapper> m_pProperties;
178 bool m_bEnablePropertyValueOverride =
false;
187 namespace filter_properties
190 static constexpr
auto strSynchronousTriggerProcessingProperty =
"__synchronous_trigger_processing";
A common result class usable as return value throughout.
Base class for ADTF filters.
Provides the global 'filter' object within scripts.
void connected()
Emited after all Pins have been connected.
void propertyChanged(const QString &strName, const QVariant &oValue)
Emited for each property change.
Q_INVOKABLE void linkTrigger(const QString &strSource, const QString &strDestination)
Creates an internal Trigger Pipe between two Runners.
Q_INVOKABLE QObject * createInterfaceClient(const QString &strName, const QString &strInterface)
Create a new interface client.
Q_INVOKABLE QObject * createOutputPin(const QString &strName, const QJSValue &oStreamType=QJSValue())
Creates a new Output Pin.
Q_INVOKABLE QObject * createRunner(const QString &strName, bool bForwardTriggerViaOutputPins=true)
Creates a new Runner.
Q_INVOKABLE QVariant getProperty(const QString &strName)
Q_INVOKABLE QObject * createInputPin(const QString &strName, bool bForwardTriggerViaOutputPins=true)
Creates a new Input Pin.
Q_INVOKABLE void setProperty(const QString &strName, const QVariant &oValue, const QString &strType="")
QQmlPropertyMap * properties
A Reader that is returned by cScriptFilter::createInputPin.
Copyright © Audi Electronics Venture GmbH.
Namespace for entire ADTF SDK.
A timestamp with nanosecond precision.