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:
25
26 public:
28 DNACAPI SetBlendShapeTargetDeltasCommand(std::uint16_t meshIndex,
29 std::uint16_t blendShapeTargetIndex,
32 VectorOperation operation,
33 MemoryResource* memRes = nullptr);
34 DNACAPI SetBlendShapeTargetDeltasCommand(std::uint16_t meshIndex,
35 std::uint16_t blendShapeTargetIndex,
40 VectorOperation operation,
41 MemoryResource* memRes = nullptr);
42 DNACAPI SetBlendShapeTargetDeltasCommand(std::uint16_t meshIndex,
43 std::uint16_t blendShapeTargetIndex,
47 VectorOperation operation,
48 MemoryResource* memRes = nullptr);
49 DNACAPI SetBlendShapeTargetDeltasCommand(std::uint16_t meshIndex,
50 std::uint16_t blendShapeTargetIndex,
56 VectorOperation operation,
57 MemoryResource* memRes = nullptr);
58
60
63
66
72 DNACAPI void setMeshIndex(std::uint16_t meshIndex);
78 DNACAPI void setBlendShapeTargetIndex(std::uint16_t blendShapeTargetIndex);
79
86
97
104
113
128 DNACAPI void setOperation(VectorOperation operation);
129 DNACAPI void run(DNACalibDNAReader* output) override;
130
131 private:
132 class Impl;
134
135};
136
137} // 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:18
SetBlendShapeTargetDeltasCommand is used to change blend shape target deltas.
Definition: SetBlendShapeTargetDeltasCommand.h:19
static DNACAPI const sc::StatusCode DeltasMasksCountMismatch
Definition: SetBlendShapeTargetDeltasCommand.h:24
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:305
DNACAPI void setOperation(VectorOperation operation)
Method for setting the type of operation used to calculate new deltas for blend shape target.
Definition: SetBlendShapeTargetDeltasCommand.cpp:309
DNACAPI SetBlendShapeTargetDeltasCommand(MemoryResource *memRes=nullptr)
Definition: SetBlendShapeTargetDeltasCommand.cpp:210
ScopedPtr< Impl > pImpl
Definition: SetBlendShapeTargetDeltasCommand.h:133
DNACAPI void setMeshIndex(std::uint16_t meshIndex)
Method for setting the index of the mesh whose blend shape target to change.
Definition: SetBlendShapeTargetDeltasCommand.cpp:285
DNACAPI void setVertexIndices(ConstArrayView< std::uint32_t > vertexIndices)
Method for setting the vertex indices that correspond to new deltas.
Definition: SetBlendShapeTargetDeltasCommand.cpp:301
DNACAPI void run(DNACalibDNAReader *output) override
Definition: SetBlendShapeTargetDeltasCommand.cpp:313
DNACAPI void setDeltas(ConstArrayView< Vector3 > deltas)
Method for setting the values used to calculate new deltas for blend shape target.
Definition: SetBlendShapeTargetDeltasCommand.cpp:293
SetBlendShapeTargetDeltasCommand & operator=(const SetBlendShapeTargetDeltasCommand &)=delete
DNACAPI SetBlendShapeTargetDeltasCommand & operator=(SetBlendShapeTargetDeltasCommand &&)
static DNACAPI const sc::StatusCode NoVertexIndicesSetError
Definition: SetBlendShapeTargetDeltasCommand.h:22
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:289
static DNACAPI const sc::StatusCode VertexIndicesOutOfBoundsError
Definition: SetBlendShapeTargetDeltasCommand.h:21
static DNACAPI const sc::StatusCode DeltasVertexIndicesCountMismatch
Definition: SetBlendShapeTargetDeltasCommand.h:23
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
Definition: StatusCode.h:11