10 #include <vlutil/vlString.h>
46 : DtFrameStateInterface(storage)
63 const int& airTurbulence()
const;
64 void setAirTurbulence(
const int&);
70 virtual void makeReadOnly() {};
87 const int& airTurbulence()
const;
91 void updateVrfStateComponentParameters();
93 void updateAirTurbulence();
124 if (myNextFrameState.isWritable())
126 myCurrentFrameState.advanceFrame(myNextFrameState.frameState());
129 myCurrentFrameState.emitComponentUpdated();
134 myCurrentFrameState.updateStateData(sd);
135 myNextFrameState.updateStateData(sd);
141 myCurrentFrameState.aboutToBeDeleted();
142 myNextFrameState.aboutToBeDeleted();
void updateStateData(DtStateData *sd)
Implement to update data storage to the new state data.
Definition: airTurbulenceStateComponent.h:132
virtual void makeWritable()
Override to make component writable.
Definition: airTurbulenceStateComponent.h:67
DtAirTurbulenceStateComponentData & frameState()
Definition: airTurbulenceStateComponent.h:61
boost::signals2::scoped_connection myVrfStateComponentChangedConnection
Definition: airTurbulenceStateComponent.h:103
DtAirTurbulenceStateComponentData myData
Definition: airTurbulenceStateComponent.h:107
Definition: stateComponent.h:257
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: airTurbulenceStateComponent.h:40
DtStateData * myStateData
Definition: airTurbulenceStateComponent.h:106
virtual const DtFrameStateInterface * nextFrameState() const
Definition: airTurbulenceStateComponent.h:120
DtAirTurbulenceStateComponentData & operator=(const DtAirTurbulenceStateComponentData &orig)
Definition: airTurbulenceStateComponent.h:25
2) Define the next frame class. This will be used for write access.
Definition: airTurbulenceStateComponent.h:54
void advanceFrame(const DtAirTurbulenceStateComponentData &data)
Definition: airTurbulenceStateComponent.h:97
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:336
DtStateComponentCreator< DtAirTurbulenceStateComponentImplementation > DtAirTurbulenceStateComponentCreator
5) Define the creator. This will need to be registered with the REGISTER_STATE_COMPONENT macro in the...
Definition: airTurbulenceStateComponent.h:152
3) Define the current frame class. This will be used for read access.
Definition: airTurbulenceStateComponent.h:78
#define DEFINE_STATE_COMPONENT_TYPE(CreatedComponent)
Definition: stateComponent.h:219
Subclass from this to indicate that this will be a double buffered state component.
Definition: stateComponent.h:370
void updateDataStorage()
Implement to update data storage. Called from advanceFrame.
Definition: airTurbulenceStateComponent.h:122
const DtAirTurbulenceStateComponentData & frameState() const
Current frame state only can access current frame buffers. This ensures thread safety.
Definition: airTurbulenceStateComponent.h:85
const DtAirTurbulenceStateComponentData & frameState() const
Next frame access write access. Ensure this is only used in a single thread (i.e.a controller thread)...
Definition: airTurbulenceStateComponent.h:60
virtual DtFrameStateInterface * nextFrameState()
Definition: airTurbulenceStateComponent.h:119
virtual void aboutToBeDeleted()
bool isDoubleBuffered()
Definition: airTurbulenceStateComponent.h:117
#define UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(Type, Member, Set)
Definition: doubleBufferedDataStorage.h:57
virtual void aboutToBeDeleted() override
Definition: airTurbulenceStateComponent.h:138
#define DEFINE_ACCESSOR_MUTATOR(ReturnType, Accessor, Mutator)
Definition: doubleBufferedDataStorage.h:23
const DtFrameStateInterface * currentFrameState() const
Definition: airTurbulenceStateComponent.h:118
DtAirTurbulenceStateComponentData(const DtAirTurbulenceStateComponentData &orig)
Definition: airTurbulenceStateComponent.h:20
Definition: stateComponent.h:91
#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
Definition: airTurbulenceStateComponent.h:14
int myAirTurbulence
Definition: airTurbulenceStateComponent.h:35
Contains the DtStateComponent class declaration.
DtAirTurbulenceStateComponentCurrentFrame myCurrentFrameState
Definition: airTurbulenceStateComponent.h:146
Definition: vrfObjectManipulationHandlerBaseClass.h:68
4) Define the state component that will contain the wrappers to the next and current frame states tha...
Definition: airTurbulenceStateComponent.h:112
DtAirTurbulenceStateComponentData myData
Definition: airTurbulenceStateComponent.h:74
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:282
DtAirTurbulenceStateComponentData()
Definition: airTurbulenceStateComponent.h:16
DtAirTurbulenceStateComponentNextFrame myNextFrameState
Definition: airTurbulenceStateComponent.h:147