VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtQtDeTicker.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <QtCore/QObject>
14 #include <QtCore/QTimer>
15 
16 class DtTimedSection;
17 
18 namespace makVrv
19 {
20  class DtDe;
21 
27  {
28 
29  Q_OBJECT
30 
31  public:
32  friend class DtQtDeTickerProvider;
33  virtual ~DtQtDeTicker();
34 
35  public slots:
36 
40  virtual void tick();
41 
44  virtual void pause();
45 
47  virtual void unpause();
48  protected:
49 
53  class DirectTickerTimer : public QTimer
54  {
55  public:
57  protected:
59  virtual bool event(QEvent* e);
61  };
62 
64  DtQtDeTicker(DtDe& de, QObject* parent);
65 
68  virtual void slot_postInitialize();
69 
70  protected:
71 
74  QTimer* myTimer;
77  };
78 
83  {
84 
85  public:
86 
88  virtual ~DtQtDeTickerProvider();
89 
91  static DtQtDeTickerProvider& instance(DtDe& de);
92 
94  static void registerInstance(DtDe& de, DtQtDeTickerProvider* instance);
95 
98  virtual DtQtDeTicker* ticker(QObject* parent);
99 
100  protected:
101 
104 
105  protected:
106 
109 
110  };
111 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
The DtQtDeTickerProvider is a singleton which provides the an single DtQtDeTicker instance...
Definition: DtQtDeTicker.h:82
This class exists so that a QTimer can call the tick() slot as fast as possible. This will provide a ...
Definition: DtQtDeTicker.h:26
QTimer * myTimer
Definition: DtQtDeTicker.h:74
An internal ticker class which operates by directly calling tick rather than going through the signal...
Definition: DtQtDeTicker.h:53
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
bool mySkipTicks
Definition: DtQtDeTicker.h:75
Contains makVrv::DtVirtualBaseClass class.
DtDe * myDe
Definition: DtQtDeTicker.h:72
DtDe * myDe
Definition: DtQtDeTicker.h:107
bool myShouldStartTicking
Definition: DtQtDeTicker.h:76
DtQtDeTicker * myTicker
Definition: DtQtDeTicker.h:108
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:72
DtQtDeTicker & myTicker
Definition: DtQtDeTicker.h:60
DtTimedSection * myPerformanceTimer
Definition: DtQtDeTicker.h:73

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)