18 : myPuffDataList(
"puff-list")
19 , myDeadReckoningThresholds(
"thresholds")
20 , myDeadReckoningDensityThreshold(1.0)
21 , myDeadReckoningSigmaThreshold(1.0)
26 : myPuffDataList(orig.myPuffDataList)
27 , myDeadReckoningThresholds(orig.myDeadReckoningThresholds)
28 , myDeadReckoningDensityThreshold(orig.myDeadReckoningDensityThreshold)
29 , myDeadReckoningSigmaThreshold(orig.myDeadReckoningSigmaThreshold)
45 myPuffDataList.removeAndDeleteAll();
55 DtRwDeadReckonThresholds myDeadReckoningThresholds;
56 double myDeadReckoningDensityThreshold;
57 double myDeadReckoningSigmaThreshold;
68 : DtFrameStateInterface(storage)
91 virtual const DtRwDeadReckonThresholds& deadReckoningThresholds()
const override;
92 virtual DtRwDeadReckonThresholds& deadReckoningThresholds()
override;
94 virtual const double& deadReckoningDensityThreshold()
const override;
95 virtual void setDeadReckoningDensityThreshold(
const double&)
override;
97 virtual const double& deadReckoningSigmaThreshold()
const override;
98 virtual void setDeadReckoningSigmaThreshold(
const double&)
override;
104 virtual void makeReadOnly()
override {};
121 virtual const double& deadReckoningDensityThreshold()
const override;
122 virtual const double& deadReckoningSigmaThreshold()
const override;
149 if (myNextFrameState.isWritable())
151 myCurrentFrameState.advanceFrame(myNextFrameState.frameState());
154 myCurrentFrameState.emitComponentUpdated();
159 myNextFrameState.updateStateData(sd);
160 myCurrentFrameState.updateStateData(sd);
168 myCurrentFrameState.aboutToBeDeleted();
169 myNextFrameState.aboutToBeDeleted();
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information ne...
Definition: vrfObjectParameters.h:64
virtual void updateDataStorage() override
Implement to update data storage. Called from advanceFrame.
Definition: tacticalSmokeStateComponent.h:147
double myDeadReckoningSigmaThreshold
Definition: tacticalSmokeStateComponent.h:57
bool isDoubleBuffered()
Definition: tacticalSmokeStateComponent.h:142
virtual DtFrameStateInterface * nextFrameState() override
Definition: tacticalSmokeStateComponent.h:144
const DtTacticalSmokeStateComponentData & frameState() const
Next frame access write access. Ensure this is only used in a single thread (i.e.a controller thread)...
Definition: tacticalSmokeStateComponent.h:85
4) Define the state component that will contain the wrappers to the next and current frame states tha...
Definition: tacticalSmokeStateComponent.h:137
virtual void makeWritable() override
Override to make component writable.
Definition: tacticalSmokeStateComponent.h:101
DtGaussianPuffDataList myPuffDataList
Definition: tacticalSmokeStateComponent.h:54
Definition: stateComponent.h:269
virtual const DtFrameStateInterface * currentFrameState() const override
Definition: tacticalSmokeStateComponent.h:143
DtTacticalSmokeStateComponentData myData
Definition: tacticalSmokeStateComponent.h:132
DtTacticalSmokeStateComponentData(const DtTacticalSmokeStateComponentData &orig)
Definition: tacticalSmokeStateComponent.h:25
#define UNDEFINED_RETURNREF_ACCESSORS(ReturnType, Member)
Definition: doubleBufferedDataStorage.h:40
3) Define the current frame class. This will be used for read access.
Definition: tacticalSmokeStateComponent.h:111
const DtTacticalSmokeStateComponentData & frameState() const
Current frame state only can access current frame buffers. This ensures thread safety.
Definition: tacticalSmokeStateComponent.h:117
void advanceFrame(const DtTacticalSmokeStateComponentData &data)
Definition: tacticalSmokeStateComponent.h:126
2) Define the next frame class. This will be used for write access.
Definition: tacticalSmokeStateComponent.h:79
virtual const DtFrameStateInterface * nextFrameState() const override
Definition: tacticalSmokeStateComponent.h:145
virtual void updateStateData(DtStateData *sd) override
Implement to update data storage to the new state data.
Definition: tacticalSmokeStateComponent.h:157
Definition: rwDeadReckonThresholds.h:23
DtTacticalSmokeStateComponentCurrentFrame myCurrentFrameState
Definition: tacticalSmokeStateComponent.h:173
Definition: tacticalSmokeStateComponent.h:15
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:398
#define DEFINE_STATE_COMPONENT_TYPE(CreatedComponent)
Definition: stateComponent.h:231
virtual ~DtTacticalSmokeStateComponentData()
Definition: tacticalSmokeStateComponent.h:43
DtStateComponentCreator< DtTacticalSmokeStateComponentImplementation > DtTacticalSmokeStateComponentCreator
5) Define the creator. This will need to be registered with the REGISTER_STATE_COMPONENT macro in the...
Definition: tacticalSmokeStateComponent.h:179
DtRwDeadReckonThresholds myDeadReckoningThresholds
Definition: tacticalSmokeStateComponent.h:55
Subclass from this to indicate that this will be a double buffered state component.
Definition: stateComponent.h:384
DtTacticalSmokeStateComponentData()
Definition: tacticalSmokeStateComponent.h:17
Definition: stateComponent.h:92
virtual void aboutToBeDeleted()
DtTacticalSmokeStateComponentData & operator=(const DtTacticalSmokeStateComponentData &rhs)
Definition: tacticalSmokeStateComponent.h:33
virtual void aboutToBeDeleted() override
Definition: tacticalSmokeStateComponent.h:165
#define UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(Type, Member, Set)
Definition: doubleBufferedDataStorage.h:57
#define DEFINE_REF_ACCESSORS(ReturnType, Method, Member)
Definition: doubleBufferedDataStorage.h:13
#define DEFINE_ACCESSOR_MUTATOR(ReturnType, Accessor, Mutator)
Definition: doubleBufferedDataStorage.h:23
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:26
DtTacticalSmokeStateComponentData & frameState()
Definition: tacticalSmokeStateComponent.h:86
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: tacticalSmokeStateComponent.h:62
Contains the DtStateComponent class declaration.
double myDeadReckoningDensityThreshold
Definition: tacticalSmokeStateComponent.h:56
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:294
DtTacticalSmokeStateComponentNextFrame myNextFrameState
Definition: tacticalSmokeStateComponent.h:174