VR-Forces 4.1 Class Documentation
globalEnvironmentActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
12 #include "vrfobjcore/actCmpnt.h"
14 
17 
23 {
24 private:
26 
31 
32 public:
33 
37  DtVrfObject* owner,
38  DtSimManager* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtGlobalEnvironmentActuator();
44 
47  virtual bool init();
48 
49  virtual void tick();
50 
53  virtual DtString type() const;
54 
58  static DtSimComponent * creator(const DtString& name,
59  DtVrfObject* owner,
60  DtSimManager* simManager,
61  DtComponentDescriptor* desc = 0,
62  DtReaderWriterRegistry* parentRegistry = 0);
63 
64 protected:
66  virtual void updateTimeOfDay();
69  virtual void updateIllumination();
70 
76  virtual bool timeWithinPeriod(double testTime, double startPeriod, double endPeriod) const;
77 
83  virtual double percentThoughTimePeriod(double testTime, double startPeriod, double endPeriod) const;
84 
85 protected:
88 };
89 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)