|
AGX Dynamics
2.37.2.0
|
Class for storing min/max values together with a ID for the associated RigidBody/Geometry. More...
#include <SimulationStatisticsListener.h>
Public Member Functions | |
| StatisticsListenerData (StatisticsData *parent, const agx::String &id) | |
| T | compareAndStoreMax (agx::Real time, T val, const agx::RigidBody *b1=nullptr, const agx::RigidBody *b2=nullptr) |
will compare val with the previous value and store time, value, and bodies if val is larger than the previous More... | |
| T | compareAndStoreMax (agx::Real time, T val, const agxCollide::Geometry *geom1, const agxCollide::Geometry *geom2=nullptr) |
will compare val with the previous value and store time, value, and geometries if val is larger than the previous More... | |
| T | compareAndStoreMin (agx::Real time, T val, const agx::RigidBody *b1, const agx::RigidBody *b2=nullptr) |
will compare val with the previous value and store time, value, and bodies if val is lower than the previous More... | |
| T | compareAndStoreMin (agx::Real time, T val, const agxCollide::Geometry *geom1, const agxCollide::Geometry *geom2=nullptr) |
will compare val with the previous value and store time, value, and geometries if val is lower than the previous More... | |
| T | get () const |
| agx::UInt64 | getBody1 () const |
| agx::UInt64 | getBody2 () const |
| agx::UInt64 | getGeometry1 () const |
| agx::UInt64 | getGeometry2 () const |
| agx::Real | getTime () const |
| void | inc () |
| Increment by one. More... | |
| void | reset (T val=0) |
| reset the value to the given value More... | |
| void | restore (agxStream::InputArchive &in) |
| Serialization restore. More... | |
| void | set (T val) |
| Set the value explicitly without comparison. More... | |
| void | set (agx::Real time, T val) |
| Set the value explicitly without comparison including the time. More... | |
| void | store (agxStream::OutputArchive &out) const |
| Serialization store. More... | |
Class for storing min/max values together with a ID for the associated RigidBody/Geometry.
Definition at line 42 of file SimulationStatisticsListener.h.
| agxSDK::StatisticsListenerData< T >::StatisticsListenerData | ( | StatisticsData * | parent, |
| const agx::String & | id | ||
| ) |
Definition at line 291 of file SimulationStatisticsListener.h.
| T agxSDK::StatisticsListenerData< T >::compareAndStoreMax | ( | agx::Real | time, |
| T | val, | ||
| const agx::RigidBody * | b1 = nullptr, |
||
| const agx::RigidBody * | b2 = nullptr |
||
| ) |
will compare val with the previous value and store time, value, and bodies if val is larger than the previous
| T agxSDK::StatisticsListenerData< T >::compareAndStoreMax | ( | agx::Real | time, |
| T | val, | ||
| const agxCollide::Geometry * | geom1, | ||
| const agxCollide::Geometry * | geom2 = nullptr |
||
| ) |
will compare val with the previous value and store time, value, and geometries if val is larger than the previous
| T agxSDK::StatisticsListenerData< T >::compareAndStoreMin | ( | agx::Real | time, |
| T | val, | ||
| const agx::RigidBody * | b1, | ||
| const agx::RigidBody * | b2 = nullptr |
||
| ) |
will compare val with the previous value and store time, value, and bodies if val is lower than the previous
| T agxSDK::StatisticsListenerData< T >::compareAndStoreMin | ( | agx::Real | time, |
| T | val, | ||
| const agxCollide::Geometry * | geom1, | ||
| const agxCollide::Geometry * | geom2 = nullptr |
||
| ) |
will compare val with the previous value and store time, value, and geometries if val is lower than the previous
| T agxSDK::StatisticsListenerData< T >::get | ( | ) | const |
Definition at line 334 of file SimulationStatisticsListener.h.
Referenced by agxSDK::StatisticsListenerData< agx::Real >::get(), agxSDK::StatisticsListenerData< agx::Real >::getBody1(), agxSDK::StatisticsListenerData< agx::Real >::getBody2(), agxSDK::StatisticsListenerData< agx::Real >::getGeometry1(), agxSDK::StatisticsListenerData< agx::Real >::getGeometry2(), and agxSDK::StatisticsListenerData< agx::Real >::getTime().
| agx::UInt64 agxSDK::StatisticsListenerData< T >::getBody1 | ( | ) | const |
Definition at line 327 of file SimulationStatisticsListener.h.
| agx::UInt64 agxSDK::StatisticsListenerData< T >::getBody2 | ( | ) | const |
Definition at line 329 of file SimulationStatisticsListener.h.
| agx::UInt64 agxSDK::StatisticsListenerData< T >::getGeometry1 | ( | ) | const |
Definition at line 323 of file SimulationStatisticsListener.h.
| agx::UInt64 agxSDK::StatisticsListenerData< T >::getGeometry2 | ( | ) | const |
Definition at line 325 of file SimulationStatisticsListener.h.
| agx::Real agxSDK::StatisticsListenerData< T >::getTime | ( | ) | const |
Definition at line 320 of file SimulationStatisticsListener.h.
| void agxSDK::StatisticsListenerData< T >::inc | ( | ) |
Increment by one.
Definition at line 340 of file SimulationStatisticsListener.h.
| void agxSDK::StatisticsListenerData< T >::reset | ( | T | val = 0 | ) |
reset the value to the given value
Definition at line 356 of file SimulationStatisticsListener.h.
| void agxSDK::StatisticsListenerData< T >::restore | ( | agxStream::InputArchive & | in | ) |
Serialization restore.
| void agxSDK::StatisticsListenerData< T >::set | ( | T | val | ) |
Set the value explicitly without comparison.
Definition at line 345 of file SimulationStatisticsListener.h.
Referenced by agxSDK::StatisticsListenerData< agx::Real >::inc(), agxSDK::StatisticsListenerData< agx::Real >::reset(), and agxSDK::StatisticsListenerData< agx::Real >::set().
| void agxSDK::StatisticsListenerData< T >::set | ( | agx::Real | time, |
| T | val | ||
| ) |
Set the value explicitly without comparison including the time.
Definition at line 350 of file SimulationStatisticsListener.h.
| void agxSDK::StatisticsListenerData< T >::store | ( | agxStream::OutputArchive & | out | ) | const |
Serialization store.