![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Stream/StreamAlgorithmBase.h>
Interface for algorithms that work on streams. More...
Inheritance diagram for StreamAlgorithmBase:Interface for algorithms that work on streams.
It is implemented by StreamAlgorithm and StreamIoAlgorithm. To create an algorithm for a stream a user should use CreateStreamAlgorithm or CreateStreamIoAlgorithm.
Public Member Functions | |
| bool | isOutputTaken () const |
| virtual Stream * | stream ()=0 |
| virtual DataGroup * | dataGroup () |
| virtual OwningDataList | takeOutput () |
| Returns an OwningDataList containing the stream and sets m_isOutputTaken to true. | |
Public Member Functions inherited from SignalReceiver | |
| SignalReceiver ()=default | |
| Default constructor. | |
| SignalReceiver (const SignalReceiver &other) | |
| Copy constructor, does not copy any existing signal connections from other. | |
| SignalReceiver & | operator= (SignalReceiver rhs) |
| Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs. | |
| virtual | ~SignalReceiver () |
| Virtual destructor disconnects from all connected signals. | |
Protected Member Functions | |
| virtual void | resetStream ()=0 |
Deletes the stream if m_isOutputTaken is false. In any case sets the stream to nullptr. | |
Protected Member Functions inherited from SignalReceiver | |
| void | disconnectAll () |
| Disconnects all existing connections. | |
Protected Attributes | |
| bool | m_isOutputTaken = false |
|
pure virtual |
Implemented in CreateGroupedStereoImageStreamAlgorithm, PlaybackAlgorithm, and StreamAlgorithmExecutor.
|
virtual |
Returns an OwningDataList containing the stream and sets m_isOutputTaken to true.
If m_isOutputTaken is already true then an empty list is returned.
Reimplemented in CreateGroupedStereoImageStreamAlgorithm, CreateStreamAlgorithm< T, autoOpenDefaultValue, autoConnectDefaultValue, takesArguments >, CreateStreamIoAlgorithm< T, autoOpenDefaultValue, autoConnectDefaultValue >, PlaybackAlgorithm, PlaybackStereoImageStreamAlgorithm, and StreamAlgorithmExecutor.
|
protectedpure virtual |
Deletes the stream if m_isOutputTaken is false. In any case sets the stream to nullptr.
Implemented in CreateGroupedStereoImageStreamAlgorithm, CreateStreamAlgorithm< T, autoOpenDefaultValue, autoConnectDefaultValue, takesArguments >, CreateStreamIoAlgorithm< T, autoOpenDefaultValue, autoConnectDefaultValue >, PlaybackAlgorithm, PlaybackStereoImageStreamAlgorithm, and StreamAlgorithmExecutor.