FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
#include <DataChannel.hpp>
Public Types | |
typedef std::shared_ptr< DataChannel > | pointer |
![]() | |
typedef std::shared_ptr< Object > | pointer |
Public Member Functions | |
virtual void | addFrame (DataObject::pointer data)=0 |
template<class T = DataObject> | |
std::shared_ptr< T > | getNextFrame () |
virtual int | getSize ()=0 |
virtual void | setMaximumNumberOfFrames (uint frames)=0 |
virtual void | stop ()=0 |
virtual bool | hasCurrentData ()=0 |
virtual DataObject::pointer | getFrame ()=0 |
std::shared_ptr< ProcessObject > | getProcessObject () const |
void | setProcessObject (std::shared_ptr< ProcessObject > po) |
template<> | |
FAST_EXPORT std::shared_ptr< DataObject > | getNextFrame () |
![]() | |
Object () | |
virtual | ~Object () |
Reporter & | getReporter () |
Protected Member Functions | |
virtual DataObject::pointer | getNextDataFrame ()=0 |
DataChannel () | |
![]() | |
Reporter & | reportError () |
Reporter & | reportWarning () |
Reporter & | reportInfo () |
ReporterEnd | reportEnd () const |
Protected Attributes | |
bool | m_stop |
std::mutex | m_mutex |
std::shared_ptr< ProcessObject > | m_processObject |
![]() | |
std::weak_ptr< Object > | mPtr |
Additional Inherited Members | |
![]() | |
static std::string | getStaticNameOfClass () |
typedef std::shared_ptr<DataChannel> fast::DataChannel::pointer |
|
protected |
|
pure virtual |
Add frame to the data channel. This call may block if the buffer is full.
Implemented in fast::QueuedDataChannel, and fast::NewestFrameDataChannel.
|
pure virtual |
Get current frame, throws if current frame is not available.
Implemented in fast::QueuedDataChannel, and fast::NewestFrameDataChannel.
|
protectedpure virtual |
Implemented in fast::QueuedDataChannel, fast::NewestFrameDataChannel, and fast::StaticDataChannel.
std::shared_ptr< T > fast::DataChannel::getNextFrame |
Get next frame in the data channel. It will block until the frame is available.
FAST_EXPORT std::shared_ptr<DataObject> fast::DataChannel::getNextFrame | ( | ) |
std::shared_ptr<ProcessObject> fast::DataChannel::getProcessObject | ( | ) | const |
|
pure virtual |
Implemented in fast::QueuedDataChannel, and fast::NewestFrameDataChannel.
|
pure virtual |
Implemented in fast::QueuedDataChannel, and fast::NewestFrameDataChannel.
|
pure virtual |
Set the maximum nr of frames that can be stored in this data channel
Implemented in fast::QueuedDataChannel, and fast::NewestFrameDataChannel.
void fast::DataChannel::setProcessObject | ( | std::shared_ptr< ProcessObject > | po | ) |
|
pure virtual |
This will unblock if this DataChannel is currently blocking. Used to stop a pipeline.
Implemented in fast::QueuedDataChannel, and fast::NewestFrameDataChannel.
|
protected |
|
protected |
|
protected |