|
AGX Dynamics
2.37.3.2
|
#include <GranularFields.h>
Inheritance diagram for agxModel::GranularMassField:Public Member Functions | |
| GranularMassField () | |
| virtual bool | addToField (agx::UInt index, ParticleWeightPair *pair) |
| Implement this method in derived classes to define how the particle weight pair should be added to the field element with index index. More... | |
| virtual bool | calculateFieldElement (agx::UInt index) |
| Implement this method in derived class to do a final computation on the field when all the particles have been added. More... | |
| agx::Real | calculateTotalMassInField () |
Public Member Functions inherited from agxModel::GranularField | |
| GranularField (agx::UInt dimensions, agx::String name) | |
| GranularField base class. More... | |
| virtual | ~GranularField () |
| Virtual destructor. More... | |
| bool | allocateField () |
| Allocate memory for the field. More... | |
| void | clearField () |
| Clear the field. More... | |
| agx::Real * | getFieldData () |
| Get ptr to field data. More... | |
| agx::Vec4u | getFieldShape () |
| Get the shape of the field. More... | |
| agx::UInt | getFieldSize () |
| Get the field size. More... | |
| agxModel::GranularFieldPostProcessor * | getGranularFieldPostProcessor () |
| Get the granular field post processor. More... | |
| agx::String | getName () |
| Get field name. More... | |
| const agx::Vector< agx::String > & | getRequiredFields () |
| Get the names of the fields that this field depends on. More... | |
| void | setGranularFieldPostProcesser (agxModel::GranularFieldPostProcessor *pp) |
| Set GranularFieldPostProcessor. More... | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Protected Member Functions | |
| ~GranularMassField () | |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes inherited from agxModel::GranularField | |
| agx::Vector< agx::Real > | m_field |
| agx::Vec4u | m_fieldShape |
| agx::String | m_name |
| agx::Vector< agx::String > | m_requiredFields |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Definition at line 155 of file GranularFields.h.
| agxModel::GranularMassField::GranularMassField | ( | ) |
|
protected |
|
virtual |
Implement this method in derived classes to define how the particle weight pair should be added to the field element with index index.
| index | - What voxel to add the particle field data to |
| pair | - The particle and the its weight |
Reimplemented from agxModel::GranularField.
|
virtual |
Implement this method in derived class to do a final computation on the field when all the particles have been added.
Possible to use if the field depends on other fields to be computed first.
Reimplemented from agxModel::GranularField.
| agx::Real agxModel::GranularMassField::calculateTotalMassInField | ( | ) |