17#ifndef AGXSDK_CONSTRAINTLOGLISTENER_H
18#define AGXSDK_CONSTRAINTLOGLISTENER_H
42 bool newFilePerTimeStep =
false,
43 const std::string& valueSeparator =
"\t");
50 inline void addConstraint(
agx::Constraint* constraint,
int bodyIndex = 0);
#define AGXPHYSICS_EXPORT
Class that will log various properties of constraints.
virtual void collectData(std::stringstream &data, const agx::TimeStamp &)
Implement this function when inheriting.
virtual void obtainHeader(std::stringstream &header)
Implement this function when inheriting.
agx::Vector< AttachedConstrait > m_constraints
std::pair< agx::observer_ptr< agx::Constraint >, int > AttachedConstrait
ConstraintLogListener(const std::string &fileName="", bool newFilePerTimeStep=false, const std::string &valueSeparator="\t")
ConstraintLogListener constructor.
void addConstraint(agx::Constraint *constraint, int bodyIndex=0)
Adds a constraint for logging.
Abstract class for logging properties per time step to a file/standard out.
The base class for a constraint.
void setEnableComputeForces(agx::Bool enable)
Enable (or disable) computation of the forces applied to the dynamic bodies in this constraint.
void push_back(const T2 &value)
Smart pointer for handling referenced counted objects.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
agx::ref_ptr< ConstraintLogListener > ConstraintLogListenerRef