28 class GranularFieldPostProcessor;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_DECLARE_VECTOR_TYPES(type)
~GranularCustomBufferField()
GranularCustomBufferField(agx::String bufferName)
Custom buffer field.
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 th...
virtual bool calculateFieldElement(agx::UInt index)
Implement this method in derived class to do a final computation on the field when all the particles ...
Class for calculating different granular fields.
Base class for a GranularField.
agx::Vector< agx::Real > m_field
agx::Vector< agx::String > m_requiredFields
virtual ~GranularField()
Virtual destructor.
agx::Real * getFieldData()
Get ptr to field data.
const agx::Vector< agx::String > & getRequiredFields()
Get the names of the fields that this field depends on.
agx::Vec4u getFieldShape()
Get the shape of the field.
GranularField(agx::UInt dimensions, agx::String name)
GranularField base class.
void setGranularFieldPostProcesser(agxModel::GranularFieldPostProcessor *pp)
Set GranularFieldPostProcessor.
void clearField()
Clear the field.
bool allocateField()
Allocate memory for the field.
agxModel::GranularFieldPostProcessor * getGranularFieldPostProcessor()
Get the granular field post processor.
virtual bool calculateFieldElement(agx::UInt)
Implement this method in derived class to do a final computation on the field when all the particles ...
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 th...
agx::String getName()
Get field name.
agx::UInt getFieldSize()
Get the field size.
virtual bool calculateFieldElement(agx::UInt index)
Implement this method in derived class to do a final computation on the field when all the particles ...
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 th...
agx::Real calculateTotalMassInField()
virtual bool calculateFieldElement(agx::UInt index)
Implement this method in derived class to do a final computation on the field when all the particles ...
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 th...
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 th...
virtual bool calculateFieldElement(agx::UInt index)
Implement this method in derived class to do a final computation on the field when all the particles ...
Base class providing referencing counted objects.
A class holding 4 dimensional vectors and providing basic arithmetic.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
agx::Vector< ParticleWeightPair > ParticleWeightPairVector
std::pair< agx::Physics::GranularBodyPtr, agx::Real > ParticleWeightPair