Skip to content

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

See 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

See 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

constexpr std::string_view uipc::core::AffineBodyStateAccessorFeature::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.

SizeT uipc::core::AffineBodyStateAccessorFeature::body_count () const

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_geo The 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_geo The 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_offset The starting body index in affine body system.
  • body_count The 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