DNA Calib 1.1
Project brief
SetBlendShapeTargetDeltasCommand.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"
9
10#include <cstdint>
11
12namespace dnac {
13
14class DNACalibDNAReader;
15
20 public:
22 DNACAPI SetBlendShapeTargetDeltasCommand(std::uint16_t meshIndex,
23 std::uint16_t blendShapeTargetIndex,
25 VectorOperation operation,
26 MemoryResource* memRes = nullptr);
27 DNACAPI SetBlendShapeTargetDeltasCommand(std::uint16_t meshIndex,
28 std::uint16_t blendShapeTargetIndex,
32 VectorOperation operation,
33 MemoryResource* memRes = nullptr);
34 DNACAPI SetBlendShapeTargetDeltasCommand(std::uint16_t meshIndex,
35 std::uint16_t blendShapeTargetIndex,
38 VectorOperation operation,
39 MemoryResource* memRes = nullptr);
40 DNACAPI SetBlendShapeTargetDeltasCommand(std::uint16_t meshIndex,
41 std::uint16_t blendShapeTargetIndex,
46 VectorOperation operation,
47 MemoryResource* memRes = nullptr);
48
50
53
56
62 DNACAPI void setMeshIndex(std::uint16_t meshIndex);
68 DNACAPI void setBlendShapeTargetIndex(std::uint16_t blendShapeTargetIndex);
69
76
87
96
111 DNACAPI void setOperation(VectorOperation operation);
112 DNACAPI void run(DNACalibDNAReader* output) override;
113
114 private:
115 class Impl;
117
118};
119
120} // 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: SetBlendShapeTargetDeltasCommand.cpp:13
SetBlendShapeTargetDeltasCommand is used to change blend shape target deltas.
Definition: SetBlendShapeTargetDeltasCommand.h:19
DNACAPI SetBlendShapeTargetDeltasCommand(SetBlendShapeTargetDeltasCommand &&)
DNACAPI void setMasks(ConstArrayView< float > masks)
Method for setting masks used to calculate new deltas for blend shape target.
Definition: SetBlendShapeTargetDeltasCommand.cpp:171
DNACAPI void setOperation(VectorOperation operation)
Method for setting the type of operation used to calculate new deltas for blend shape target.
Definition: SetBlendShapeTargetDeltasCommand.cpp:175
DNACAPI SetBlendShapeTargetDeltasCommand(MemoryResource *memRes=nullptr)
Definition: SetBlendShapeTargetDeltasCommand.cpp:88
ScopedPtr< Impl > pImpl
Definition: SetBlendShapeTargetDeltasCommand.h:116
DNACAPI void setMeshIndex(std::uint16_t meshIndex)
Method for setting the index of the mesh whose blend shape target to change.
Definition: SetBlendShapeTargetDeltasCommand.cpp:155
DNACAPI void run(DNACalibDNAReader *output) override
Definition: SetBlendShapeTargetDeltasCommand.cpp:179
DNACAPI void setDeltas(ConstArrayView< Vector3 > deltas)
Method for setting the values used to calculate new deltas for blend shape target.
Definition: SetBlendShapeTargetDeltasCommand.cpp:163
SetBlendShapeTargetDeltasCommand & operator=(const SetBlendShapeTargetDeltasCommand &)=delete
DNACAPI SetBlendShapeTargetDeltasCommand & operator=(SetBlendShapeTargetDeltasCommand &&)
SetBlendShapeTargetDeltasCommand(const SetBlendShapeTargetDeltasCommand &)=delete
DNACAPI void setBlendShapeTargetIndex(std::uint16_t blendShapeTargetIndex)
Method for setting the index of the blend shape target to change.
Definition: SetBlendShapeTargetDeltasCommand.cpp:159
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
VectorOperation
Definition: VectorOperations.h:7