VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
priorityUpdater.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfGuiCore/vrfGuiCore.h>
12 #include <vrvCore/DtUniqueID.h>
13 #include <vrvCore/DtTickable.h>
14 
15 
16 
17 namespace makVrv
18 {
19  class DtSceneObject;
20  class DtSceneObjectAgent;
21  class DtDe;
22  class DtModel;
23 }
24 
25 namespace makVrf
26 {
30  {
31  public:
34 
36  virtual ~DtPriorityUpdater();
37 
39  virtual void setPriority(unsigned int);
40 
42  virtual void setSceneObject(makVrv::DtSceneObject*);
43 
44  protected:
46  virtual void update( DtTime tNow );
47 
48  virtual bool needsUpdate( DtTime tNow );
49 
50  virtual void slot_sceneObjectToBeDeleted( const makVrv::DtUniqueID& id );
51 
52  virtual void updatePriorityForModel(makVrv::DtModel*);
53 
54  protected:
58  unsigned int myPriority;
59  unsigned int myLastMaxPriority;
60  unsigned int myLastSceneObjectSize;
61 
62  static unsigned int theMaxPriority;
63 
67  boost::signals2::connection mySceneObjectConnection;
68  };
69 }
unsigned int myPriority
Definition: priorityUpdater.h:58
makVrv::DtUniqueID myUniqueID
Definition: priorityUpdater.h:56
This class will take a priority and change it into a Z order and assign it to models that support z o...
Definition: priorityUpdater.h:29
An abstract base class for objects that require updates. This object automatically adds itself to a D...
Definition: DtTickable.h:26
static unsigned int theMaxPriority
Definition: priorityUpdater.h:62
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
makVrv::DtSceneObject * mySceneObject
Definition: priorityUpdater.h:57
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
unsigned int myLastSceneObjectSize
Definition: priorityUpdater.h:60
Contains the declaration for makVrv::DtTickable.
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:44
A model which owns a single model instance. A DtModel is a managing container for a single DtModelIns...
Definition: DtModel.h:56
Contains makVrv::DtUniqueID type.
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
unsigned int myLastMaxPriority
Definition: priorityUpdater.h:59
makVrv::DtDe & myDe
Definition: priorityUpdater.h:55
boost::signals2::connection mySceneObjectConnection
When the class is destructed, the scene object may or may not exist. Using a separate connection va...
Definition: priorityUpdater.h:67

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)