VR-Vantage API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTickable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
15 
16 #include <vlutil/vlTime.h>
17 
18 
19 namespace makVrv
20 {
21  class DtTickableManagerInterface;
22 
27  {
28  public:
29 
39  virtual bool needsUpdate( DtTime tNow );
40 
43  virtual void update( DtTime tNow ) = 0;
44 
46  virtual ~DtTickable();
47 
49 
50 
51 
52 
53 
54 
55  virtual void setUpdatePeriod( unsigned int period );
56  virtual unsigned int updatePeriod() const;
58 
59  protected:
66 
68  DtTickable();
69 
70  virtual void slot_managerAboutToBeDeleted();
71 
72  protected:
75 
76  protected:
78  unsigned int myFrameCounter;
79  unsigned int myFrameToUpdate;
80  unsigned int myUpdatePeriod;
81  };
82 
83 }


Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)