![]() |
VR-Exchange 2.1 API Documentation
|
Responsible for the display of Interactions received from the Portal on the VR-Exchange GUI. More...

Public Types | |
| enum | { TranslatorField = 0, PublisherField = 1, TimeReceivedField = 2, DescriptionField = 3 } |
| These are the columns used to display portal Interactions. More... | |
Public Member Functions | |
| DtInteractionViewComponent (DtPortalConnection *pConn, QWidget *parent) | |
| Constructor. | |
| virtual | ~DtInteractionViewComponent () |
| Destructor. | |
| virtual QWidget * | getGuiFrame () |
| Returns the GUI widget associated with this component. | |
| virtual void | clearInteractionList () |
| Removes all interactions from the interactions list. | |
| virtual void | resetStatistics () |
| resets statistical information | |
| virtual void | setMaxInteractionsToDisplay (int val) |
| This will truncate the interaction list to val interactions for each interaction type. | |
| virtual void | processInteraction (const DtPortalInteraction &inter, const DtString &description) |
| Update the display with this interaction and the description. | |
| virtual void | toggleShowInteractions (bool show) |
| Turns on and off the display of interactions. | |
Static Public Member Functions | |
| static DtInteractionViewComponent * | create (DtPortalConnection *pConn, QWidget *parent) |
Protected Types | |
| enum | { ClearInteractions = 1 } |
| typedef std::list < QTreeWidgetItem * > | QTreeWidgetItemList |
| typedef std::map < DtPortalMessageKind, DtU32 > | MessageKindToIntegerMap |
| typedef std::map < DtPortalMessageKind, QTreeWidgetItem * > | MessageKindToListViewItemMap |
| typedef std::map < DtPortalMessageKind, QTreeWidgetItemList * > | MessageKindToListViewItemListMap |
Protected Slots | |
| virtual void | displayStatistics () |
| Updates the statistics display for each interaction type. | |
| virtual void | interactionHeaderPopupMenuPressed (QAction *action) |
| Handles the display of the popup menu myHeaderPopupMenu. | |
Protected Member Functions | |
| virtual void | interactionHeaderRightButtonPressedEventHandler (const QPoint &point) |
| Handles a right mouse button press event for the header of #myInteractionListView. | |
| bool | eventFilter (QObject *target, QEvent *event) |
| Handles events registered with installEventFilter(). | |
| virtual void | truncateList (QTreeWidgetItemList *lst) |
| cuts the interactions found in list to the maxInteraction count, lst is modified by the function and must be valid. | |
| virtual QTreeWidgetItem * | findQtGroupItem (const DtPortalInteraction &inter) |
| Returns the QListViewGroup parent for this portalInteraction. | |
| virtual QTreeWidgetItemList * | findQtGroupList (const DtPortalInteraction &inter) |
| virtual QString | headerLabel (const QHeaderView *header, int section) |
| Qt Helper function to get the labels off a header. | |
Static Protected Member Functions | |
| static void | fireCb (const DtPortalFireInteraction &inter, void *userData) |
| static void | genericCb (const DtPortalGenericInteraction &inter, void *userData) |
| static void | detonationCb (const DtPortalDetonationInteraction &inter, void *userData) |
| static void | acknowledgeCallback (const DtPortalAcknowledgeInteraction &interaction, void *userData) |
| static void | collisionCallback (const DtPortalCollisionInteraction &interaction, void *userData) |
| static void | commentCallback (const DtPortalCommentInteraction &interaction, void *userData) |
| static void | eventReportCallback (const DtPortalEventReportInteraction &interaction, void *userData) |
| static void | startCallback (const DtPortalStartInteraction &interaction, void *userData) |
| static void | stopCallback (const DtPortalStopInteraction &interaction, void *userData) |
| static void | radioSignalCallback (const DtPortalRadioSignalInteraction &interaction, void *userData) |
| static void | dataCallback (const DtPortalDataInteraction &interaction, void *userData) |
| static void | dataQueryCallback (const DtPortalDataQueryInteraction &interaction, void *userData) |
| static void | setDataCallback (const DtPortalSetDataInteraction &interaction, void *userData) |
| static void | createEntityCallback (const DtPortalCreateEntityInteraction &interaction, void *userData) |
| static void | removeEntityCallback (const DtPortalRemoveEntityInteraction &interaction, void *userData) |
| static void | actionRequestCallback (const DtPortalActionRequestInteraction &interaction, void *userData) |
| static void | actionResponseCallback (const DtPortalActionResponseInteraction &interaction, void *userData) |
| static void | viewControlCallback (const DtPortalViewControlInteraction &interaction, void *userData) |
Protected Attributes | |
| enum MAKVrExchange::DtInteractionViewComponent:: { ... } | InteractionPopupMenuPosition |
| MessageKindToListViewItemMap | myListViewGroupMap |
| MessageKindToIntegerMap | myInteractionCountMap |
| MessageKindToListViewItemListMap | myListViewItemListMap |
| QGroupBox * | myGroupBox |
| QTimer * | myStatsTimer |
| int | myMaxInteractionCount |
| bool | myShowInteractionsFlag |
| DtTime | myInitialTime |
| DtPortalConnection * | myPConn |
| QTreeWidget * | myTreeWidget |
| QMenu * | myHeaderPopupMenu |
| std::vector< int > | myListViewColumnSize |
Private Member Functions | |
| DtInteractionViewComponent (const DtInteractionViewComponent &orig) | |
| Copy Ctor Not Implemented. | |
| DtInteractionViewComponent & | operator= (const DtInteractionViewComponent &orig) |
| Assignment Operator Not Implemented. | |
Responsible for the display of Interactions received from the Portal on the VR-Exchange GUI.
To display new interaction types this class needs to be subclassed.
|
protected |
|
protected |
|
protected |
|
protected |
| anonymous enum |
| MAKVrExchange::DtInteractionViewComponent::DtInteractionViewComponent | ( | DtPortalConnection * | pConn, |
| QWidget * | parent | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy Ctor Not Implemented.
|
virtual |
Returns the GUI widget associated with this component.
|
private |
Assignment Operator Not Implemented.
|
virtual |
Removes all interactions from the interactions list.
|
virtual |
resets statistical information
|
virtual |
This will truncate the interaction list to val interactions for each interaction type.
A Value of -1 means no truncation.
|
virtual |
Update the display with this interaction and the description.
|
virtual |
Turns on and off the display of interactions.
|
static |
Reimplemented in DtModInteractionViewComponent.
|
protectedvirtualslot |
Updates the statistics display for each interaction type.
This is called periodically by the stats timer.
|
protectedvirtualslot |
Handles the display of the popup menu myHeaderPopupMenu.
| [in] | index | The column which was selected from the popup menu. |
|
protectedvirtual |
Handles a right mouse button press event for the header of #myInteractionListView.
Displays the popup menu myHeaderPopupMenu. This function will first create myHeaderPopupMenu if it doesn't exist.
| [in] | point | The point where the mouse was clicked |
|
protected |
Handles events registered with installEventFilter().
If a QObject registers itself with installEventFilter() using an instantiation of this class; then this function will handle that event.
| [in] | target | |
| [in] | event |
true if the target's event was handled.false otherwise
|
protectedvirtual |
cuts the interactions found in list to the maxInteraction count, lst is modified by the function and must be valid.
|
protectedvirtual |
Returns the QListViewGroup parent for this portalInteraction.
|
protectedvirtual |
|
protectedvirtual |
Qt Helper function to get the labels off a header.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
| enum { ... } MAKVrExchange::DtInteractionViewComponent::InteractionPopupMenuPosition |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |