AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
BodyCaptureDeterminism.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGXUNIT_BODYCAPTUREDETERMINISM_H
18#define AGXUNIT_BODYCAPTUREDETERMINISM_H
19
21
23#include <agx/RigidBody.h>
24#include <fstream>
25namespace agxUnit
26{
27
28
65
66}
67
68#endif
69
#define AGXPHYSICS_EXPORT
Derive from this class to implement a listener for simulation step events.
Class for capturing data for measuring determinism.
void capture(const agx::TimeStamp &t)
BodyCaptureDeterminism(const agx::String &file)
void removeNotification()
Called when this listener is removed from the simulation.
void calcDiff(Session *s0, Session *s1, size_t i, agx::Real data[9])
agx::observer_ptr< agx::RigidBody > m_body
void setRigidBody(agx::RigidBody *body)
agx::Vector< agx::ref_ptr< Session > > SessionVector
void writeLine(Session *session, size_t i)
void post(const agx::TimeStamp &t)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
Base class providing referencing counted objects.
Definition Referenced.h:120
The rigid body class, combining a geometric model and a frame of reference.
Definition RigidBody.h:52
Templated vector class.
Definition agx/Vector.h:53
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
double Real
Definition Real.h:42
agx::Real TimeStamp
Definition TimeStamp.h:26