DNA Calib 1.1
Project brief
TranslateCommand.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"
8
9namespace dnac {
10
11class DNACalibDNAReader;
12
18class TranslateCommand : public Command {
19 public:
20 DNACAPI explicit TranslateCommand(MemoryResource* memRes = nullptr);
21 DNACAPI TranslateCommand(Vector3 translation, MemoryResource* memRes = nullptr);
22
24
27
30
36 DNACAPI void setTranslation(Vector3 translation);
37 DNACAPI void run(DNACalibDNAReader* output) override;
38
39 private:
40 class Impl;
42
43};
44
45} // 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: TranslateCommand.cpp:12
TranslateCommand is used to translate neutral joints and vertex positions.
Definition: TranslateCommand.h:18
TranslateCommand(const TranslateCommand &)=delete
TranslateCommand & operator=(const TranslateCommand &)=delete
DNACAPI TranslateCommand & operator=(TranslateCommand &&)
DNACAPI TranslateCommand(MemoryResource *memRes=nullptr)
Definition: TranslateCommand.cpp:66
ScopedPtr< Impl > pImpl
Definition: TranslateCommand.h:41
DNACAPI void run(DNACalibDNAReader *output) override
Definition: TranslateCommand.cpp:83
DNACAPI void setTranslation(Vector3 translation)
Method for setting the translation vector.
Definition: TranslateCommand.cpp:79
DNACAPI TranslateCommand(TranslateCommand &&)
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
#define DNACAPI
Definition: dnacalib/Defs.h:26
Definition: Command.h:8
Definition: Vector3.h:7