0.2.0
Loading...
Searching...
No Matches
NAV::Plot::PinData Struct Reference

Information needed to plot the data on a certain pin. More...

Classes

struct  PlotData
 Stores the actual data coming from a pin. More...
 

Public Types

enum class  PinType : int {
  Flow ,
  Bool ,
  Int ,
  Float ,
  Matrix
}
 Possible Pin types. More...
 

Public Member Functions

void addPlotDataItem (size_t dataIndex, const std::string &displayName)
 Adds a plotData Element to the list.
 
PinDataoperator= (const PinData &rhs)
 Copy assignment operator.
 
PinDataoperator= (PinData &&rhs) noexcept
 Move assignment operator.
 
 PinData ()=default
 Constructor.
 
 PinData (const PinData &other)
 Copy constructor.
 
 PinData (PinData &&other) noexcept
 Move constructor.
 
 ~PinData ()=default
 Destructor.
 

Public Attributes

std::string dataIdentifier
 Data Identifier of the connected pin.
 
int dynamicDataStartIndex
 Dynamic data start index.
 
std::vector< std::tuple< double, InsTime, std::string, int32_t > > events
 Events with relative time, absolute time, tooltip text and data Index (-1 means all)
 
std::mutex mutex
 Mutex to lock the buffer so that the GUI thread and the calculation threads don't cause a data race.
 
PinType pinType
 Pin Type.
 
std::vector< PlotDataplotData
 List with all the data.
 
int size
 Size of all buffers of the plotData elements.
 
int stride
 Amount of points to skip for plotting.
 

Detailed Description

Information needed to plot the data on a certain pin.

Member Enumeration Documentation

◆ PinType

Possible Pin types.

Enumerator
Flow 

NodeData Trigger.

Bool 

Boolean.

Int 

Integer Number.

Float 

Floating Point Number.

Matrix 

Matrix Object.

Constructor & Destructor Documentation

◆ PinData() [1/2]

NAV::Plot::PinData::PinData ( const PinData & other)

Copy constructor.

Parameters
[in]otherThe other element to copy

◆ PinData() [2/2]

NAV::Plot::PinData::PinData ( PinData && other)
noexcept

Move constructor.

Parameters
[in]otherThe other element to move

Member Function Documentation

◆ addPlotDataItem()

void NAV::Plot::PinData::addPlotDataItem ( size_t dataIndex,
const std::string & displayName )

Adds a plotData Element to the list.

Parameters
[in]dataIndexIndex where to add the data to
[in]displayNameDisplay name of the contained data

◆ operator=() [1/2]

Copy assignment operator.

Parameters
[in]rhsThe other element to copy

◆ operator=() [2/2]

Move assignment operator.

Parameters
[in]rhsThe other element to move

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