DNA Calib 1.1
Project brief
SetVertexPositionsCommand.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
23 public:
24 DNACAPI explicit SetVertexPositionsCommand(MemoryResource* memRes = nullptr);
25
26 DNACAPI SetVertexPositionsCommand(std::uint16_t meshIndex,
28 VectorOperation operation,
29 MemoryResource* memRes = nullptr);
30 DNACAPI SetVertexPositionsCommand(std::uint16_t meshIndex,
34 VectorOperation operation,
35 MemoryResource* memRes = nullptr);
36 DNACAPI SetVertexPositionsCommand(std::uint16_t meshIndex,
39 VectorOperation operation,
40 MemoryResource* memRes = nullptr);
41 DNACAPI SetVertexPositionsCommand(std::uint16_t meshIndex,
46 VectorOperation operation,
47 MemoryResource* memRes = nullptr);
48
50
53
56
62 DNACAPI void setMeshIndex(std::uint16_t meshIndex);
63
70
81
90
105 DNACAPI void setOperation(VectorOperation operation);
106 DNACAPI void run(DNACalibDNAReader* output) override;
107
108 private:
109 class Impl;
111
112};
113
114} // 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: SetVertexPositionsCommand.cpp:15
SetVertexPositionsCommand is used to change vertex positions values.
Definition: SetVertexPositionsCommand.h:19
DNACAPI SetVertexPositionsCommand(SetVertexPositionsCommand &&)
DNACAPI void setOperation(VectorOperation operation)
Method for setting the type of operation used to calculate new vertex position values.
Definition: SetVertexPositionsCommand.cpp:180
SetVertexPositionsCommand & operator=(const SetVertexPositionsCommand &)=delete
DNACAPI void run(DNACalibDNAReader *output) override
Definition: SetVertexPositionsCommand.cpp:184
DNACAPI void setMeshIndex(std::uint16_t meshIndex)
Method for setting the index of the mesh to change.
Definition: SetVertexPositionsCommand.cpp:164
SetVertexPositionsCommand(const SetVertexPositionsCommand &)=delete
DNACAPI void setMasks(ConstArrayView< float > masks)
Method for setting vertex masks used to calculate new vertex position values.
Definition: SetVertexPositionsCommand.cpp:176
static DNACAPI const sc::StatusCode PositionsMasksCountMismatch
Definition: SetVertexPositionsCommand.h:21
DNACAPI SetVertexPositionsCommand & operator=(SetVertexPositionsCommand &&)
DNACAPI SetVertexPositionsCommand(MemoryResource *memRes=nullptr)
Definition: SetVertexPositionsCommand.cpp:105
ScopedPtr< Impl > pImpl
Definition: SetVertexPositionsCommand.h:110
DNACAPI void setPositions(ConstArrayView< Vector3 > positions)
Method for setting the vertex positions used to calculate new values.
Definition: SetVertexPositionsCommand.cpp:168
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