FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
fast::LinePlotter Class Reference

#include <LinePlotter.hpp>

+ Inheritance diagram for fast::LinePlotter:
+ Collaboration diagram for fast::LinePlotter:

Public Slots

void processQueue ()
 
- Public Slots inherited from fast::Plotter
virtual void processQueue ()=0
 

Public Member Functions

uint addInputConnection (DataChannel::pointer channel, std::string name="")
 
void setBufferSize (int size)
 
- Public Member Functions inherited from fast::Plotter
virtual void setUpdateFrequency (float frequency)
 
virtual JKQTPlotter * getPlotterWidget ()
 
- Public Member Functions inherited from fast::ProcessObject
virtual ~ProcessObject ()
 
void update (int executeToken=-1)
 
RuntimeMeasurement::pointer getRuntime ()
 
RuntimeMeasurement::pointer getRuntime (std::string name)
 
RuntimeMeasurementsManager::pointer getAllRuntimes ()
 
void enableRuntimeMeasurements ()
 
void disableRuntimeMeasurements ()
 
void setMainDevice (ExecutionDevice::pointer device)
 
void setMainDeviceCriteria (const DeviceCriteria &citeria)
 
ExecutionDevice::pointer getMainDevice () const
 
void setDevice (uint deviceNumber, ExecutionDevice::pointer device)
 
void setDeviceCriteria (uint deviceNumber, const DeviceCriteria &criteria)
 
ExecutionDevice::pointer getDevice (uint deviceNumber) const
 
virtual DataChannel::pointer getOutputPort (uint portID=0)
 
virtual DataChannel::pointer getInputPort (uint portID=0)
 
virtual void setInputConnection (DataChannel::pointer port)
 
virtual void setInputConnection (uint portID, DataChannel::pointer port)
 
virtual void setInputData (DataObject::pointer data)
 
virtual void setInputData (uint portID, DataObject::pointer data)
 
int getNrOfInputConnections () const
 
int getNrOfOutputPorts () const
 
virtual std::string getNameOfClass () const =0
 
virtual void loadAttributes ()
 
std::shared_ptr< AttributegetAttribute (std::string id)
 
std::unordered_map< std::string, std::shared_ptr< Attribute > > getAttributes ()
 
void setAttributes (std::vector< std::shared_ptr< Attribute >> attributes)
 
void stopPipeline ()
 
void setModified (bool modified)
 
template<class DataType >
std::shared_ptr< DataTypeupdateAndGetOutputData (uint portID=0)
 
- Public Member Functions inherited from fast::Object
 Object ()
 
virtual ~Object ()
 
ReportergetReporter ()
 

Protected Member Functions

 LinePlotter ()
 
void execute () override
 
- Protected Member Functions inherited from fast::ProcessObject
 ProcessObject ()
 
virtual void preExecute ()
 
virtual void postExecute ()
 
template<class DataType >
void createInputPort (uint portID, bool required=true)
 
template<class DataType >
void createOutputPort (uint portID)
 
template<class DataType >
std::shared_ptr< DataTypegetInputData (uint portID=0)
 
template<class DataType >
std::shared_ptr< DataTypegetOutputData (uint portID=0)
 
void addOutputData (uint portID, DataObject::pointer data)
 
bool hasNewInputData (uint portID)
 
virtual void waitToFinish ()
 
void createOpenCLProgram (std::string sourceFilename, std::string name="")
 
cl::Program getOpenCLProgram (std::shared_ptr< OpenCLDevice > device, std::string name="", std::string buildOptions="")
 
void createFloatAttribute (std::string id, std::string name, std::string description, float initialValue)
 
void createIntegerAttribute (std::string id, std::string name, std::string description, int initialValue)
 
void createBooleanAttribute (std::string id, std::string name, std::string description, bool initialValue)
 
void createStringAttribute (std::string id, std::string name, std::string description, std::string initialValue)
 
float getFloatAttribute (std::string id)
 
int getIntegerAttribute (std::string id)
 
bool getBooleanAttribute (std::string id)
 
std::string getStringAttribute (std::string id)
 
std::vector< float > getFloatListAttribute (std::string id)
 
