AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxWire::LinkObjectStabilizingAlgorithm Class Referenceabstract

(Optional) Link algorithm that tries to stabilize the link when the link is in contact with an object. More...

#include <LinkAlgorithms.h>

+ Inheritance diagram for agxWire::LinkObjectStabilizingAlgorithm:

Public Types

typedef agx::ref_ptr
< GeometryPropertyBoolFilter > 
GeometryPropertyBoolFilterRef
 
typedef agx::ref_ptr
< RigidBodyPropertyBoolFilter > 
RigidBodyPropertyBoolFilterRef
 

Public Member Functions

 LinkObjectStabilizingAlgorithm (agxWire::LinkObjectStabilizingAlgorithm::LinkExecuteFilter *filter, agx::Real tensionThreshold=agx::Real(1E4))
 Construct given filter to filter out which objects should have this feature. More...
 
 GeometryPropertyBoolFilter (const agx::String &propertyName, const agxWire::Link *link)
 Construct matching filter given property-bool name and the link. More...
 
virtual const char * getClassName () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
const agxWire::Link * getLink () const
 
virtual StorageAgent * getStorageAgent () const =0
 
agx::Real getTensionThreshold () const
 
agx::Uuid getUuid () const
 
bool isFinished () const
 
 LinkExecuteFilter (const agxWire::Link *link)
 Construct given link this algorithm belongs to. More...
 
 RigidBodyPropertyBoolFilter (const agx::String &propertyName, const agxWire::Link *link)
 Construct matching filter given property-bool name and the link. More...
 
void setEnableSerialization (bool flag)
 Set to false to disable serialization of this object. More...
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
 
void setTensionThreshold (agx::Real tensionThreshold)
 Assign new tension threshold defining the moment the stabilizing constraints should be applied. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 

Static Public Member Functions

static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More...
 

Protected Types

typedef agx::Vector
< agx::LockJointRef > 
ConstraintContainer
 

Protected Member Functions

 LinkObjectStabilizingAlgorithm ()
 Protected default constructor, used during restore. More...
 
virtual ~GeometryPropertyBoolFilter ()
 Reference counted object, protected destructor. More...
 
virtual ~LinkObjectStabilizingAlgorithm ()
 Reference counted object, protected destructor. More...
 
virtual ~RigidBodyPropertyBoolFilter ()
 Reference counted object, protected destructor. More...
 
void generateUuid ()
 
 GeometryPropertyBoolFilter ()
 Protected default constructor, used during restore. More...
 
virtual bool match (const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2) const override
 Base match method which determines which geometry belongs to the link and who's not. More...
 
virtual bool matchOther (const agxCollide::Geometry *otherGeometry) const =0
 Called when this base filter has determined which geometry that's not part of the link - the otherGeometry. More...
 
virtual bool matchOther (const agxCollide::Geometry *otherGeometry) const override
 Match function. More...
 
virtual bool matchOther (const agxCollide::Geometry *otherGeometry) const override
 Match function. More...
 
template<typename T >
agx::Bool matchT (const T *obj) const
 Match function for either agxCollide::Geometry or agx::RigidBody. More...
 
virtual void onLinkEnable (agx::Bool enable, agxWire::Link *link, agxSDK::SimulationProxy *simulationProxy) override
 Adding contact listener if link switched from disabled do enabled, otherwise removing the contact listener. More...
 
virtual void post (agxWire::Link *link, agxSDK::SimulationProxy *simulationProxy) override
 Removing the stabilizing constraints. More...
 
virtual void pre (agxWire::Link *link, agxSDK::SimulationProxy *simulationProxy) override
 Checks stability and adding stabilizing constraints if needed. More...
 
 RigidBodyPropertyBoolFilter ()
 Protected default constructor, used during restore. More...
 

Protected Attributes

ConstraintContainer m_constraints
 
agxSDK::ContactEventListenerRef m_contactListener
 
agx::String m_propertyName
 
agx::Real m_tensionThreshold
 

Detailed Description

(Optional) Link algorithm that tries to stabilize the link when the link is in contact with an object.

Execute filter for the LinkObjectStabilizingAlgorithm which trying to match a 'property-bool' in the other rigid body which the link interacts with.

Execute filter for the LinkObjectStabilizingAlgorithm which trying to match a 'property-bool' in the other geometry which the link interacts with.

Base filter for selecting objects to the LinkObjectStabilizingAlgorithm.

If there's high enough tension in the wire, this algorithm will create extra constraints between the link and the contacting object.

It's not recommended to have this enabled for all objects so an execute filter has to be given to define which objects this feature is enabled for.

For user implemented filters there's three things you have to do:

  1. Implement the matchOther( const agxCollide::Geometry* ) which should return true if this filter gave a match to that geometry, otherwise false.
  2. Implement store for serialization.
  3. Implement restore for de-serialization.

