Class uipc::core::AffineBodyStateAccessorFeature
ClassList > uipc > core > AffineBodyStateAccessorFeature
Inherits the following classes: uipc::core::Feature
Public Static Attributes
| Type | Name |
|---|---|
| constexpr std::string_view | FeatureName = "core/affine\_body\_state\_accessor" |
Public Functions
| Type | Name |
|---|---|
| AffineBodyStateAccessorFeature (S< AffineBodyStateAccessorFeatureOverrider > overrider) |
|
| SizeT | body_count () const Get the number of bodies in the affine body system. |
| void | copy_from (const geometry::SimplicialComplex & state_geo) const Copy affine body state data from the given geometry. |
| void | copy_to (geometry::SimplicialComplex & state_geo) const Copy affine body state data to the given geometry. |
| geometry::SimplicialComplex | create_geometry (IndexT body_offset=0, SizeT body_count=~0ull) Create a simplicial complex geometry to contain affine body state data. |
Public Functions inherited from uipc::core::IFeature
| Type | Name |
|---|---|
| std::string_view | name () const |
| std::string_view | type_name () const |
| virtual | ~IFeature () = default |
Protected Functions inherited from uipc::core::IFeature
| Type | Name |
|---|---|
| virtual void | do_on_required () const = 0 |
| virtual std::string_view | get_name () const = 0 |
| virtual std::string_view | get_type_name () const = 0 |
Public Static Attributes Documentation
variable FeatureName
Public Functions Documentation
function AffineBodyStateAccessorFeature
explicit uipc::core::AffineBodyStateAccessorFeature::AffineBodyStateAccessorFeature (
S< AffineBodyStateAccessorFeatureOverrider > overrider
)
function body_count
Get the number of bodies in the affine body system.
function copy_from
Copy affine body state data from the given geometry.
void uipc::core::AffineBodyStateAccessorFeature::copy_from (
const geometry::SimplicialComplex & state_geo
) const
Parameters:
state_geoThe geometry containing affine body state data to copy from.
function copy_to
Copy affine body state data to the given geometry.
void uipc::core::AffineBodyStateAccessorFeature::copy_to (
geometry::SimplicialComplex & state_geo
) const
Parameters:
state_geoThe geometry to copy affine body state data to.
function create_geometry
Create a simplicial complex geometry to contain affine body state data.
geometry::SimplicialComplex uipc::core::AffineBodyStateAccessorFeature::create_geometry (
IndexT body_offset=0,
SizeT body_count=~0ull
)
Parameters:
body_offsetThe starting body index in affine body system.body_countThe number of bodies to include, if body_count == ~0ull, all bodies from body_offset to the end will be included.
The documentation for this class was generated from the following file include/uipc/core/affine_body_state_accessor_feature.h