DNA Calib 1.1
Project brief
ScaleCommand.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 ScaleCommand : public Command {
19 public:
20 DNACAPI explicit ScaleCommand(MemoryResource* memRes = nullptr);
21 DNACAPI ScaleCommand(float scale, Vector3 origin, MemoryResource* memRes = nullptr);
22
24
25 ScaleCommand(const ScaleCommand&) = delete;
27
30
36 DNACAPI void setScale(float scale);
37
44 DNACAPI void setOrigin(Vector3 origin);
45 DNACAPI void run(DNACalibDNAReader* output) override;
46
47 private:
48 class Impl;
50
51};
52
53} // 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: ScaleCommand.cpp:14
ScaleCommand is used to scale neutral joints, vertex positions and joint and blendshape deltas by a f...
Definition: ScaleCommand.h:18
DNACAPI ~ScaleCommand()
DNACAPI void setScale(float scale)
Method for setting the scale factor to multiply with.
Definition: ScaleCommand.cpp:161
DNACAPI void setOrigin(Vector3 origin)
Method for setting the origin.
Definition: ScaleCommand.cpp:165
ScaleCommand & operator=(const ScaleCommand &)=delete
DNACAPI ScaleCommand(MemoryResource *memRes=nullptr)
Definition: ScaleCommand.cpp:147
DNACAPI void run(DNACalibDNAReader *output) override
Definition: ScaleCommand.cpp:169
ScopedPtr< Impl > pImpl
Definition: ScaleCommand.h:49
DNACAPI ScaleCommand(ScaleCommand &&)
DNACAPI ScaleCommand & operator=(ScaleCommand &&)
ScaleCommand(const ScaleCommand &)=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
mat< L, L, T > scale(const vec< L, T > &factors)
Definition: Transforms.h:29
Definition: Vector3.h:7