-
Notifications
You must be signed in to change notification settings - Fork 130
/
RemoveJointCommand.h
54 lines (41 loc) · 1.8 KB
/
RemoveJointCommand.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 RemoveJointCommand is used to remove joints.
*/
class RemoveJointCommand : public Command {
public:
DNACAPI explicit RemoveJointCommand(MemoryResource* memRes = nullptr);
DNACAPI RemoveJointCommand(std::uint16_t jointIndex, MemoryResource* memRes = nullptr);
DNACAPI RemoveJointCommand(ConstArrayView<std::uint16_t> jointIndices, MemoryResource* memRes = nullptr);
DNACAPI ~RemoveJointCommand();
RemoveJointCommand(const RemoveJointCommand&) = delete;
RemoveJointCommand& operator=(const RemoveJointCommand&) = delete;
DNACAPI RemoveJointCommand(RemoveJointCommand&&);
DNACAPI RemoveJointCommand& operator=(RemoveJointCommand&&);
/**
@brief Method for setting the index of the joint 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(s) will be removed.
*/
DNACAPI void setJointIndex(std::uint16_t jointIndex);
/**
@brief Method for setting the indices of joints to remove.
@param jointIndices
The joint indices.
@note Call to either setter overwrites previous setter calls. When running the command, the last set joint(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