![]() |
VR-Forces 4.8 Class Documentation
|
Distributable object that can be used to add cloud layers to any existing cloud cover, including the cloud cover manager's special 'External' Cover (see DtCloudCoverManager.h for details). More...
Public Member Functions | |
| DtExternalCloudLayer (DtDe &de, DtUniqueID agentId) | |
| CTOR. More... | |
| virtual | ~DtExternalCloudLayer () |
| DTOR. More... | |
| virtual DtUniqueID | agentId () const |
| Return the unique agent id assigned to this distributable object by the agent manager. More... | |
| virtual DtCloudTypeMapper::CloudType | type () const |
| Get the cloud layer's cloud type. More... | |
| virtual const DtVector & | position () const |
| Get the cloud layer position in local coordinates. More... | |
| virtual float | orientation () const |
| Get the cloud layer orientation, in radius (0 N, Pi/2 E) More... | |
| virtual float | cornerRadius () const |
| Get the cloud layer corner radius. More... | |
| virtual double | width () const |
| Get the width of the cloud box. More... | |
| virtual double | length () const |
| Get the length of the cloud box. More... | |
| virtual double | thickness () const |
| Get the thickness (height) of the cloud box. More... | |
| virtual float | density () const |
| Get the density of the cloud layer (0. - 1.) More... | |
| virtual bool | enabled () const |
| Get the cloud layer's enabled flag. More... | |
| virtual bool | infinite () const |
| Get whether the cloud layer is infinite (ignoring the length and width). More... | |
| virtual bool | cameraRelative () const |
| Get whether the position is relative to the current camera (observer) position. More... | |
| virtual DtCloudLayerId | layerid () const |
| Get the layer id assigned to our cloud layer by the cloud cover manager. More... | |
| virtual void | setType (int type) |
| The External Cloud Layer's Distributed Interface (these are the methods that can be called from a DtExternalCloudLayerAgent) More... | |
| virtual void | setPositionAndOrientation (const DtVector &position, float orientation) |
| Set the cloud layer position in local (database) coordinates if the cameraRelative is false (the default). More... | |
| virtual void | setWidth (double w) |
| Set the width of the cloud box. More... | |
| virtual void | setLength (double l) |
| Set the length of the cloud box This method does not automatically update the cloud layer to the cloud cover manager, because it will cause the layer to be recreated. More... | |
| virtual void | setCornerRadius (float r) |
| Set the corner radius of the cloud layer. More... | |
| virtual void | setThickness (double t) |
| Set the thickness (height) of the cloud box This method does not automatically update the cloud layer to the cloud cover manager, because it will cause the layer to be recreated. More... | |
| virtual void | setDensity (float density) |
| Set the density of the cloud layer (0. More... | |
| virtual void | setEnabled (bool enabled) |
| Set the enabled state of the cloud layer. More... | |
| virtual void | setInfinite (bool infinite) |
| Set whether the cloud layer is infinite. The default is false. More... | |
| virtual void | setCameraRelative (bool relative) |
| Set whether the position is relative to the camera position. The default is false. More... | |
| virtual void | addLayerToCloudCover (const std::string &coverName) |
| Add the cloud layer to the specified cloud cover (in the DtCloudCoverManager). More... | |
| virtual void | removeLayerFromCloudCover () |
| virtual void | updateCloudLayerProperties () |
| Send all cloud layer properties to the cloud cover manager (because some of them have been modified). More... | |
Protected Member Functions | |
| virtual void | setLayerId (DtCloudLayerId layerId) |
| Set the layer id assigned by the cloud cover manager to the cloud cloud layer being managed. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtUniqueID | myAgentId |
| DtCloudLayer | myCloudLayer |
| DtCloudLayerId | myLayerId |
Private Member Functions | |
| DtExternalCloudLayer (const DtExternalCloudLayer &orig) | |
| Copy CTOR is unimplemented because this is an agent-based object and there should only ever be one instance of it with its given agent id. More... | |
| DtExternalCloudLayer & | operator= (const DtExternalCloudLayer &orig) |
| Assignment OP is unimplemented because this is an agent-based object and there should only ever be one instance of it with its given agent id. More... | |
Distributable object that can be used to add cloud layers to any existing cloud cover, including the cloud cover manager's special 'External' Cover (see DtCloudCoverManager.h for details).
| makVrv::DtExternalCloudLayer::DtExternalCloudLayer | ( | DtDe & | de, |
| DtUniqueID | agentId | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
private |
Copy CTOR is unimplemented because this is an agent-based object and there should only ever be one instance of it with its given agent id.
|
virtual |
Return the unique agent id assigned to this distributable object by the agent manager.
|
virtual |
The External Cloud Layer's Distributed Interface (these are the methods that can be called from a DtExternalCloudLayerAgent)
(We have to use int because the serializer can't handle enumerations correctly) The type value should correspond to one of the cloud layer types defined in DtCloudTypeMapper This method does not automatically update the cloud layer to the cloud cover manager, because it will cause the layer to be recreated. Call updateCloudLayerProperties() after all data that causes a re-create have been specified
|
virtual |
Set the cloud layer position in local (database) coordinates if the cameraRelative is false (the default).
Otherwise, set the position relative to the camera position
|
virtual |
Set the width of the cloud box.
This method does not automatically update the cloud layer to the cloud cover manager, because it will cause the layer to be recreated. Call updateCloudLayerProperties() after all data that causes a re-create have been specified This method does not automatically update the cloud layer to the cloud cover manager, because it will cause the layer to be recreated. Call updateCloudLayerProperties() after all data that causes a re-create have been specified
|
virtual |
Set the length of the cloud box This method does not automatically update the cloud layer to the cloud cover manager, because it will cause the layer to be recreated.
Call updateCloudLayerProperties() after all data that causes a re-create have been specified
|
virtual |
Set the corner radius of the cloud layer.
This method does not automatically update the cloud layer to the cloud cover manager, because it will cause the layer to be recreated. Call updateCloudLayerProperties() after all data that causes a re-create have been specified
|
virtual |
Set the thickness (height) of the cloud box This method does not automatically update the cloud layer to the cloud cover manager, because it will cause the layer to be recreated.
Call updateCloudLayerProperties() after all data that causes a re-create have been specified
|
virtual |
Set the density of the cloud layer (0.
|
virtual |
Set the enabled state of the cloud layer.
Creating a cloud layer can cause stalls. Consider creating cloud layers at startup and then enabling/disabling as needed.
|
virtual |
Set whether the cloud layer is infinite. The default is false.
|
virtual |
Set whether the position is relative to the camera position. The default is false.
|
virtual |
Add the cloud layer to the specified cloud cover (in the DtCloudCoverManager).
This only needs to be called once, after the cloud layer properties have been specified.
|
virtual |
|
virtual |
Send all cloud layer properties to the cloud cover manager (because some of them have been modified).
This will cause the cloud layer to be re-created. You should not need to call this for changes to position or enable state.
|
virtual |
Get the cloud layer's cloud type.
|
virtual |
Get the cloud layer position in local coordinates.
|
virtual |
Get the cloud layer orientation, in radius (0 N, Pi/2 E)
|
virtual |
Get the cloud layer corner radius.
|
virtual |
Get the width of the cloud box.
|
virtual |
Get the length of the cloud box.
|
virtual |
Get the thickness (height) of the cloud box.
|
virtual |
Get the density of the cloud layer (0. - 1.)
|
virtual |
Get the cloud layer's enabled flag.
|
virtual |
Get whether the cloud layer is infinite (ignoring the length and width).
|
virtual |
Get whether the position is relative to the current camera (observer) position.
|
virtual |
Get the layer id assigned to our cloud layer by the cloud cover manager.
This is only valid after calling addLayerToCloudCover(). Until then, this will return DtCloudLayerIdUndefined (defined in DtCloudCoverManager.h)
|
private |
Assignment OP is unimplemented because this is an agent-based object and there should only ever be one instance of it with its given agent id.
|
protectedvirtual |
Set the layer id assigned by the cloud cover manager to the cloud cloud layer being managed.
|
protected |
|
protected |
|
protected |
|
protected |