std::vector< int > getIntegerListAttribute (std::string id)
 
std::vector< bool > getBooleanListAttribute (std::string id)
 
std::vector< std::string > getStringListAttribute (std::string id)
 
void changeDeviceOnInputs (uint deviceNumber, ExecutionDevice::pointer device)
 
void validateInputPortExists (uint portID)
 
void validateOutputPortExists (uint portID)
 
- Protected Member Functions inherited from fast::Object
ReporterreportError ()
 
ReporterreportWarning ()
 
ReporterreportInfo ()
 
ReporterEnd reportEnd () const
 

Protected Attributes

int m_bufferSize = 64
 
std::map< uint, std::vector< double > > m_buffer
 
std::mutex m_queueMutex
 
std::deque< std::map< int, float > > m_queue
 
std::vector< double > m_xAxis
 
int m_currentIndex = 0
 
std::map< uint, std::string > m_names
 
- Protected Attributes inherited from fast::Plotter
JKQTPlotter * m_plotterWidget
 
QTimer * m_timer
 
- Protected Attributes inherited from fast::ProcessObject
bool mIsModified
 
int m_lastExecuteToken = -1
 
RuntimeMeasurementsManager::pointer mRuntimeManager
 
std::unordered_map< uint, bool > mRequiredInputs
 
std::unordered_map< uint, std::vector< uint > > mInputDevices
 
std::unordered_map< uint, ExecutionDevice::pointermDevices
 
std::unordered_map< uint, DeviceCriteriamDeviceCriteria
 
std::unordered_map< uint, DataChannel::pointermInputConnections
 
std::unordered_map< uint, std::vector< std::weak_ptr< DataChannel > > > mOutputConnections
 
std::unordered_map< uint, bool > mInputPorts
 
std::unordered_set< uintmOutputPorts
 
std::unordered_map< uint, std::pair< DataObject::pointer, uint64_t > > mLastProcessed
 
std::unordered_map< std::string, std::shared_ptr< OpenCLProgram > > mOpenCLPrograms
 
std::unordered_map< std::string, std::shared_ptr< Attribute > > mAttributes
 
std::unordered_map< std::string, std::string > m_frameData
 
std::unordered_set< std::string > m_lastFrame
 
int m_maximumNrOfFrames = -1
 
- Protected Attributes inherited from fast::Object
std::weak_ptr< ObjectmPtr
 

Additional Inherited Members

- Public Types inherited from fast::ProcessObject
typedef std::shared_ptr< ProcessObjectpointer
 
- Public Types inherited from fast::Object
typedef std::shared_ptr< Objectpointer
 
- Signals inherited from fast::Plotter
void newData ()
 
- Static Public Member Functions inherited from fast::ProcessObject
static std::string getStaticNameOfClass ()
 
- Static Public Member Functions inherited from fast::Object
static std::string getStaticNameOfClass ()
 

Constructor & Destructor Documentation

◆ LinePlotter()

fast::LinePlotter::LinePlotter ( )
protected

Member Function Documentation

◆ addInputConnection()

uint fast::LinePlotter::addInputConnection ( DataChannel::pointer  channel,
std::string  name = "" 
)

◆ execute()

void fast::LinePlotter::execute ( )
overrideprotectedvirtual

Implements fast::ProcessObject.

◆ processQueue

void fast::LinePlotter::processQueue ( )
slot

◆ setBufferSize()

void fast::LinePlotter::setBufferSize ( int  size)

Member Data Documentation

◆ m_buffer

std::map<uint, std::vector<double> > fast::LinePlotter::m_buffer
protected

◆ m_bufferSize

int fast::LinePlotter::m_bufferSize = 64
protected

◆ m_currentIndex

int fast::LinePlotter::m_currentIndex = 0
protected

◆ m_names

std::map<uint, std::string> fast::LinePlotter::m_names
protected

◆ m_queue

std::deque<std::map<int, float> > fast::LinePlotter::m_queue
protected

◆ m_queueMutex

std::mutex fast::LinePlotter::m_queueMutex
protected

◆ m_xAxis

std::vector<double> fast::LinePlotter::m_xAxis
protected

The documentation for this class was generated from the following file: