![]() |
Project
|
Helper to draw metrics. More...
Public Types | |
using | NumRecordsCallback = std::function< size_t(void)> |
using | RecordCallback = std::function< RECORD(size_t)> |
using | NumItemsCallback = std::function< size_t(RECORD const &)> |
using | ItemCallback = std::function< ITEM const &(RECORD const &, size_t)> |
using | ValueCallback = std::function< int(ITEM const &)> |
using | ColorCallback = std::function< ImU32(int value)> |
using | ContextCallback = std::function< CONTEXT &()> |
using | PaintCallback = std::function< void(int row, int column, int value, ImU32 color, CONTEXT const &context)> |
Static Public Member Functions | |
static void | draw (const char *name, ImVec2 const &offset, ImVec2 const &sizeHint, CONTEXT const &context, NumRecordsCallback const &getNumRecords, RecordCallback const &getRecord, NumItemsCallback const &getNumItems, ItemCallback const &getItem, ValueCallback const &getValue, ColorCallback const &getColor, PaintCallback const &describeCell) |
static NumRecordsCallback | metric1D () |
static NumRecordsCallback | metric2D (Metric2DViewIndex &viewIndex) |
static NumItemsCallback | items1D () |
static NumItemsCallback | items2D (Metric2DViewIndex const &viewIndex) |
template<typename T > | |
static ItemCallback | latestMetric (DeviceMetricsInfo const &metrics, Metric2DViewIndex const &viewIndex) |
template<typename T > | |
static RecordCallback | simpleRecord () |
template<typename T > | |
static ValueCallback | simpleValue () |
static ColorCallback | colorPalette (std::vector< ImU32 > const &colors, int minValue, int maxValue) |
Helper to draw metrics.
Definition at line 246 of file FrameworkGUIDevicesGraph.cxx.
using o2::framework::gui::MetricsPainter< RECORD, ITEM, CONTEXT >::ColorCallback = std::function<ImU32(int value)> |
Definition at line 252 of file FrameworkGUIDevicesGraph.cxx.
using o2::framework::gui::MetricsPainter< RECORD, ITEM, CONTEXT >::ContextCallback = std::function<CONTEXT&()> |
Definition at line 253 of file FrameworkGUIDevicesGraph.cxx.
using o2::framework::gui::MetricsPainter< RECORD, ITEM, CONTEXT >::ItemCallback = std::function<ITEM const&(RECORD const&, size_t)> |
Definition at line 250 of file FrameworkGUIDevicesGraph.cxx.
using o2::framework::gui::MetricsPainter< RECORD, ITEM, CONTEXT >::NumItemsCallback = std::function<size_t(RECORD const&)> |
Definition at line 249 of file FrameworkGUIDevicesGraph.cxx.
using o2::framework::gui::MetricsPainter< RECORD, ITEM, CONTEXT >::NumRecordsCallback = std::function<size_t(void)> |
Definition at line 247 of file FrameworkGUIDevicesGraph.cxx.
using o2::framework::gui::MetricsPainter< RECORD, ITEM, CONTEXT >::PaintCallback = std::function<void(int row, int column, int value, ImU32 color, CONTEXT const& context)> |
Definition at line 254 of file FrameworkGUIDevicesGraph.cxx.
using o2::framework::gui::MetricsPainter< RECORD, ITEM, CONTEXT >::RecordCallback = std::function<RECORD(size_t)> |
Definition at line 248 of file FrameworkGUIDevicesGraph.cxx.
using o2::framework::gui::MetricsPainter< RECORD, ITEM, CONTEXT >::ValueCallback = std::function<int(ITEM const&)> |
Definition at line 251 of file FrameworkGUIDevicesGraph.cxx.
|
inlinestatic |
Definition at line 338 of file FrameworkGUIDevicesGraph.cxx.
|
inlinestatic |
Definition at line 256 of file FrameworkGUIDevicesGraph.cxx.
|
inlinestatic |
Definition at line 295 of file FrameworkGUIDevicesGraph.cxx.
|
inlinestatic |
Definition at line 300 of file FrameworkGUIDevicesGraph.cxx.
|
inlinestatic |
Definition at line 311 of file FrameworkGUIDevicesGraph.cxx.
|
inlinestatic |
Definition at line 280 of file FrameworkGUIDevicesGraph.cxx.
|
inlinestatic |
Definition at line 285 of file FrameworkGUIDevicesGraph.cxx.
|
inlinestatic |
Definition at line 325 of file FrameworkGUIDevicesGraph.cxx.
|
inlinestatic |
Definition at line 333 of file FrameworkGUIDevicesGraph.cxx.