-
Notifications
You must be signed in to change notification settings - Fork 130
/
RemoveJointAnimationCommand.h
54 lines (41 loc) · 1.99 KB
/
RemoveJointAnimationCommand.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "dnacalib/Command.h"
#include "dnacalib/Defs.h"
#include "dnacalib/types/Aliases.h"
#include <cstdint>
namespace dnac {
class DNACalibDNAReader;
/**
@brief RemoveJointAnimationCommand is used to remove joint animation data.
*/
class RemoveJointAnimationCommand : public Command {
public:
DNACAPI explicit RemoveJointAnimationCommand(MemoryResource* memRes = nullptr);
DNACAPI RemoveJointAnimationCommand(std::uint16_t jointIndex, MemoryResource* memRes = nullptr);
DNACAPI RemoveJointAnimationCommand(ConstArrayView<std::uint16_t> jointIndices, MemoryResource* memRes = nullptr);
DNACAPI ~RemoveJointAnimationCommand();
RemoveJointAnimationCommand(const RemoveJointAnimationCommand&) = delete;
RemoveJointAnimationCommand& operator=(const RemoveJointAnimationCommand&) = delete;
DNACAPI RemoveJointAnimationCommand(RemoveJointAnimationCommand&&);
DNACAPI RemoveJointAnimationCommand& operator=(RemoveJointAnimationCommand&&);
/**
@brief Method for setting the index of a joint whose animation data to remove.
@param jointIndex
The index of the joint.
@note Call to either setter overwrites previous setter calls. When running the command, the last set joint animation(s) will be removed.
*/
DNACAPI void setJointIndex(std::uint16_t jointIndex);
/**
@brief Method for setting the indices of joints whose animation data to remove.
@param jointIndices
The joint indices.
@note Call to either setter overwrites previous setter calls. When running the command, the last set joint animation(s) will be removed.
*/
DNACAPI void setJointIndices(ConstArrayView<std::uint16_t> jointIndices);
DNACAPI void run(DNACalibDNAReader* output) override;
private:
class Impl;
ScopedPtr<Impl> pImpl;
};
} // namespace dnac