PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::detail::JointConcept Struct Referenceabstract

Internal joint concept interface. More...

#include <playrho/d2/detail/JointConcept.hpp>

Inheritance diagram for playrho::d2::detail::JointConcept:
[legend]

Public Member Functions

virtual ~JointConcept ()=default
 Explicitly declared virtual destructor.
 
virtual std::unique_ptr< JointConceptClone_ () const =0
 Clones this concept and returns a pointer to a mutable copy. More...
 
virtual BodyID GetBodyA_ () const noexcept=0
 Gets the ID of body-A.
 
virtual BodyID GetBodyB_ () const noexcept=0
 Gets the ID of body-B.
 
virtual bool GetCollideConnected_ () const noexcept=0
 Gets whether collision handling should be done for connected bodies.
 
virtual const void * GetData_ () const noexcept=0
 Gets the data for the underlying configuration.
 
virtual void * GetData_ () noexcept=0
 Gets the data for the underlying configuration.
 
virtual TypeID GetType_ () const noexcept=0
 Gets the use type information. More...
 
virtual void InitVelocity_ (const Span< BodyConstraint > &bodies, const StepConf &step, const ConstraintSolverConf &conf)=0
 Initializes the velocities for this joint.
 
virtual bool IsEqual_ (const JointConcept &other) const noexcept=0
 Equality checking function.
 
virtual bool ShiftOrigin_ (const Length2 &value) noexcept=0
 Call to notify joint of a shift in the world origin.
 
virtual bool SolvePosition_ (const Span< BodyConstraint > &bodies, const ConstraintSolverConf &conf) const =0
 Solves the positions for this joint.
 
virtual bool SolveVelocity_ (const Span< BodyConstraint > &bodies, const StepConf &step)=0
 Solves the velocities for this joint.
 

Detailed Description

Internal joint concept interface.

Note
Provides the interface for runtime value polymorphism.

Member Function Documentation

◆ Clone_()

virtual std::unique_ptr<JointConcept> playrho::d2::detail::JointConcept::Clone_ ( ) const
pure virtual

Clones this concept and returns a pointer to a mutable copy.

Note
This may throw std::bad_alloc or any exception that's thrown by the constructor for the model's underlying data type.
Exceptions
std::bad_allocif there's a failure allocating storage.

Implemented in playrho::d2::detail::JointModel< T >.

◆ GetType_()

virtual TypeID playrho::d2::detail::JointConcept::GetType_ ( ) const
pure virtualnoexcept

Gets the use type information.

Returns
Type info of the underlying value's type.

Implemented in playrho::d2::detail::JointModel< T >.


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