Public Member Functions | Public Attributes | List of all members
PJ::PlotDataMapRef Struct Reference

#include <plotdata.h>

Public Member Functions

TimeseriesMap::iterator addNumeric (const std::string &name, PlotGroup::Ptr group={})
 
ScatterXYMap::iterator addScatterXY (const std::string &name, PlotGroup::Ptr group={})
 
StringSeriesMap::iterator addStringSeries (const std::string &name, PlotGroup::Ptr group={})
 
AnySeriesMap::iterator addUserDefined (const std::string &name, PlotGroup::Ptr group={})
 
void clear ()
 
bool erase (const std::string &name)
 
std::unordered_set< std::string > getAllNames () const
 
PlotGroup::Ptr getOrCreateGroup (const std::string &name)
 
PlotDatagetOrCreateNumeric (const std::string &name, PlotGroup::Ptr group={})
 
PlotDataXYgetOrCreateScatterXY (const std::string &name, PlotGroup::Ptr group={})
 
StringSeriesgetOrCreateStringSeries (const std::string &name, PlotGroup::Ptr group={})
 
PlotDataAnygetOrCreateUserDefined (const std::string &name, PlotGroup::Ptr group={})
 
void setMaximumRangeX (double range)
 

Public Attributes

std::unordered_map< std::string, PlotGroup::Ptrgroups
 Each series can have (optionally) a group. Groups can have their own properties. More...
 
TimeseriesMap numeric
 Numerical timeseries. More...
 
ScatterXYMap scatter_xy
 
StringSeriesMap strings
 Series of strings. More...
 
AnySeriesMap user_defined
 

Detailed Description

Definition at line 34 of file plotdata.h.

Member Function Documentation

◆ addNumeric()

TimeseriesMap::iterator PJ::PlotDataMapRef::addNumeric ( const std::string &  name,
PlotGroup::Ptr  group = {} 
)

Definition at line 51 of file plotdata.cpp.

◆ addScatterXY()

ScatterXYMap::iterator PJ::PlotDataMapRef::addScatterXY ( const std::string &  name,
PlotGroup::Ptr  group = {} 
)

Definition at line 45 of file plotdata.cpp.

◆ addStringSeries()

StringSeriesMap::iterator PJ::PlotDataMapRef::addStringSeries ( const std::string &  name,
PlotGroup::Ptr  group = {} 
)

Definition at line 63 of file plotdata.cpp.

◆ addUserDefined()

AnySeriesMap::iterator PJ::PlotDataMapRef::addUserDefined ( const std::string &  name,
PlotGroup::Ptr  group = {} 
)

Definition at line 57 of file plotdata.cpp.

◆ clear()

void PJ::PlotDataMapRef::clear ( )

Definition at line 125 of file plotdata.cpp.

◆ erase()

bool PJ::PlotDataMapRef::erase ( const std::string &  name)

Definition at line 148 of file plotdata.cpp.

◆ getAllNames()

std::unordered_set< std::string > PJ::PlotDataMapRef::getAllNames ( ) const

Definition at line 107 of file plotdata.cpp.

◆ getOrCreateGroup()

PlotGroup::Ptr PJ::PlotDataMapRef::getOrCreateGroup ( const std::string &  name)

Definition at line 93 of file plotdata.cpp.

◆ getOrCreateNumeric()

PlotData & PJ::PlotDataMapRef::getOrCreateNumeric ( const std::string &  name,
PlotGroup::Ptr  group = {} 
)

Definition at line 75 of file plotdata.cpp.

◆ getOrCreateScatterXY()

PlotDataXY & PJ::PlotDataMapRef::getOrCreateScatterXY ( const std::string &  name,
PlotGroup::Ptr  group = {} 
)

Definition at line 69 of file plotdata.cpp.

◆ getOrCreateStringSeries()

StringSeries & PJ::PlotDataMapRef::getOrCreateStringSeries ( const std::string &  name,
PlotGroup::Ptr  group = {} 
)

Definition at line 81 of file plotdata.cpp.

◆ getOrCreateUserDefined()

PlotDataAny & PJ::PlotDataMapRef::getOrCreateUserDefined ( const std::string &  name,
PlotGroup::Ptr  group = {} 
)

Definition at line 87 of file plotdata.cpp.

◆ setMaximumRangeX()

void PJ::PlotDataMapRef::setMaximumRangeX ( double  range)

Definition at line 132 of file plotdata.cpp.

Member Data Documentation

◆ groups

std::unordered_map<std::string, PlotGroup::Ptr> PJ::PlotDataMapRef::groups

Each series can have (optionally) a group. Groups can have their own properties.

Definition at line 52 of file plotdata.h.

◆ numeric

TimeseriesMap PJ::PlotDataMapRef::numeric

Numerical timeseries.

Definition at line 39 of file plotdata.h.

◆ scatter_xy

ScatterXYMap PJ::PlotDataMapRef::scatter_xy

Definition at line 36 of file plotdata.h.

◆ strings

StringSeriesMap PJ::PlotDataMapRef::strings

Series of strings.

Definition at line 46 of file plotdata.h.

◆ user_defined

AnySeriesMap PJ::PlotDataMapRef::user_defined

Timeseries that can contain any data structure. PlotJuggler can not display it natively, only plugins can manipulate them.

Definition at line 43 of file plotdata.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52