VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
illuminationDecorator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <tbb/spin_rw_mutex.h>
12 
15 {
16 public:
19 
21  virtual double illumination() const;
22  virtual double expectedIllumination(double dateAndTimeOfDay) const;
23 
24 protected:
26  {
27  IlluminationInformation() : lastSimTime(-1.), illumination(0.) {};
28  double lastSimTime;
29  double illumination;
30  tbb::spin_rw_mutex mutex;
31  };
32 
34 };
35 
38 {
39 public:
41  virtual DtLocalObjectDecorator* createDecorator(DtLocalObject* o) const { throw makVrf::DtUnimplementedMethod("The DtIlluminationDecorator is not created for the DtLocalObject."); };
42 
43  virtual const char* DecoratorType() const { return "DtIlluminationDecorator"; };
44 };
This will keep track of the objects illumination for sensor purposes.
Definition: illuminationDecorator.h:14
Definition: stateDataTypes.h:23
The DtIlluminationDecoratorCreator will create the appropriate type of illumination proxy logic...
Definition: illuminationDecorator.h:37
virtual DtSimObjectDecorator * createDecorator(const DtSimObject *o) const
Definition: illuminationDecorator.h:40
double illumination
Definition: illuminationDecorator.h:29
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
tbb::spin_rw_mutex mutex
Definition: illuminationDecorator.h:30
Definition: illuminationDecorator.h:25
virtual const char * DecoratorType() const
Definition: illuminationDecorator.h:43
virtual DtLocalObjectDecorator * createDecorator(DtLocalObject *o) const
Definition: illuminationDecorator.h:41
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:88
Definition: decoratorBase.h:57
Definition: decoratorBase.h:30
IlluminationInformation myIlluminationInformation
Definition: illuminationDecorator.h:33
Definition: decoratorBase.h:44
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)