|
VR-Engage
2.3
|
This page covers the Manager UI and status listener used by VR-Engage's vrfGui plugins. These headers do not define backend simulation managers.
vreManager/vreListener.h changes DtVreAppStatusCallbackFcn from void (*)(unsigned long, void*) to void (*)(const std::string&, void*). VreAppStatusMap is now std::map<std::string, VreAppStatus>. Update callbacks, map keys, and calls to DtVreStatusListener::lookupVreApp(const std::string& id). Derived listeners must also update the protected invokeCallbacks() and removeVreApplication() overrides to use const std::string&.
VreAppStatus::myId becomes myStationId (std::string). myUUID now has type DtUUID rather than DtString. myName was removed, and myRoleName now records the assigned entity role. Use the station ID as the stable identity; do not key assignments by a numeric ID. The Manager widget's callback and status-handler methods now take const std::string& too. See Station message API changes for the matching message changes.
The headers vreTableModel.h, vreTableView.h, vreEntitySelectionDialog.h, vreEntitySelectionFilter.h, roleItemDelegate.h, and spectatorItemDelegate.h were removed. Remove direct includes and subclasses of those UI types. For custom Manager views, use vreEntityRoleTreeModel.h, vreStationListModel.h, stationListView.h, entityRoleTreeDelegate.h, and stationItemDelegate.h. DtVreManagerWidget no longer exposes its former onTableItemClicked(), onEntitySelected(), or onEntitySelectionDialogDone() hooks; adapt subclasses to the tree/list callbacks declared in vreManagerWidget.h.
vreManager/vreAssignmentTracker.h adds makVre::DtVreAssignmentTracker. Call setPendingAssignment() to stage an entity-role assignment, and getPendingAssignments() to obtain submissions. getPendingCounts() and hasUnresolvedConflicts() expose conflicts before submission. The tracker combines confirmed and pending assignments for the UI.
vreManager/vreAssignmentPersistence.h adds DtVreAssignmentPersistence::buildFileData(const DtVreAssignmentTracker&), saveToFile(const QString&, const DtPersistedAssignmentFile&, QString&), and loadFromFile(const QString&, DtPersistedAssignmentFile&, QString&, QStringList&). Use these helpers to save and restore Manager assignments; check the returned status and error text. The tracker is intended for use on the GUI thread.