#include <SubsetMapping.h>
Compute a subset of input points. More...

Compute a subset of input points.
Public Attributes | |
| SetIndex | d_indices |
| Data< Index > | d_first |
| first index (use if indices are sequential) More... | |
| Data< Index > | d_last |
| last index (use if indices are sequential) More... | |
| Data< Real > | d_radius |
| search radius to find corresponding points in case no indices are given More... | |
| Data< bool > | d_handleTopologyChange |
| Enable support of topological changes for indices (disable if it is linked from SubsetTopologicalMapping::d_pointD2S) More... | |
| Data< bool > | d_ignoreNotFound |
| True to ignore points that are not found in the input model, they will be treated as fixed points. More... | |
| Data< bool > | d_resizeToModel |
| True to resize the output MechanicalState to match the size of indices. More... | |
| SubsetMappingInternalData< In, Out > | data |
| SingleLink< SubsetMapping< In, Out >, sofa::core::topology::BaseMeshTopology, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK > | l_topology |
| Link to be set to the topology container in the component graph. More... | |
Protected Attributes | |
| eigen_type | eigen |
| js_type | js |
| std::unique_ptr< MatrixType > | matrixJ |
| bool | updateJ |
Public Member Functions | |
| SOFA_CLASS (SOFA_TEMPLATE2(SubsetMapping, TIn, TOut), SOFA_TEMPLATE2(LinearMapping, TIn, TOut)) | |
| void | postInit () |
| void | clear (Size reserve) |
| int | addPoint (Index index) |
| void | init () override |
| virtual | ~SubsetMapping () |
| void | apply (const core::MechanicalParams *mparams, OutDataVecCoord &dOut, const InDataVecCoord &dIn) override |
| void | applyJ (const core::MechanicalParams *mparams, OutDataVecDeriv &dOut, const InDataVecDeriv &dIn) override |
| void | applyJT (const core::MechanicalParams *mparams, InDataVecDeriv &dOut, const OutDataVecDeriv &dIn) override |
| void | applyJT (const core::ConstraintParams *, InDataMatrixDeriv &dOut, const OutDataMatrixDeriv &dIn) override |
| const sofa::linearalgebra::BaseMatrix * | getJ () override |
| const js_type * | getJs () override |
Public Member Functions inherited from sofa::component::mapping::linear::crtp::CRTPLinearMapping< TMapping > | |
| SOFA_CLASS (SOFA_TEMPLATE(CRTPLinearMapping, TMapping), TMapping) | |
| virtual bool | isLinear () const override |
Protected Member Functions | |
| SubsetMapping () | |
| Data< Index > sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::d_first |
first index (use if indices are sequential)
| Data< bool > sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::d_handleTopologyChange |
Enable support of topological changes for indices (disable if it is linked from SubsetTopologicalMapping::d_pointD2S)
| Data< bool > sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::d_ignoreNotFound |
True to ignore points that are not found in the input model, they will be treated as fixed points.
| SetIndex sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::d_indices |
| Data< Index > sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::d_last |
last index (use if indices are sequential)
| Data< Real > sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::d_radius |
search radius to find corresponding points in case no indices are given
| Data< bool > sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::d_resizeToModel |
True to resize the output MechanicalState to match the size of indices.
| SubsetMappingInternalData<In, Out> sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::data |
|
protected |
|
protected |
Link to be set to the topology container in the component graph.
|
protected |
|
protected |
|
protected |
|
virtual |
| int sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::addPoint | ( | Index | index | ) |
|
override |
|
override |
|
override |
|
override |
| void sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::clear | ( | Size | reserve | ) |
|
override |
|
override |
|
override |
| void sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::postInit |
| sofa::component::mapping::linear::SubsetMapping< TIn, TOut >::SOFA_CLASS | ( | SOFA_TEMPLATE2(SubsetMapping< TIn, TOut >, TIn, TOut) | , |
| SOFA_TEMPLATE2(LinearMapping, TIn, TOut) | |||
| ) |