#include <SIM_ForceUniform.h>

Public Member Functions | |
| GETSET_DATA_FUNCS_V3 (SIM_NAME_FORCE, UniformForce) | |
| Control the force attribute. | |
| GETSET_DATA_FUNCS_V3 (SIM_NAME_TORQUE, UniformTorque) | |
| Control the torque attribute. | |
| GETSET_DATA_FUNCS_I (SIM_NAME_SAMPLEMODE, SampleMode) | |
| Whether to sample by point, circle, or sphere. | |
Protected Member Functions | |
| SIM_ForceUniform (const SIM_DataFactory *factory) | |
| virtual | ~SIM_ForceUniform () |
| virtual void | getForceSubclass (const SIM_Object &object, const UT_Vector3 &position, const UT_Vector3 &velocity, const UT_Vector3 &angvel, const fpreal mass, UT_Vector3 &force, UT_Vector3 &torque) const |
| virtual SIM_ForceResolver * | getForceResolverSubclass (const SIM_Object &object) const |
| virtual SIM_ForceSample | getOptimalForceSamplingSubclass () const |
Definition at line 24 of file SIM_ForceUniform.h.
| SIM_ForceUniform::SIM_ForceUniform | ( | const SIM_DataFactory * | factory | ) | [explicit, protected] |
| virtual SIM_ForceUniform::~SIM_ForceUniform | ( | ) | [protected, virtual] |
| virtual SIM_ForceResolver* SIM_ForceUniform::getForceResolverSubclass | ( | const SIM_Object & | object | ) | const [protected, virtual] |
Creates a force resolver to evaluate this force in a threadsafe manner.
Reimplemented from SIM_Force.
| virtual void SIM_ForceUniform::getForceSubclass | ( | const SIM_Object & | object, | |
| const UT_Vector3 & | position, | |||
| const UT_Vector3 & | velocity, | |||
| const UT_Vector3 & | angvel, | |||
| const fpreal | mass, | |||
| UT_Vector3 & | force, | |||
| UT_Vector3 & | torque | |||
| ) | const [protected, virtual] |
Returns the force and torque on a point. The returned values are exact copies of the force and torque attributes. The getForceOnCircleSubclass() and getForceOnSphereSubclass() functions use the default implementations which scale the point force by the area or volume of the circle or sphere. This means that regardless of the size of samples used to quantize an object, the total force on the object should remain roughly constant.
Reimplemented from SIM_Force.
| virtual SIM_ForceSample SIM_ForceUniform::getOptimalForceSamplingSubclass | ( | ) | const [protected, virtual] |
Allows solvers to query what the optimal sampling type for this force would be. Solvers do not have to respect this. This should be user overrideable so users can trade efficiency for accuracy.
Reimplemented from SIM_Force.
| SIM_ForceUniform::GETSET_DATA_FUNCS_I | ( | SIM_NAME_SAMPLEMODE | , | |
| SampleMode | ||||
| ) |
Whether to sample by point, circle, or sphere.
| SIM_ForceUniform::GETSET_DATA_FUNCS_V3 | ( | SIM_NAME_TORQUE | , | |
| UniformTorque | ||||
| ) |
Control the torque attribute.
| SIM_ForceUniform::GETSET_DATA_FUNCS_V3 | ( | SIM_NAME_FORCE | , | |
| UniformForce | ||||
| ) |
Control the force attribute.
1.5.9