DNA Calib 1.1
Project brief
RotateCommand.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
20class RotateCommand : public Command {
21 public:
22 DNACAPI explicit RotateCommand(MemoryResource* memRes = nullptr);
23 DNACAPI RotateCommand(Vector3 degrees, Vector3 origin, MemoryResource* memRes = nullptr);
24
26
27 RotateCommand(const RotateCommand&) = delete;
29
32
38 DNACAPI void setRotation(Vector3 degrees);
39
45 DNACAPI void setOrigin(Vector3 origin);
46 DNACAPI void run(DNACalibDNAReader* output) override;
47
48 private:
49 class Impl;
51
52};
53
54} // 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: RotateCommand.cpp:15
RotateCommand is used to rotate neutral joints and vertex positions around given origin.
Definition: RotateCommand.h:20
DNACAPI RotateCommand & operator=(RotateCommand &&)
DNACAPI void run(DNACalibDNAReader *output) override
Definition: RotateCommand.cpp:147
DNACAPI void setOrigin(Vector3 origin)
Method for setting the rotation origin.
Definition: RotateCommand.cpp:143
DNACAPI RotateCommand(MemoryResource *memRes=nullptr)
Definition: RotateCommand.cpp:125
RotateCommand & operator=(const RotateCommand &)=delete
DNACAPI void setRotation(Vector3 degrees)
Method for setting the rotation angles.
Definition: RotateCommand.cpp:139
DNACAPI ~RotateCommand()
ScopedPtr< Impl > pImpl
Definition: RotateCommand.h:50
DNACAPI RotateCommand(RotateCommand &&)
RotateCommand(const RotateCommand &)=delete
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
std::enable_if< std::is_floating_point< T >::value, T >::type degrees(T radians)
Definition: Transforms.h:15
Definition: Vector3.h:7