0.2.0
Loading...
Searching...
No Matches
NAV::Plot::PlotInfo::PlotItem Struct Reference

Info needed to draw a data set. More...

Classes

struct  Style
 Specifying the look of a certain line in the plot. More...
 
struct  Tooltip
 Tooltip info. More...
 

Public Member Functions

constexpr bool operator== (const PlotItem &rhs) const
 Equal comparison operator (needed to search the vector with std::find)
 
 PlotItem ()=default
 Default constructor (needed to make serialization with json working)
 
 PlotItem (size_t pinIndex, size_t dataIndex, std::string displayName)
 Constructor.
 
 PlotItem (size_t pinIndex, size_t dataIndex, std::string displayName, ImAxis axis)
 Constructor.
 

Public Attributes

ImAxis axis
 Axis to plot the data on (Y1, Y2, Y3)
 
ScrollingBuffer< ImU32 > colormapMaskColors
 Buffer for the colormap mask.
 
size_t colormapMaskVersion
 Colormap version (to track updates of the colormap)
 
size_t dataIndex
 Index of the data on the pin.
 
std::string displayName
 Display name of the data (not changing and unique)
 
ScrollingBuffer< double > eventMarker
 Buffer for event markers.
 
std::vector< std::tuple< double, double, Tooltip > > eventTooltips
 List of tooltips (x,y, tooltip)
 
ScrollingBuffer< ImU32 > markerColormapMaskColors
 Buffer for the colormap mask.
 
size_t markerColormapMaskVersion
 Colormap version (to track updates of the colormap)
 
size_t pinIndex
 Index of the pin where the data came in.
 
Style style
 

Detailed Description

Info needed to draw a data set.

Constructor & Destructor Documentation

◆ PlotItem() [1/2]

NAV::Plot::PlotInfo::PlotItem::PlotItem ( size_t pinIndex,
size_t dataIndex,
std::string displayName )
inline

Constructor.

Parameters
[in]pinIndexIndex of the pin where the data came in
[in]dataIndexIndex of the data on the pin
[in]displayNameDisplay name of the data

◆ PlotItem() [2/2]

NAV::Plot::PlotInfo::PlotItem::PlotItem ( size_t pinIndex,
size_t dataIndex,
std::string displayName,
ImAxis axis )
inline

Constructor.

Parameters
[in]pinIndexIndex of the pin where the data came in
[in]dataIndexIndex of the data on the pin
[in]displayNameDisplay name of the data
[in]axisAxis to plot the data on (Y1, Y2, Y3)

Member Function Documentation

◆ operator==()

constexpr bool NAV::Plot::PlotInfo::PlotItem::operator== ( const PlotItem & rhs) const
inlineconstexpr

Equal comparison operator (needed to search the vector with std::find)

Parameters
[in]rhsRight-hand-side of the operator
Returns
True if the pin and data indices match

Member Data Documentation

◆ style

Style NAV::Plot::PlotInfo::PlotItem::style

Defines how the data should be plotted


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