21#include <QAbstractListModel>
29class DtObserverStateRecordsList;
32class DtObserverStateRecord;
140 virtual void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder)
override;
147 virtual bool removeRows(
int row,
int column = 0,
const QModelIndex& parent = QModelIndex())
override;
152 virtual int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
158 virtual QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
165 virtual bool setData(
const QModelIndex& index,
const QVariant& value,
int role)
override;
170 virtual QHash<int, QByteArray>
roleNames()
const override;
203 virtual void tick(
double dt)
override;
243 virtual void appModeUpdated(
const std::string& newAppMode,
const std::string& oldAppMode)
override;
299 const std::string& oldName,
const makArchives::DtObserverStateRecord& observerView);
Main singleton responsible for managing QML files in the VREngage system.
Data structure representing an observer view entry.
Definition vreChooseRolePage.h:45
bool myProjectionIs2D
Flag indicating if the view uses 2D projection.
Definition vreChooseRolePage.h:89
bool getProjectionIs2D() const
Checks if the view uses 2D projection.
DtObserverViewEntry()
Default constructor.
void setDefaultView(const bool isDefaultView)
Sets whether this is the default view.
bool myDefaultView
Flag indicating if this is the default view.
Definition vreChooseRolePage.h:92
void setObserverName(const QString &name)
Sets the observer view name.
QString getObserverName() const
Gets the observer view name.
QString myObserverName
The name of the observer view.
Definition vreChooseRolePage.h:86
void setProjectionIs2D(const bool is2D)
Sets whether the view uses 2D projection.
bool getDefaultView() const
Checks if this is the default view.
DtObserverViewEntry(const QString &observerName, const bool projection2D, const bool defaultView)
Parameterized constructor.
Model class for observer views to be used with QML views.
Definition vreChooseRolePage.h:101
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const override
Gets the number of rows in the model.
virtual QString getObserverName(const int idx)
Gets the observer name at the specified index.
DtObserverViewsQmlModel(QObject *parent=0)
Constructor.
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Gets data for a specific index and role.
QList< DtObserverViewEntry > myObserverViews
The list of observer view entries in the model.
Definition vreChooseRolePage.h:173
ObserverViewsRoles
Enum defining custom roles for the model data.
Definition vreChooseRolePage.h:107
@ ObserverNameRole
Role for accessing the observer name.
Definition vreChooseRolePage.h:108
@ DefaultViewRole
Role for accessing the default view flag.
Definition vreChooseRolePage.h:110
@ ProjectionRole
Role for accessing the projection type.
Definition vreChooseRolePage.h:109
virtual void clear()
Clears all observer views from the model.
virtual int getIndexOfName(const QString &observerName)
Finds the index of an observer view by name.
virtual bool setData(const QModelIndex &index, const QVariant &value, int role) override
Sets data for a specific index and role.
virtual bool removeRows(int row, int column=0, const QModelIndex &parent=QModelIndex()) override
Removes rows from the model.
virtual void sort(int column, Qt::SortOrder order=Qt::AscendingOrder) override
Sorts the model data.
virtual void addObserverView(const DtObserverViewEntry &entry)
Adds an observer view to the model.
virtual QHash< int, QByteArray > roleNames() const override
Gets the role names mapping for QML integration.
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:163
virtual void appModeUpdated(const std::string &newAppMode, const std::string &oldAppMode) override
Handles application mode changes.
virtual void slot_settingsOpened() override
Handles the settings dialog being opened \override Override of the base class method.
virtual void slot_helpOpened() override
Handles the help dialog being opened \override Override of the base class method.
virtual void setVisibility(bool visible) override
Sets the visibility of the page.
makVrv::DtObserverViewsManager & myObserverViewsManager
Reference to the manager of observer views.
Definition vreChooseRolePage.h:306
virtual void slot_observerViewAdded(const makArchives::DtObserverStateRecord &observerView)
Handles addition of a new observer view.
virtual void slot_connectionClicked() override
Handles the connection button being clicked \override Override of the base class method.
virtual void tick(double dt) override
Updates the page state.
virtual void slot_exitOpened() override
Handles the exit dialog being opened \override Override of the base class method.
virtual Q_INVOKABLE void observerViewClicked(QString observerName, bool animated=false)
Handles a click on an observer view.
DtObserverViewsQmlModel myObserverViewsModel
Model containing the observer views to display.
Definition vreChooseRolePage.h:303
virtual void slot_helpClosed() override
Handles the help dialog being closed \override Override of the base class method.
virtual void slot_observerViewRenamed(const std::string &oldName, const makArchives::DtObserverStateRecord &observerView)
Handles renaming of an observer view.
DtVreChooseRolePage(DtPlayerStationApp &app, const std::string &target_window="")
Constructor.
virtual ~DtVreChooseRolePage() override
Destructor.
virtual void slot_settingsClosed() override
Handles the settings dialog being closed \override Override of the base class method.
virtual void slot_observerViewsCleared()
Handles clearing of all observer views.
virtual void setObserverViewsVisibility(bool visible)
Sets the visibility of the observer views list.
virtual void slot_observerViewRemoved(const makArchives::DtObserverStateRecord &observerView)
Handles removal of an observer view.
virtual void slot_observerViewsChanged(const makArchives::DtObserverStateRecordsList &observerViewList)
Handles changes to the observer views list.
DtVreMessageResult handleBackButtonClicked(DtVreMessage *msg)
Handles back button clicks.
virtual void initMain() override
Initializes the main UI components.
virtual void setChooseRoleBackgroundVisibility(bool visible)
Sets the visibility of the role selection background.
virtual void setLockdownModeIndicatorVisibility(bool visible, bool overrideLockdown=false)
Sets the visibility of the lockdown mode indicator.
virtual void setLockdownModeIndicatorText(const QString &text)
Sets the text of the lockdown mode indicator.
virtual void slot_exitClosed() override
Handles the exit dialog being closed \override Override of the base class method.
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Definition loadingState.h:25
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33