SetSkinWeightsCommand is used to set new skin weights for a vertex in a mesh.
More...
#include <SetSkinWeightsCommand.h>
SetSkinWeightsCommand is used to set new skin weights for a vertex in a mesh.
◆ SetSkinWeightsCommand() [1/4]
dnac::SetSkinWeightsCommand::SetSkinWeightsCommand |
( |
MemoryResource * |
memRes = nullptr | ) |
|
|
explicit |
55 :
pImpl{makeScoped<Impl>(memRes)} {
56}
ScopedPtr< Impl > pImpl
Definition: SetSkinWeightsCommand.h:66
◆ SetSkinWeightsCommand() [2/4]
dnac::SetSkinWeightsCommand::SetSkinWeightsCommand |
( |
std::uint16_t |
meshIndex, |
|
|
std::uint32_t |
vertexIndex, |
|
|
ConstArrayView< float > |
weights, |
|
|
ConstArrayView< std::uint16_t > |
jointIndices, |
|
|
MemoryResource * |
memRes = nullptr |
|
) |
| |
62 :
63 pImpl{makeScoped<Impl>(memRes)} {
64
65 pImpl->setMeshIndex(meshIndex);
66 pImpl->setVertexIndex(vertexIndex);
67 pImpl->setWeights(weights);
68 pImpl->setJointIndices(jointIndices);
69}
References pImpl.
◆ ~SetSkinWeightsCommand()
dnac::SetSkinWeightsCommand::~SetSkinWeightsCommand |
( |
| ) |
|
|
default |
◆ SetSkinWeightsCommand() [3/4]
◆ SetSkinWeightsCommand() [4/4]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ run()
◆ setJointIndices()
void dnac::SetSkinWeightsCommand::setJointIndices |
( |
ConstArrayView< std::uint16_t > |
jointIndices | ) |
|
Method for setting the joint indices of joints that influence the vertex in question.
- Parameters
-
jointIndices | Joint indices of joints that have an influence on the vertex. |
87 {
88 pImpl->setJointIndices(jointIndices);
89}
References pImpl.
◆ setMeshIndex()
void dnac::SetSkinWeightsCommand::setMeshIndex |
( |
std::uint16_t |
meshIndex | ) |
|
Method for setting the index of the targeted mesh.
- Parameters
-
75 {
76 pImpl->setMeshIndex(meshIndex);
77}
References pImpl.
◆ setVertexIndex()
void dnac::SetSkinWeightsCommand::setVertexIndex |
( |
std::uint32_t |
vertexIndex | ) |
|
Method for setting the index of the vertex to change.
- Parameters
-
vertexIndex | The vertex index. |
79 {
80 pImpl->setVertexIndex(vertexIndex);
81}
References pImpl.
◆ setWeights()
void dnac::SetSkinWeightsCommand::setWeights |
( |
ConstArrayView< float > |
weights | ) |
|
Method for setting the weights with which joints influence the vertex in question.
- Parameters
-
weights | Weights for each joint that has an influence on the vertex. |
83 {
84 pImpl->setWeights(weights);
85}
References pImpl.
◆ pImpl
The documentation for this class was generated from the following files: