156 class EyeNodeAreaImplementation* m_implementation;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Class for writing serialized data in binary format to a stream.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
AreaDefinition that specifies an area in which an eye node can move in an EyeNodeArea constraint.
virtual void render(agxRender::RenderManager *, float) const
Optional debug rendering of this boundary.
agx::observer_ptr< agx::RigidBody > m_body
virtual ~AreaDefinition()
virtual void restore(agxStream::InputArchive &in) override
agx::observer_ptr< agxWire::EyeNode > m_eyeNode
virtual void store(agxStream::OutputArchive &out) const override
agx::Vec3 getLocalDirection()
agx::RigidBody * getRigidBody()
agx::Vec3 getLocalCenter()
agx::Vec3 m_localDirection
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxWire::AreaDefinition)
virtual bool getOverlap(agx::Vec3 &pointOnBoundary, agx::Vec3 &dirTowardsCenter, agx::Real &overlap, agx::Vec3 &tangent)=0
Callback from EyeNodeArea to fetch information about the boundary.
AreaDefinition(agx::RigidBody *rb, agx::Vec3 localCenter, agx::Vec3 localDirection, agxWire::EyeNode *eyeNode)
agxWire::EyeNode * getEyeNode()
Class for defining a circular area in which the eye node is allowed to exist.
virtual bool getOverlap(agx::Vec3 &pointOnBoundary, agx::Vec3 &dirTowardsCenter, agx::Real &overlap, agx::Vec3 &tangent) override
Callback from EyeNodeArea to fetch information about the boundary.
CircularAreaDefinition(const agx::Vec3 &localCenter, agx::Real radius, agx::RigidBody *body, const agx::Vec3 &localLineDir, agxWire::EyeNode *eyeNode)
Circular area definition given center of circle (localCenter), radius, body, line direction in body c...
virtual ~CircularAreaDefinition()
Class for defining a convex area in which the eye node is allowed to exist.
virtual void render(agxRender::RenderManager *mgr, float) const override
Optional debug rendering of this boundary.
ConvexAreaDefinition(const agx::Vec3 &localCenter, const agx::Vec3Vector &areaCoordinates, agx::RigidBody *body, const agx::Vec3 &localLineDir, agxWire::EyeNode *eyeNode)
Convex area definition given center of area (localCenter), vector of local points that defines the co...
agx::Vec3Vector m_areaCoordinates
virtual ~ConvexAreaDefinition()
virtual bool getOverlap(agx::Vec3 &pointOnBoundary, agx::Vec3 &dirTowardsCenter, agx::Real &overlap, agx::Vec3 &tangent) override
Callback from EyeNodeArea to fetch information about the boundary.
Constraint that allows an eye node to move in a 2D area relative a rigid body.
virtual agx::Real getBoundaryFrictionCompliance() const
virtual void setBoundaryFrictionCompliance(agx::Real compliance)
Assign compliance to the boundary friction constraint.
virtual void render(agxRender::RenderManager *mgr, float scale) const override
Inherited method of how to render this constraint into DebugRenderer.
EyeNodeArea(AreaDefinition *areaDefinition)
Construct the two body joint given an area definition.
virtual void setDamping(agx::Real damping, agx::Int=-1) override
Assign damping in the constraints, except boundary friction constraint which has explicit method.
virtual agx::Real getDamping(agx::UInt) const override
virtual agx::Real getCompliance(agx::UInt) const override
virtual void setCompliance(agx::Real compliance, agx::Int=-1) override
Assign compliance in the constraints, except boundary friction constraint which has explicit method.
int getNumDOF() const override
Eye node is a type of node that can slide along a wire with or without friction.
The base class for a constraint.
Base class providing referencing counted objects.
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
Implements a Wire model with adaptive resolution.
agx::ref_ptr< EyeNodeArea > EyeNodeAreaRef
agx::ref_ptr< AreaDefinition > AreaDefinitionRef