![]() |
VR-Exchange 2.2 API Documentation
|
A view component which plots broker statistics. More...

Classes | |
| struct | BrokerInfoStruct |
| Stores general information about a broker's plotted series. More... | |
Signals | |
| void | legendVisibilityChanged (bool show) |
Public Member Functions | |
| DtStatisticsViewComponent (DtPortalConnection *pconn, QWidget *parent) | |
| The CTOR. | |
| virtual | ~DtStatisticsViewComponent () |
| The DTOR. | |
| virtual void | setInitializer (DtPortalAppInitializer *originalInit) |
| Sets the initializers used to store portal settings. | |
| virtual void | toggleShowStatistics (bool show) |
| Turns on and off the display of interactions. | |
| virtual void | toggleLegend (bool show) |
| Shows or hides the plot's legend. | |
Protected Types | |
| typedef std::map< DtString, unsigned int > | FieldIdMap |
| Maps a field name to its series id. | |
| typedef std::map< DtU32, FieldIdMap > | BrokerFieldIdMap |
| typedef std::map< unsigned int, DtU32 > | FieldBrokerMap |
| typedef std::map< DtU32, BrokerInfoStruct > | BrokerInfoMap |
Protected Slots | |
| virtual void | tick () |
| Scrolls the plot and times out expired series. | |
| virtual void | toggleLegend () |
| Toggles the visibility of the plot's legend. | |
| virtual void | onContextMenuRequested (const QPoint &where) |
| Receives notification that the user right-clicked on the plot. | |
| virtual void | onSeriesToggled (const DtString &brokerName, const DtString &fieldName, bool enabled) |
| Turns the series on and scrolls the plot to avoid jumping. | |
| virtual void | onSeriesStyleChanged (const DtString &brokerName, const DtString &fieldName, unsigned int style) |
| Updates the series to use the given style. | |
| virtual void | onSeriesColorChanged (const DtString &brokerName, const DtString &fieldName, int r, int g, int b) |
| Updates the series to use the given color. | |
| virtual void | onLegendDialogClosed () |
| Receives notification that the legend dialog was closed manually. | |
Protected Member Functions | |
| void | initView () |
| Create the view. | |
| void | connectToSignals () |
| Connect to event signals from widgets. | |
| void | initializeColors () |
| Initializes the colors from the initializers. | |
| virtual void | receivePortalMessage (const DtPortalMessage &msg) |
| Process an incoming generic portal message (update the plot). | |
| virtual void | initPortalMessageFields () |
| Initializes the units and tooltips for the portal message fields. | |
| virtual void | plotPortalMessageCounts () |
| Constructs a report on the portal messages and processes it. | |
| virtual void | processBrokerRemoval (const DtString &broker) |
| Removes the broker section for the given broker from the legend. | |
| virtual void | receiveStatisticsReport (const DtStatisticsReportMessage &message) |
| Process an incoming statistics report message (update the plot). | |
| virtual DtU32 | getSeriesId (DtU32 brokerId, const DtString &fieldName) |
| Look up the series ID for the given broker field. | |
| virtual bool | lookupSeriesBrokerField (unsigned int seriesId, DtString &brokerName, DtString &fieldName) |
| Look up the broker and field names for the given series. | |
| virtual void | saveSeriesRecord (const DtSeriesColorRecord &rec) |
| Saves the record to the portal's initializers and saves to file. | |
| virtual void | getSeriesRecord (const DtString &brokername, const DtString &fieldname, DtSeriesColorRecord &rec) |
| Get the pen for the series or create a new one. | |
Static Protected Member Functions | |
| static void | portalMessageCb (const DtPortalMessage &msg, void *usr) |
| Static callback for incoming generic portal messages. | |
| static void | abnormalRemovalCb (const DtAbnormalBrokerExitMessage &msg, void *usr) |
| Receives notification that a broker is dying abnormally. | |
| static void | removeBrokerCb (const DtBrokerExitingMessage &msg, void *usr) |
| Receives notification that a broker is shutting down. | |
| static void | statisticsReportCb (const DtStatisticsReportMessage &msg, void *usr) |
| Static callback for incoming statistics report messages. | |
Protected Attributes | |
| BrokerFieldIdMap | myBrokerFieldIdMap |
| FieldBrokerMap | myFieldBrokerMap |
| BrokerInfoMap | myBrokerInfoMap |
| DtPlotColorSettings * | myPlotColorSettings |
| DtPortalAppInitializer * | myInitializer |
| QWidget * | myParent |
| float | myNextHue |
| int | myNextStyle |
| float | myHueInterval |
| DtU32 | myNextSeriesId |
| unsigned int | myPortalObjectCount |
| unsigned int | myPortalInteractionCount |
| unsigned int | myPortalControlMessageCount |
| unsigned int | myPortalOtherMessageCount |
| DtTime | myLastMessageReportTime |
| DtTime | myVisibleTimeRange |
| DtPortalConnection * | myPConn |
| DtPlotterLegendDialog * | myLegendDialog |
| DtFrameratePlot * | myFpsPlot |
| QPushButton * | myLegendButton |
| QMenu * | myLegendContextMenu |
| QTimer * | myTimer |
Private Member Functions | |
| DtStatisticsViewComponent (DtStatisticsViewComponent &other) | |
| Copy CTOR not Implemented – do not copy. | |
| DtStatisticsViewComponent & | operator= (DtStatisticsViewComponent &other) |
| Assignment Operator not Implemented – do not copy. | |
A view component which plots broker statistics.
|
protected |
Maps a field name to its series id.
Note: Field names are shared among brokers, this map is only valid for use with one broker id.
|
protected |
|
protected |
|
protected |
| MAKVrExchange::DtStatisticsViewComponent::DtStatisticsViewComponent | ( | DtPortalConnection * | pconn, |
| QWidget * | parent | ||
| ) |
The CTOR.
|
virtual |
The DTOR.
|
private |
Copy CTOR not Implemented – do not copy.
|
virtual |
Sets the initializers used to store portal settings.
|
virtual |
Turns on and off the display of interactions.
|
virtual |
Shows or hides the plot's legend.
Does not destroy and recreate the legend dialog every time.
|
signal |
|
protected |
Create the view.
Non-virtual - Called from CTOR.
|
protected |
Connect to event signals from widgets.
Non-virtual - Called from CTOR.
|
protected |
Initializes the colors from the initializers.
Non-virtual - Called from CTOR.
|
staticprotected |
Static callback for incoming generic portal messages.
Calls DtStatisticsViewComponent::receivePortalMessage( const DtPortalMessage& ).
|
protectedvirtual |
Process an incoming generic portal message (update the plot).
|
protectedvirtual |
Initializes the units and tooltips for the portal message fields.
Called upon initializer initialization.
|
protectedvirtual |
Constructs a report on the portal messages and processes it.
Calls DtStatisticsViewComponent::receiveStatisticsReport( const DtStatisticsReportMessage& ).
|
staticprotected |
Receives notification that a broker is dying abnormally.
Removes the broker section from the legend dialog.
|
staticprotected |
Receives notification that a broker is shutting down.
Removes the broker section from the legend dialog.
|
protectedvirtual |
Removes the broker section for the given broker from the legend.
|
staticprotected |
Static callback for incoming statistics report messages.
Calls DtStatisticsViewComponent::receiveStatisticsReport( const DtStatisticsReportMessage& ).
|
protectedvirtual |
Process an incoming statistics report message (update the plot).
|
protectedvirtual |
Look up the series ID for the given broker field.
|
protectedvirtual |
Look up the broker and field names for the given series.
|
protectedvirtual |
Saves the record to the portal's initializers and saves to file.
If initializers weren't set using setIntializers(..), do nothing.
|
protectedvirtual |
Get the pen for the series or create a new one.
|
protectedvirtualslot |
Scrolls the plot and times out expired series.
|
protectedvirtualslot |
Toggles the visibility of the plot's legend.
Does not destroy and recreate the legend dialog every time.
|
protectedvirtualslot |
Receives notification that the user right-clicked on the plot.
|
protectedvirtualslot |
Turns the series on and scrolls the plot to avoid jumping.
|
protectedvirtualslot |
Updates the series to use the given style.
|
protectedvirtualslot |
Updates the series to use the given color.
|
protectedvirtualslot |
Receives notification that the legend dialog was closed manually.
Signals to listening widgets that the legend state changed.
|
private |
Assignment Operator not Implemented – do not copy.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |