Internal configuration concept. More...
Public Member Functions | |
virtual std::unique_ptr< Concept > | Clone_ () const =0 |
Clones this concept and returns a pointer to a mutable copy. More... | |
virtual ChildCounter | GetChildCount_ () const noexcept=0 |
Gets the "child" count. | |
virtual DistanceProxy | GetChild_ (ChildCounter index) const =0 |
Gets the "child" specified by the given index. | |
virtual MassData | GetMassData_ () const noexcept=0 |
Gets the mass data. | |
virtual NonNegative< Length > | GetVertexRadius_ (ChildCounter idx) const =0 |
Gets the vertex radius. More... | |
virtual NonNegative< AreaDensity > | GetDensity_ () const noexcept=0 |
Gets the density. | |
virtual Real | GetFriction_ () const noexcept=0 |
Gets the friction. | |
virtual Real | GetRestitution_ () const noexcept=0 |
Gets the restitution. | |
virtual void | Transform_ (const Mat22 &m)=0 |
Transforms all of the shape's vertices by the given transformation matrix. More... | |
virtual bool | IsEqual_ (const Concept &other) const noexcept=0 |
Equality checking method. | |
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. | |
Friends | |
bool | operator== (const Concept &lhs, const Concept &rhs) noexcept |
Equality operator. | |
bool | operator!= (const Concept &lhs, const Concept &rhs) noexcept |
Inequality operator. | |
Internal configuration concept.
|
pure virtual |
Clones this concept and returns a pointer to a mutable copy.
std::bad_alloc
or any exception that's thrown by the constructor for the model's underlying data type. std::bad_alloc | if there's a failure allocating storage. |
Implemented in playrho::d2::Shape::Model< T >.
|
pure virtualnoexcept |
Gets the use type information.
Implemented in playrho::d2::Shape::Model< T >.
|
pure virtual |
Gets the vertex radius.
idx | Child index to get vertex radius for. |
Implemented in playrho::d2::Shape::Model< T >.
|
pure virtual |
Transforms all of the shape's vertices by the given transformation matrix.
Implemented in playrho::d2::Shape::Model< T >.