Internal model configuration concept. More...
Public Types | |
using | data_type = T |
Type alias for the type of the data held. | |
Public Member Functions | |
Model (T arg) | |
Initializing constructor. | |
std::unique_ptr< Concept > | Clone_ () const override |
Clones this concept and returns a pointer to a mutable copy. More... | |
ChildCounter | GetChildCount_ () const noexcept override |
Gets the "child" count. | |
DistanceProxy | GetChild_ (ChildCounter index) const override |
Gets the "child" specified by the given index. | |
MassData | GetMassData_ () const noexcept override |
Gets the mass data. | |
NonNegative< Length > | GetVertexRadius_ (ChildCounter idx) const override |
Gets the vertex radius. More... | |
NonNegative< AreaDensity > | GetDensity_ () const noexcept override |
Gets the density. | |
Real | GetFriction_ () const noexcept override |
Gets the friction. | |
Real | GetRestitution_ () const noexcept override |
Gets the restitution. | |
void | Transform_ (const Mat22 &m) override |
Transforms all of the shape's vertices by the given transformation matrix. More... | |
bool | IsEqual_ (const Concept &other) const noexcept override |
Equality checking method. | |
TypeID | GetType_ () const noexcept override |
Gets the use type information. More... | |
const void * | GetData_ () const noexcept override |
Gets the data for the underlying configuration. | |
Public Attributes | |
data_type | data |
Data. | |
Internal model configuration concept.
|
inlineoverridevirtual |
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. |
Implements playrho::d2::Shape::Concept.
|
inlineoverridevirtualnoexcept |
Gets the use type information.
Implements playrho::d2::Shape::Concept.
Referenced by playrho::d2::Shape::Model< T >::IsEqual_().
|
inlineoverridevirtual |
Gets the vertex radius.
idx | Child index to get vertex radius for. |
Implements playrho::d2::Shape::Concept.
|
inlineoverridevirtual |
Transforms all of the shape's vertices by the given transformation matrix.
Implements playrho::d2::Shape::Concept.