VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtUnitStatus.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 //\file DtUnitStatus.h
7 //\brief Contains makVrf::makVrfUnitStatusExample::DtUnitStatus class.
8 
9 #pragma once
10 
11 #include <vrvUtil/signalslib.h>
12 
13 #include "statusWidgetUi.hpp"
14 #include "DtUnitStatusInterface.h"
15 
17 #include <vrvCoreQt/DtPage.h>
18 
19 namespace makVrv
20 {
21  class DtDe;
22 }
23 
24 namespace makVrfUnitStatusExample
25 {
26  class DtUnitStatusLogic;
27 
28  //A widget class for managing different camera views the currently selected observer can be placed in.
30  : public makVrv::DtPage
31  , public DtUnitStatusInterface
32  {
33  public:
34  //\brief CTOR
35  DtUnitStatus( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
36 
37  //\brief DTOR
38  virtual ~DtUnitStatus() override;
39 
40  //Get the icon of the page.
41  virtual QIcon icon() override;
42 
45  virtual makVrv::DtQIconConfigurations qIconConfigurations() const override;
46 
47  //Get the title of the page.
48  virtual QString title() override;
49 
50  //Get the class name of the page.
51  virtual const std::string& pageClassName() const override;
52 
53  //Called when the page is displayed.
54  virtual void activate() override;
55 
56  //Called when the page is hidden.
57  virtual void deactivate() override;
58 
59  static std::string thePageClassName();
60 
61  protected:
62  //\brief Sets up the contents of the widget onto the supplied parent
63  void setupUi(QWidget* p);
64 
65  //\brief Clears out widget
66  virtual void clear() override;
67 
68  virtual void setUnitName(const std::string&) override;
69  virtual void setIcon(const QPixmap&) override;
70  virtual void setLocation(const std::vector<std::string>& position) override;
71 
72  virtual void setVelocity(const QString&) override;
73  virtual void setAcceleration(const QString&) override;
74  virtual void setHeading(const QString&) override;
75  virtual void setMarkingText(const QString&) override;
76 
77  public:
78  Ui_DtUnitStatusUi myUi;
79 
80  protected:
82 
83  };
84 
85  //Create a "creator" helper class using the template.
87 }
makVrv::DtPageCreatorTemplate< DtUnitStatus > DtUnitStatusWidgetCreator
Definition: DtUnitStatus.h:86
virtual void setIcon(const QPixmap &) override
Contains makVrv::DtUserInterfaceAssembler class.
Contains makVrv::DtPage class declaration.
virtual const std::string & pageClassName() const override
Get the class name of the page.
Definition: DtPage.h:181
DtUnitStatusLogic * myLogic
Definition: DtUnitStatus.h:81
virtual void setAcceleration(const QString &) override
virtual void setVelocity(const QString &) override
virtual void deactivate() override
Called when the page is hidden.
virtual makVrv::DtQIconConfigurations qIconConfigurations() const override
Get the icon configurations for the page. This is used to style the page&#39;s icon based on application ...
Definition: DtUnitStatusLogic.h:29
DtUnitStatus(makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
virtual void setLocation(const std::vector< std::string > &position) override
virtual void activate() override
Called when the page is displayed.
Definition: DtUnitStatus.h:29
virtual void setMarkingText(const QString &) override
static std::string thePageClassName()
Definition: DtUnitStatusInterface.h:20
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:51
Ui_DtUnitStatusUi myUi
Definition: DtUnitStatus.h:78
virtual QString title() override
Get the title of the page.
virtual QIcon icon() override
Get the icon of the page.
virtual void setHeading(const QString &) override
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition: DtQIconConfiguration.h:131
virtual void setUnitName(const std::string &) override

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)