24 : myWaterCurrentSpeed(0.)
25 , myWaterCurrentDirection(0.)
28 , mySwellStateDirection(0.)
30 , mySeaStateDirection(0.)
31 , mySurfaceTransparency(0.)
32 , myWindDrivenSeaStateEnabled(false)
53 myWaterCurrentSpeed = orig.myWaterCurrentSpeed;
54 myWaterCurrentDirection = orig.myWaterCurrentDirection;
55 myTidalOffset = orig.myTidalOffset;
56 mySwellState = orig.mySwellState;
57 mySwellStateDirection = orig.mySwellStateDirection;
58 mySeaState = orig.mySeaState;
59 mySeaStateDirection = orig.mySeaStateDirection;
60 mySurfaceTransparency = orig.mySurfaceTransparency;
61 myWindDrivenSeaStateEnabled = orig.myWindDrivenSeaStateEnabled;
62 myChoppiness = orig.myChoppiness;
63 mySurgeDepth = orig.mySurgeDepth;
64 myDepthOffset = orig.myDepthOffset;
65 myWindFetch = orig.myWindFetch;
66 myPriority = orig.myPriority;
135 bool myIsRemoteComponent =
false;
#define NEXTFRAME_ACCESSOR_MUTATOR_WITHLOCK(MemberType, Accessor, MutatorAndMember)
Declares a public thread-safe next-frame accessor (by value) and next-frame mutator pair...
Definition: stateComponentImplementationTemplate.h:67
DtWaterSurfaceStateComponentData()
Default constructor initializing all water surface fields to zero.
Definition: waterSurfaceStateComponent.h:23
DtWaterSurfaceStateComponentData & operator=(const DtWaterSurfaceStateComponentData &orig)
Assignment operator.
Definition: waterSurfaceStateComponent.h:50
Template for the next-frame (writable) portion of a double-buffered state component. Frame-state access is intended for single-threaded use from a controller thread.
Definition: stateComponentImplementationTemplate.h:87
Default creator implementation for a state component type. T_StateComponent is the concrete component...
Definition: stateComponent.h:326
DtWaterSurfaceStateComponentData(const DtWaterSurfaceStateComponentData &orig)
Copy constructor.
Definition: waterSurfaceStateComponent.h:42
3) Define the current frame class. This will be used for read access.
Definition: waterSurfaceStateComponent.h:172
#define CURRENTFRAME_ACCESSOR(MemberType, Accessor, MutatorAndMember)
Declares a read-only current-frame accessor (by value). The MutatorAndMember parameter is unused...
Definition: stateComponentImplementationTemplate.h:77
1) Define the interface class that will be used to represent the next and current frames...
Definition: waterSurfaceStateComponent.h:102
Template that combines a current-frame and next-frame sub-component into a fully double-buffered stat...
Definition: stateComponentImplementationTemplate.h:111
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:513
#define DEFINE_STATE_COMPONENT_TYPE(CreatedComponent)
Macro to define all required static and virtual state component type methods. Place in the public sec...
Definition: stateComponent.h:272
DtStateComponentCreator< DtWaterSurfaceStateComponentImplementation > DtWaterSurfaceStateComponentCreator
5) Define the creator. This will need to be registered with the REGISTER_STATE_COMPONENT macro in the...
Definition: waterSurfaceStateComponent.h:204
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(Type, Member, Set)
Defines an undefined virtual by-value accessor and an undefined virtual setter, both throwing DtUnimp...
Definition: doubleBufferedDataStorage.h:103
0) Define the State Component Data. This struct replaces the legion stuff
Definition: waterSurfaceStateComponent.h:20
void setIsRemoteComponent(bool b)
Sets whether this component represents a remotely controlled entity.
Definition: waterSurfaceStateComponent.h:131
DtWaterSurfaceStateComponentCurrentFrame(DtStateData *sd)
Constructs the current frame wrapper with the given state data storage.
Definition: waterSurfaceStateComponent.h:177
#define ACCESSOR_MUTATOR_MEMBER(MemberType, Accessor, MutatorAndMember)
Declares a public accessor (by value and reference), a public mutator, and a protected member field...
Definition: stateComponentImplementationTemplate.h:30
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:29
2) Define the next frame class. This will be used for write access.
Definition: waterSurfaceStateComponent.h:139
Definition: stateComponent.h:101
virtual ~DtWaterSurfaceStateComponentNextFrame() override
Definition: waterSurfaceStateComponent.h:149
Contains the DtStateComponent class declaration.
Base interface for accessing current or next frame state in a double-buffered state component...
Definition: stateComponent.h:354
Template for the current-frame (read-only) view of a double-buffered state component. Exposes promoted current-frame data through read-only accessors.
Definition: stateComponentImplementationTemplate.h:176
tbb::spin_rw_mutex myMutex
Read-write mutex protecting concurrent access to the next frame data.
Definition: waterSurfaceStateComponent.h:168
DtWaterSurfaceStateComponentNextFrame(DtStateData *sd)
Constructs the next frame wrapper with the given state data storage.
Definition: waterSurfaceStateComponent.h:144