Example: link->add( new LinkObjectStabilizingAlgorithm( new LinkObjectStabilizingAlgorithm::GeometryPropertyBoolFilter( "LinkStabilize", link ) ) );

We want the link to be 'extra' stable while in contact with this geometry: geometry->getPropertyContainer()->addPropertyBool( "LinkStabilize", true );

Example: link->add( new LinkObjectStabilizingAlgorithm( new LinkObjectStabilizingAlgorithm::RigidBodyPropertyBoolFilter( "LinkStabilize", link ) ) );

We want the link to be 'extra' stable while in contact with this body: rb->getPropertyContainer()->addPropertyBool( "LinkStabilize", true );

Definition at line 36 of file LinkAlgorithms.h.

Member Typedef Documentation

Constructor & Destructor Documentation

agxWire::LinkObjectStabilizingAlgorithm::LinkObjectStabilizingAlgorithm ( agxWire::LinkObjectStabilizingAlgorithm::LinkExecuteFilter *  filter,
agx::Real  tensionThreshold = agx::Real(1E4) 
)

Construct given filter to filter out which objects should have this feature.

Parameters
filter- user implemented or pre-defined execute filter
tensionThreshold- tension threshold defining the moment the stabilizing constraints should be applied (default: 1.0E4)
agxWire::LinkObjectStabilizingAlgorithm::LinkObjectStabilizingAlgorithm ( )
protected

Protected default constructor, used during restore.

virtual agxWire::LinkObjectStabilizingAlgorithm::~LinkObjectStabilizingAlgorithm ( )
protectedvirtual

Reference counted object, protected destructor.

virtual agxWire::LinkObjectStabilizingAlgorithm::~GeometryPropertyBoolFilter ( )
protectedvirtual

Reference counted object, protected destructor.

virtual agxWire::LinkObjectStabilizingAlgorithm::~RigidBodyPropertyBoolFilter ( )
protectedvirtual

Reference counted object, protected destructor.

Member Function Documentation

void agxStream::Serializable::generateUuid ( )
protectedinherited
agxWire::LinkObjectStabilizingAlgorithm::GeometryPropertyBoolFilter ( const agx::String &  propertyName,
const agxWire::Link *  link 
)
inline

Construct matching filter given property-bool name and the link.

Parameters
propertyName- property-bool for geometry for positive match (geometry->getPropertyContainer()->addPropertyBool( propertyName, true ))
link- link this filter belongs to, in order to filter out which of the two geometries in a geometry contact is a link geometry

Definition at line 197 of file LinkAlgorithms.h.

agxWire::LinkObjectStabilizingAlgorithm::GeometryPropertyBoolFilter ( )
protected

Protected default constructor, used during restore.

virtual const char* agxStream::Serializable::getClassName ( ) const
virtualinherited
Returns
the class name of this class.

Reimplemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxModel::Deformable1DNodeRoute, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agx::UniformGravityField, agxLua::LuaScriptOperation, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxModel::PlasticityComponent, and agxCable::GeometryFactory.

Referenced by agxStream::InputArchive::readRef().

bool agxStream::Serializable::getEnableSerialization ( ) const
inherited
Returns
true if serialization is enabled for this object

Definition at line 273 of file Serializable.h.

bool agxStream::Serializable::getEnableUuidGeneration ( )
inherited
Returns
true if Uuid:s should be generated for each new Serializable object
agx::UInt32 agxStream::Serializable::getIndex ( ) const
inherited

This index is given at creation of this object.

It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.

Returns
an instance index of this object. This is unique for the lifetime of this library instance.

Definition at line 247 of file Serializable.h.

const agxWire::Link* agxWire::LinkObjectStabilizingAlgorithm::getLink ( ) const
inline
Returns
the link this execute filter is defined for

Definition at line 129 of file LinkAlgorithms.h.

virtual StorageAgent* agxStream::Serializable::getStorageAgent ( ) const
pure virtualinherited
Returns
the storage agent

Implemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxModel::Deformable1DNodeRoute, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agx::UniformGravityField, agxLua::LuaScriptOperation, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxModel::PlasticityComponent, and agxCable::GeometryFactory.

agx::Real agxWire::LinkObjectStabilizingAlgorithm::getTensionThreshold ( ) const
Returns
the current tension threshold
agx::Uuid agxStream::Serializable::getUuid ( ) const
inherited
Returns
a unique id for this instance.

Definition at line 268 of file Serializable.h.

bool agxStream::Serializable::isFinished ( ) const
inherited
Returns
true if this class is restored correctly and should not be deleted during destruction of an Archive.

Definition at line 252 of file Serializable.h.

agxWire::LinkObjectStabilizingAlgorithm::LinkExecuteFilter ( const agxWire::Link *  link)
inline

