DNA Calib 1.1
Project brief
SetSkinWeightsCommand.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "dnacalib/Command.h"
6#include "dnacalib/Defs.h"
8
9#include <cstdint>
10
11namespace dnac {
12
13class DNACalibDNAReader;
14
19 public:
20 DNACAPI explicit SetSkinWeightsCommand(MemoryResource* memRes = nullptr);
21 DNACAPI SetSkinWeightsCommand(std::uint16_t meshIndex,
22 std::uint32_t vertexIndex,
25 MemoryResource* memRes = nullptr);
26
28
31
34
40 DNACAPI void setMeshIndex(std::uint16_t meshIndex);
41
47 DNACAPI void setVertexIndex(std::uint32_t vertexIndex);
48
55
62 DNACAPI void run(DNACalibDNAReader* output) override;
63
64 private:
65 class Impl;
67
68};
69
70} // namespace dnac
Command is an abstract class whose implementations are expected to modify the DNA provided in the run...
Definition: Command.h:15
Definition: DNACalibDNAReader.h:12
Definition: SetSkinWeightsCommand.cpp:12
SetSkinWeightsCommand is used to set new skin weights for a vertex in a mesh.
Definition: SetSkinWeightsCommand.h:18
DNACAPI void setMeshIndex(std::uint16_t meshIndex)
Method for setting the index of the targeted mesh.
Definition: SetSkinWeightsCommand.cpp:75
DNACAPI void run(DNACalibDNAReader *output) override
Definition: SetSkinWeightsCommand.cpp:91
SetSkinWeightsCommand(const SetSkinWeightsCommand &)=delete
DNACAPI void setJointIndices(ConstArrayView< std::uint16_t > jointIndices)
Method for setting the joint indices of joints that influence the vertex in question.
Definition: SetSkinWeightsCommand.cpp:87
DNACAPI SetSkinWeightsCommand(SetSkinWeightsCommand &&)
DNACAPI SetSkinWeightsCommand & operator=(SetSkinWeightsCommand &&)
SetSkinWeightsCommand & operator=(const SetSkinWeightsCommand &)=delete
DNACAPI void setVertexIndex(std::uint32_t vertexIndex)
Method for setting the index of the vertex to change.
Definition: SetSkinWeightsCommand.cpp:79
DNACAPI void setWeights(ConstArrayView< float > weights)
Method for setting the weights with which joints influence the vertex in question.
Definition: SetSkinWeightsCommand.cpp:83
ScopedPtr< Impl > pImpl
Definition: SetSkinWeightsCommand.h:66
DNACAPI SetSkinWeightsCommand(MemoryResource *memRes=nullptr)
Definition: SetSkinWeightsCommand.cpp:55
MemoryResource is an abstract class that allows the implementation of polymorphic allocators.
Definition: MemoryResource.h:17
Takes ownership over the given pointer and handles it's lifetime.
Definition: ScopedPtr.h:116
A view over a continuous sequence of objects.
Definition: ArrayView.h:55
#define DNACAPI
Definition: dnacalib/Defs.h:26
Definition: Command.h:8