DNA Calib 1.1
Project brief
|
SetBlendShapeTargetDeltasCommand is used to change blend shape target deltas. More...
#include <SetBlendShapeTargetDeltasCommand.h>
Classes | |
class | Impl |
Public Member Functions | |
DNACAPI | SetBlendShapeTargetDeltasCommand (MemoryResource *memRes=nullptr) |
DNACAPI | SetBlendShapeTargetDeltasCommand (std::uint16_t meshIndex, std::uint16_t blendShapeTargetIndex, ConstArrayView< Vector3 > deltas, ConstArrayView< std::uint32_t > vertexIndices, VectorOperation operation, MemoryResource *memRes=nullptr) |
DNACAPI | SetBlendShapeTargetDeltasCommand (std::uint16_t meshIndex, std::uint16_t blendShapeTargetIndex, ConstArrayView< float > xs, ConstArrayView< float > ys, ConstArrayView< float > zs, ConstArrayView< std::uint32_t > vertexIndices, VectorOperation operation, MemoryResource *memRes=nullptr) |
DNACAPI | SetBlendShapeTargetDeltasCommand (std::uint16_t meshIndex, std::uint16_t blendShapeTargetIndex, ConstArrayView< Vector3 > deltas, ConstArrayView< std::uint32_t > vertexIndices, ConstArrayView< float > masks, VectorOperation operation, MemoryResource *memRes=nullptr) |
DNACAPI | SetBlendShapeTargetDeltasCommand (std::uint16_t meshIndex, std::uint16_t blendShapeTargetIndex, ConstArrayView< float > xs, ConstArrayView< float > ys, ConstArrayView< float > zs, ConstArrayView< std::uint32_t > vertexIndices, ConstArrayView< float > masks, VectorOperation operation, MemoryResource *memRes=nullptr) |
DNACAPI | ~SetBlendShapeTargetDeltasCommand () |
SetBlendShapeTargetDeltasCommand (const SetBlendShapeTargetDeltasCommand &)=delete | |
SetBlendShapeTargetDeltasCommand & | operator= (const SetBlendShapeTargetDeltasCommand &)=delete |
DNACAPI | SetBlendShapeTargetDeltasCommand (SetBlendShapeTargetDeltasCommand &&) |
DNACAPI SetBlendShapeTargetDeltasCommand & | operator= (SetBlendShapeTargetDeltasCommand &&) |
DNACAPI void | setMeshIndex (std::uint16_t meshIndex) |
Method for setting the index of the mesh whose blend shape target to change. More... | |
DNACAPI void | setBlendShapeTargetIndex (std::uint16_t blendShapeTargetIndex) |
Method for setting the index of the blend shape target to change. More... | |
DNACAPI void | setDeltas (ConstArrayView< Vector3 > deltas) |
Method for setting the values used to calculate new deltas for blend shape target. More... | |
DNACAPI void | setDeltas (ConstArrayView< float > xs, ConstArrayView< float > ys, ConstArrayView< float > zs) |
Method for setting the values used to calculate new deltas for blend shape target. More... | |
DNACAPI void | setVertexIndices (ConstArrayView< std::uint32_t > vertexIndices) |
Method for setting the vertex indices that correspond to new deltas. More... | |
DNACAPI void | setMasks (ConstArrayView< float > masks) |
Method for setting masks used to calculate new deltas for blend shape target. More... | |
DNACAPI void | setOperation (VectorOperation operation) |
Method for setting the type of operation used to calculate new deltas for blend shape target. More... | |
DNACAPI void | run (DNACalibDNAReader *output) override |
![]() | |
virtual | ~Command () |
virtual void | run (DNACalibDNAReader *output)=0 |
Static Public Attributes | |
static DNACAPI const sc::StatusCode | VertexIndicesOutOfBoundsError {3101, "%s"} |
static DNACAPI const sc::StatusCode | NoVertexIndicesSetError {3102, "%s"} |
static DNACAPI const sc::StatusCode | DeltasVertexIndicesCountMismatch {3103, "%s"} |
static DNACAPI const sc::StatusCode | DeltasMasksCountMismatch {3104, "%s"} |
Private Attributes | |
ScopedPtr< Impl > | pImpl |
SetBlendShapeTargetDeltasCommand is used to change blend shape target deltas.
|
explicit |
dnac::SetBlendShapeTargetDeltasCommand::SetBlendShapeTargetDeltasCommand | ( | std::uint16_t | meshIndex, |
std::uint16_t | blendShapeTargetIndex, | ||
ConstArrayView< Vector3 > | deltas, | ||
ConstArrayView< std::uint32_t > | vertexIndices, | ||
VectorOperation | operation, | ||
MemoryResource * | memRes = nullptr |
||
) |
dnac::SetBlendShapeTargetDeltasCommand::SetBlendShapeTargetDeltasCommand | ( | std::uint16_t | meshIndex, |
std::uint16_t | blendShapeTargetIndex, | ||
ConstArrayView< float > | xs, | ||
ConstArrayView< float > | ys, | ||
ConstArrayView< float > | zs, | ||
ConstArrayView< std::uint32_t > | vertexIndices, | ||
VectorOperation | operation, | ||
MemoryResource * | memRes = nullptr |
||
) |
dnac::SetBlendShapeTargetDeltasCommand::SetBlendShapeTargetDeltasCommand | ( | std::uint16_t | meshIndex, |
std::uint16_t | blendShapeTargetIndex, | ||
ConstArrayView< Vector3 > | deltas, | ||
ConstArrayView< std::uint32_t > | vertexIndices, | ||
ConstArrayView< float > | masks, | ||
VectorOperation | operation, | ||
MemoryResource * | memRes = nullptr |
||
) |
References pImpl.
dnac::SetBlendShapeTargetDeltasCommand::SetBlendShapeTargetDeltasCommand | ( | std::uint16_t | meshIndex, |
std::uint16_t | blendShapeTargetIndex, | ||
ConstArrayView< float > | xs, | ||
ConstArrayView< float > | ys, | ||
ConstArrayView< float > | zs, | ||
ConstArrayView< std::uint32_t > | vertexIndices, | ||
ConstArrayView< float > | masks, | ||
VectorOperation | operation, | ||
MemoryResource * | memRes = nullptr |
||
) |
References pImpl.
|
default |
|
delete |
|
default |
|
delete |
|
default |
|
overridevirtual |
Implements dnac::Command.
References pImpl.
void dnac::SetBlendShapeTargetDeltasCommand::setBlendShapeTargetIndex | ( | std::uint16_t | blendShapeTargetIndex | ) |
void dnac::SetBlendShapeTargetDeltasCommand::setDeltas | ( | ConstArrayView< float > | xs, |
ConstArrayView< float > | ys, | ||
ConstArrayView< float > | zs | ||
) |
void dnac::SetBlendShapeTargetDeltasCommand::setDeltas | ( | ConstArrayView< Vector3 > | deltas | ) |
void dnac::SetBlendShapeTargetDeltasCommand::setMasks | ( | ConstArrayView< float > | masks | ) |
void dnac::SetBlendShapeTargetDeltasCommand::setMeshIndex | ( | std::uint16_t | meshIndex | ) |
void dnac::SetBlendShapeTargetDeltasCommand::setOperation | ( | VectorOperation | operation | ) |
Method for setting the type of operation used to calculate new deltas for blend shape target.
Interpolate:
Add:
Subtract:
Multiply:
setValue is the value from new deltas that were set, and weight is the value from masks array.
operation | The operation to use. |
References pImpl.
void dnac::SetBlendShapeTargetDeltasCommand::setVertexIndices | ( | ConstArrayView< std::uint32_t > | vertexIndices | ) |
|
static |
|
static |
|
static |
Referenced by run(), SetBlendShapeTargetDeltasCommand(), setBlendShapeTargetIndex(), setDeltas(), setMasks(), setMeshIndex(), setOperation(), and setVertexIndices().
|
static |