PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::Joint::Concept Struct Referenceabstract

Internal configuration concept. More...

Inheritance diagram for playrho::d2::Joint::Concept:
[legend]

Public Member Functions

virtual ~Concept ()=default
 Explicitly declared virtual destructor.
 
virtual std::unique_ptr< ConceptClone_ () const =0
 Clones this concept and returns a pointer to a mutable copy. More...
 
virtual TypeID GetType_ () const noexcept=0
 Gets the use type information. More...
 
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 bool IsEqual_ (const Concept &other) const noexcept=0
 Equality checking method.
 
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 bool ShiftOrigin_ (Length2 value) noexcept=0
 Call to notify joint of a shift in the world origin.
 
virtual void InitVelocity_ (BodyConstraintsMap &bodies, const playrho::StepConf &step, const ConstraintSolverConf &conf)=0
 Initializes the velocities for this joint.
 
virtual bool SolveVelocity_ (BodyConstraintsMap &bodies, const playrho::StepConf &step)=0
 Solves the velocities for this joint.
 
virtual bool SolvePosition_ (BodyConstraintsMap &bodies, const ConstraintSolverConf &conf) const =0
 Solves the positions for this joint.
 

Detailed Description

Internal configuration concept.

Note
Provides the interface for runtime value polymorphism.

Member Function Documentation

◆ Clone_()

virtual std::unique_ptr<Concept> playrho::d2::Joint::Concept::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::Joint::Model< T >.

◆ GetType_()

virtual TypeID playrho::d2::Joint::Concept::GetType_ ( ) const
pure virtualnoexcept

Gets the use type information.

Returns
Type info of the underlying value's type.

Implemented in playrho::d2::Joint::Model< T >.

Referenced by playrho::d2::Joint::Model< T >::IsEqual_().


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