Class to generate constant water flow in a scene.
More...
#include <WindAndWaterController.h>
Class to generate constant water flow in a scene.
Definition at line 1007 of file WindAndWaterController.h.
| agxModel::ConstantWaterFlowGenerator::ConstantWaterFlowGenerator |
( |
const agx::Vec3 & |
velocity | ) |
|
Construct given flow velocity.
- Parameters
-
| velocity | - velocity of the flow given in world coordinates |
| agxModel::ConstantWaterFlowGenerator::ConstantWaterFlowGenerator |
( |
| ) |
|
|
protected |
| virtual agxModel::ConstantWaterFlowGenerator::~ConstantWaterFlowGenerator |
( |
| ) |
|
|
protectedvirtual |
| void agx::Referenced::allocateObserverVector |
( |
| ) |
const |
|
protectedinherited |
template<typename T >
| T* agx::Referenced::as |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::as |
( |
| ) |
const |
|
inherited |
template<typename T >
| T* agx::Referenced::asSafe |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::asSafe |
( |
| ) |
const |
|
inherited |
| void agx::Referenced::deleteUsingDeleteHandler |
( |
| ) |
const |
|
protectedinherited |
| void agxStream::Serializable::generateUuid |
( |
| ) |
|
|
protectedinherited |
| const char* agxModel::ConstantWaterFlowGenerator::getClassName |
( |
| ) |
const |
|
inlineoverridevirtual |
| static const char* agxModel::ConstantWaterFlowGenerator::getConstructClassId |
( |
| ) |
|
|
inlinestatic |
| bool agxStream::Serializable::getEnableSerialization |
( |
| ) |
const |
|
inherited |
- Returns
- true if serialization is enabled for this object
Definition at line 273 of file Serializable.h.
| bool agxStream::Serializable::getEnableUuidGeneration |
( |
| ) |
|
|
inherited |
- Returns
- true if Uuid:s should be generated for each new Serializable object
| agx::UInt32 agxStream::Serializable::getIndex |
( |
| ) |
const |
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
- Returns
- an instance index of this object. This is unique for the lifetime of this library instance.
Definition at line 247 of file Serializable.h.
| int agx::Referenced::getReferenceCount |
( |
| ) |
const |
|
inherited |
- Returns
- the number pointers currently referencing this object.
| agxStream::StorageAgent* agxModel::ConstantWaterFlowGenerator::getStorageAgent |
( |
| ) |
const |
|
inlineoverridevirtual |
| agx::Uuid agxStream::Serializable::getUuid |
( |
| ) |
const |
|
inherited |
| const agx::Vec3& agxModel::ConstantWaterFlowGenerator::getVelocity |
( |
| ) |
const |
- Returns
- currently used water flow velocity
| agx::Vec3 agxModel::ConstantWaterFlowGenerator::getVelocity |
( |
const agx::Vec3 & |
worldPoint | ) |
const |
|
overridevirtual |
template<typename T >
| bool agx::Referenced::is |
( |
| ) |
const |
|
inherited |
| bool agxStream::Serializable::isFinished |
( |
| ) |
const |
|
inherited |
- Returns
- true if this class is restored correctly and should not be deleted during destruction of an Archive.
Definition at line 252 of file Serializable.h.
| void agx::Referenced::reference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxStream::Serializable::setEnableSerialization |
( |
bool |
flag | ) |
|
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
| static void agxStream::Serializable::setEnableUuidGeneration |
( |
bool |
flag | ) |
|
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
| void agxStream::Serializable::setFinished |
( |
| ) |
|
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
| void agxModel::ConstantWaterFlowGenerator::setVelocity |
( |
const agx::Vec3 & |
velocity | ) |
|
Assign new water flow velocity.
- Parameters
-
| velocity | - new water flow velocity |
| void agx::Referenced::unreference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
| void agx::Referenced::unreference_nodelete |
( |
| ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
template<typename T >
| static bool agx::Referenced::ValidateCast |
( |
const Referenced * |
object | ) |
|
|
staticinherited |
| Mutex agx::Referenced::m_mutex |
|
mutableprotectedinherited |
|
|
mutableprotectedinherited |
| AtomicValue agx::Referenced::m_refCount |
|
mutableprotectedinherited |
The documentation for this class was generated from the following file: