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 
14 #include <vlutil/vlTime.h>
15 
16 
17 namespace makVrv
18 {
19  class DtTickableManagerInterface;
20 
25  {
26  public:
27 
37  virtual bool needsUpdate( DtTime tNow );
38 
41  virtual void update( DtTime tNow ) = 0;
42 
44  virtual ~DtTickable();
45 
47 
48 
49 
50 
51 
52 
53  virtual void setUpdatePeriod( unsigned int period );
54  virtual unsigned int updatePeriod() const;
56 
57  protected:
64 
66  DtTickable();
67 
68  protected:
71 
72  protected:
73  unsigned int myFrameCounter;
74  unsigned int myFrameToUpdate;
75  unsigned int myUpdatePeriod;
76  };
77 
78 }


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