DNA Calib 1.1
Project brief
Classes | Public Member Functions | Private Attributes | List of all members
dnac::SetSkinWeightsCommand Class Reference

SetSkinWeightsCommand is used to set new skin weights for a vertex in a mesh. More...

#include <SetSkinWeightsCommand.h>

Inheritance diagram for dnac::SetSkinWeightsCommand:
Inheritance graph
Collaboration diagram for dnac::SetSkinWeightsCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

DNACAPI SetSkinWeightsCommand (MemoryResource *memRes=nullptr)
 
DNACAPI SetSkinWeightsCommand (std::uint16_t meshIndex, std::uint32_t vertexIndex, ConstArrayView< float > weights, ConstArrayView< std::uint16_t > jointIndices, MemoryResource *memRes=nullptr)
 
DNACAPI ~SetSkinWeightsCommand ()
 
 SetSkinWeightsCommand (const SetSkinWeightsCommand &)=delete
 
SetSkinWeightsCommandoperator= (const SetSkinWeightsCommand &)=delete
 
DNACAPI SetSkinWeightsCommand (SetSkinWeightsCommand &&)
 
DNACAPI SetSkinWeightsCommandoperator= (SetSkinWeightsCommand &&)
 
DNACAPI void setMeshIndex (std::uint16_t meshIndex)
 Method for setting the index of the targeted mesh. More...
 
DNACAPI void setVertexIndex (std::uint32_t vertexIndex)
 Method for setting the index of the vertex to change. More...
 
DNACAPI void setWeights (ConstArrayView< float > weights)
 Method for setting the weights with which joints influence the vertex in question. More...
 
DNACAPI void setJointIndices (ConstArrayView< std::uint16_t > jointIndices)
 Method for setting the joint indices of joints that influence the vertex in question. More...
 
DNACAPI void run (DNACalibDNAReader *output) override
 
- Public Member Functions inherited from dnac::Command
virtual ~Command ()
 
virtual void run (DNACalibDNAReader *output)=0
 

Private Attributes

ScopedPtr< ImplpImpl
 

Detailed Description

SetSkinWeightsCommand is used to set new skin weights for a vertex in a mesh.

Constructor & Destructor Documentation

◆ 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]

dnac::SetSkinWeightsCommand::SetSkinWeightsCommand ( const SetSkinWeightsCommand )
delete

◆ SetSkinWeightsCommand() [4/4]

dnac::SetSkinWeightsCommand::SetSkinWeightsCommand ( SetSkinWeightsCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

SetSkinWeightsCommand & dnac::SetSkinWeightsCommand::operator= ( const SetSkinWeightsCommand )
delete

◆ operator=() [2/2]

SetSkinWeightsCommand & dnac::SetSkinWeightsCommand::operator= ( SetSkinWeightsCommand &&  )
default

◆ run()

void dnac::SetSkinWeightsCommand::run ( DNACalibDNAReader output)
overridevirtual

Implements dnac::Command.

91 {
92 pImpl->run(static_cast<DNACalibDNAReaderImpl*>(output));
93}

References pImpl.

◆ 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
jointIndicesJoint 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
meshIndexThe mesh index.
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
vertexIndexThe 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
weightsWeights for each joint that has an influence on the vertex.
83 {
84 pImpl->setWeights(weights);
85}

References pImpl.

Member Data Documentation

◆ pImpl

ScopedPtr<Impl> dnac::SetSkinWeightsCommand::pImpl
private

The documentation for this class was generated from the following files: