![]() |
VR-Forces 5.0.2 Developer's Guide
|
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).
Public Member Functions | |
| DtExternalCloudLayer (DtDe &de, DtUniqueID agentId) | |
| virtual | ~DtExternalCloudLayer () |
| virtual DtUniqueID | agentId () const |
| virtual DtCloudTypeMapper::CloudType | type () const |
| virtual const DtVector & | position () const |
| virtual float | orientation () const |
| virtual float | cornerRadius () const |
| virtual double | width () const |
| virtual double | length () const |
| virtual double | thickness () const |
| virtual float | density () const |
| virtual bool | enabled () const |
| virtual bool | infinite () const |
| virtual bool | cameraRelative () const |
| virtual DtCloudLayerId | layerid () const |
| virtual void | setType (int type) |
| virtual void | setPositionAndOrientation (const DtVector &position, float orientation) |
| virtual void | setWidth (double w) |
| virtual void | setLength (double l) |
| virtual void | setCornerRadius (float r) |
| virtual void | setThickness (double t) |
| virtual void | setDensity (float density) |
| virtual void | setEnabled (bool enabled) |
| virtual void | setInfinite (bool infinite) |
| virtual void | setCameraRelative (bool relative) |
| virtual void | addLayerToCloudCover (const std::string &coverName) |
| virtual void | removeLayerFromCloudCover () |
| virtual void | updateCloudLayerProperties () |
Protected Member Functions | |
| virtual void | setLayerId (DtCloudLayerId layerId) |
Protected Attributes | |
| DtDe & | myDe |
| DtUniqueID | myAgentId |
| DtCloudLayer | myCloudLayer |
| DtCloudLayerId | myLayerId |
Private Member Functions | |
| DtExternalCloudLayer (const DtExternalCloudLayer &orig) | |
| DtExternalCloudLayer & | operator= (const DtExternalCloudLayer &orig) |
| 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. - 1.) 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 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 |
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 |
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 |