Construct given link this algorithm belongs to.

It needs the link because it's the only way to know if this filter has been invalidated.

Parameters
link- link this execute filter is defined for

Definition at line 123 of file LinkAlgorithms.h.

virtual bool agxWire::LinkObjectStabilizingAlgorithm::match ( const agxCollide::Geometry *  geometry1,
const agxCollide::Geometry *  geometry2 
) const
inlineoverrideprotectedvirtual

Base match method which determines which geometry belongs to the link and who's not.

Definition at line 161 of file LinkAlgorithms.h.

virtual bool agxWire::LinkObjectStabilizingAlgorithm::matchOther ( const agxCollide::Geometry *  otherGeometry) const
protectedpure virtual

Called when this base filter has determined which geometry that's not part of the link - the otherGeometry.

Parameters
otherGeometry- the geometry the link is currently overlapping
Returns
true if it's a match, otherwise false
virtual bool agxWire::LinkObjectStabilizingAlgorithm::matchOther ( const agxCollide::Geometry *  otherGeometry) const
inlineoverrideprotectedvirtual

Match function.

Returns
true if match, otherwise false

Definition at line 221 of file LinkAlgorithms.h.

virtual bool agxWire::LinkObjectStabilizingAlgorithm::matchOther ( const agxCollide::Geometry *  otherGeometry) const
inlineoverrideprotectedvirtual

Match function.

Returns
true if match, otherwise false

Definition at line 286 of file LinkAlgorithms.h.

template<typename T >
agx::Bool agxWire::LinkObjectStabilizingAlgorithm::matchT ( const T *  obj) const
inlineprotected

Match function for either agxCollide::Geometry or agx::RigidBody.

Returns
true if match, otherwise false

Definition at line 231 of file LinkAlgorithms.h.

virtual void agxWire::LinkObjectStabilizingAlgorithm::onLinkEnable ( agx::Bool  enable,
agxWire::Link *  link,
agxSDK::SimulationProxy *  simulationProxy 
)
overrideprotectedvirtual

Adding contact listener if link switched from disabled do enabled, otherwise removing the contact listener.

virtual void agxWire::LinkObjectStabilizingAlgorithm::post ( agxWire::Link *  link,
agxSDK::SimulationProxy *  simulationProxy 
)
overrideprotectedvirtual

Removing the stabilizing constraints.

virtual void agxWire::LinkObjectStabilizingAlgorithm::pre ( agxWire::Link *  link,
agxSDK::SimulationProxy *  simulationProxy 
)
overrideprotectedvirtual

Checks stability and adding stabilizing constraints if needed.

agxWire::LinkObjectStabilizingAlgorithm::RigidBodyPropertyBoolFilter ( const agx::String &  propertyName,
const agxWire::Link *  link 
)
inline

Construct matching filter given property-bool name and the link.

Parameters
propertyName- property-bool for rigid body for positive match (rb->getPropertyContainer()->addPropertyBool( propertyName, true ))
link- link this filter belongs to, in order to filter out which of the two geometries in a geometry contact is a link geometry

Definition at line 262 of file LinkAlgorithms.h.

agxWire::LinkObjectStabilizingAlgorithm::RigidBodyPropertyBoolFilter ( )
protected

Protected default constructor, used during restore.

void agxStream::Serializable::setEnableSerialization ( bool  flag)
inherited

Set to false to disable serialization of this object.

It will just be ignored during serialization (writing). It is still possible to restore TO this object.

static void agxStream::Serializable::setEnableUuidGeneration ( bool  flag)
staticinherited

Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.

void agxStream::Serializable::setFinished ( )
inherited

Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.

void agxWire::LinkObjectStabilizingAlgorithm::setTensionThreshold ( agx::Real  tensionThreshold)

Assign new tension threshold defining the moment the stabilizing constraints should be applied.

Parameters
tensionThreshold- new tension threshold (default: 1.0E4)
void agxStream::Serializable::setUuid ( const agx::Uuid &  uuid)
inherited

Explicitly set a Uuid on a serializable object.

Use this method with great care, as it can result in non-unique identifiers in the system!

Member Data Documentation

ConstraintContainer agxWire::LinkObjectStabilizingAlgorithm::m_constraints
protected

Definition at line 103 of file LinkAlgorithms.h.

agxSDK::ContactEventListenerRef agxWire::LinkObjectStabilizingAlgorithm::m_contactListener
protected

Definition at line 102 of file LinkAlgorithms.h.

agx::String agxWire::LinkObjectStabilizingAlgorithm::m_propertyName
protected

Definition at line 241 of file LinkAlgorithms.h.

agx::Real agxWire::LinkObjectStabilizingAlgorithm::m_tensionThreshold
protected

Definition at line 104 of file LinkAlgorithms.h.


The documentation for this class was generated from the following file: