fast::LinePlotter class

Base classes

class Plotter

Public functions

auto addInputConnection(DataChannel::pointer channel, std::string name = "") -> uint
void setBufferSize(int size)
void addHorizontalLine(float x, Color color = Color::Green())
void setCircularMode(bool circular)

Public slots

void processQueue()

Protected functions

void removeUnusedHorizontalLines()
void execute() override

Protected variables

int m_bufferSize
std::map<uint, std::vector<double>> m_buffer
std::mutex m_queueMutex
std::deque<std::map<int, Vector2f>> m_queue
std::vector<double> m_xAxis
int m_currentIndex
std::map<uint, std::string> m_names
std::uint64_t m_frameCounter
bool m_circularMode
int64_t m_current
std::vector<std::pair<float, JKQTPGeoInfiniteLine*>> m_horizontalLines
std::mutex m_horizontalLinesMutex