DNA Calib 1.1
Project brief
Classes | Public Member Functions | Private Attributes | List of all members
dnac::TranslateCommand Class Reference

TranslateCommand is used to translate neutral joints and vertex positions. More...

#include <TranslateCommand.h>

Inheritance diagram for dnac::TranslateCommand:
Inheritance graph
Collaboration diagram for dnac::TranslateCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

DNACAPI TranslateCommand (MemoryResource *memRes=nullptr)
 
DNACAPI TranslateCommand (Vector3 translation, MemoryResource *memRes=nullptr)
 
DNACAPI ~TranslateCommand ()
 
 TranslateCommand (const TranslateCommand &)=delete
 
TranslateCommandoperator= (const TranslateCommand &)=delete
 
DNACAPI TranslateCommand (TranslateCommand &&)
 
DNACAPI TranslateCommandoperator= (TranslateCommand &&)
 
DNACAPI void setTranslation (Vector3 translation)
 Method for setting the translation vector. More...
 
DNACAPI void run (DNACalibDNAReader *output) override
 
- Public Member Functions inherited from dnac::Command
virtual ~Command ()
 
virtual void run (DNACalibDNAReader *output)=0
 

Private Attributes

ScopedPtr< ImplpImpl
 

Detailed Description

TranslateCommand is used to translate neutral joints and vertex positions.

Note
Joint translations are represented in parent space, so it is enough to translate only root joints, as that translation will be propagated to the rest of the joints.

Constructor & Destructor Documentation

◆ TranslateCommand() [1/4]

dnac::TranslateCommand::TranslateCommand ( MemoryResource memRes = nullptr)
explicit
66 : pImpl{makeScoped<Impl>(memRes)} {
67}
ScopedPtr< Impl > pImpl
Definition: TranslateCommand.h:41

◆ TranslateCommand() [2/4]

dnac::TranslateCommand::TranslateCommand ( Vector3  translation,
MemoryResource memRes = nullptr 
)
69 :
70 pImpl{makeScoped<Impl>(memRes)} {
71
72 pImpl->setTranslation(translation);
73}

References pImpl.

◆ ~TranslateCommand()

dnac::TranslateCommand::~TranslateCommand ( )
default

◆ TranslateCommand() [3/4]

dnac::TranslateCommand::TranslateCommand ( const TranslateCommand )
delete

◆ TranslateCommand() [4/4]

dnac::TranslateCommand::TranslateCommand ( TranslateCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

TranslateCommand & dnac::TranslateCommand::operator= ( const TranslateCommand )
delete

◆ operator=() [2/2]

TranslateCommand & dnac::TranslateCommand::operator= ( TranslateCommand &&  )
default

◆ run()

void dnac::TranslateCommand::run ( DNACalibDNAReader output)
overridevirtual

Implements dnac::Command.

83 {
84 pImpl->run(static_cast<DNACalibDNAReaderImpl*>(output));
85}

References pImpl.

◆ setTranslation()

void dnac::TranslateCommand::setTranslation ( Vector3  translation)

Method for setting the translation vector.

Parameters
translationThe translation vector.
79 {
80 pImpl->setTranslation(translation);
81}

References pImpl.

Member Data Documentation

◆ pImpl

ScopedPtr<Impl> dnac::TranslateCommand::pImpl
private

The documentation for this class was generated from the following files: