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

SetNeutralJointTranslationsCommand is used to set new translation values to neutral joints. More...

#include <SetNeutralJointTranslationsCommand.h>

Inheritance diagram for dnac::SetNeutralJointTranslationsCommand:
Inheritance graph
Collaboration diagram for dnac::SetNeutralJointTranslationsCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

DNACAPI SetNeutralJointTranslationsCommand (MemoryResource *memRes=nullptr)
 
DNACAPI SetNeutralJointTranslationsCommand (ConstArrayView< Vector3 > translations, MemoryResource *memRes=nullptr)
 
DNACAPI SetNeutralJointTranslationsCommand (ConstArrayView< float > xs, ConstArrayView< float > ys, ConstArrayView< float > zs, MemoryResource *memRes=nullptr)
 
DNACAPI ~SetNeutralJointTranslationsCommand ()
 
 SetNeutralJointTranslationsCommand (const SetNeutralJointTranslationsCommand &)=delete
 
SetNeutralJointTranslationsCommandoperator= (const SetNeutralJointTranslationsCommand &)=delete
 
DNACAPI SetNeutralJointTranslationsCommand (SetNeutralJointTranslationsCommand &&)
 
DNACAPI SetNeutralJointTranslationsCommandoperator= (SetNeutralJointTranslationsCommand &&)
 
DNACAPI void setTranslations (ConstArrayView< Vector3 > translations)
 Method for setting the neutral joint translations. More...
 
DNACAPI void setTranslations (ConstArrayView< float > xs, ConstArrayView< float > ys, ConstArrayView< float > zs)
 Method for setting the neutral joint translations. 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

SetNeutralJointTranslationsCommand is used to set new translation values to neutral joints.

Constructor & Destructor Documentation

◆ SetNeutralJointTranslationsCommand() [1/5]

dnac::SetNeutralJointTranslationsCommand::SetNeutralJointTranslationsCommand ( MemoryResource memRes = nullptr)
explicit
43 : pImpl{makeScoped<Impl>(memRes)} {
44}
ScopedPtr< Impl > pImpl
Definition: SetNeutralJointTranslationsCommand.h:56

◆ SetNeutralJointTranslationsCommand() [2/5]

dnac::SetNeutralJointTranslationsCommand::SetNeutralJointTranslationsCommand ( ConstArrayView< Vector3 translations,
MemoryResource memRes = nullptr 
)
47 :
48 pImpl{makeScoped<Impl>(memRes)} {
49
50 pImpl->setTranslations(translations);
51}

References pImpl.

◆ SetNeutralJointTranslationsCommand() [3/5]

dnac::SetNeutralJointTranslationsCommand::SetNeutralJointTranslationsCommand ( ConstArrayView< float >  xs,
ConstArrayView< float >  ys,
ConstArrayView< float >  zs,
MemoryResource memRes = nullptr 
)
56 :
57 pImpl{makeScoped<Impl>(memRes)} {
58
59 pImpl->setTranslations(xs, ys, zs);
60}

References pImpl.

◆ ~SetNeutralJointTranslationsCommand()

dnac::SetNeutralJointTranslationsCommand::~SetNeutralJointTranslationsCommand ( )
default

◆ SetNeutralJointTranslationsCommand() [4/5]

dnac::SetNeutralJointTranslationsCommand::SetNeutralJointTranslationsCommand ( const SetNeutralJointTranslationsCommand )
delete

◆ SetNeutralJointTranslationsCommand() [5/5]

dnac::SetNeutralJointTranslationsCommand::SetNeutralJointTranslationsCommand ( SetNeutralJointTranslationsCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ run()

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

Implements dnac::Command.

76 {
77 pImpl->run(static_cast<DNACalibDNAReaderImpl*>(output));
78}

References pImpl.

◆ setTranslations() [1/2]

void dnac::SetNeutralJointTranslationsCommand::setTranslations ( ConstArrayView< float >  xs,
ConstArrayView< float >  ys,
ConstArrayView< float >  zs 
)

Method for setting the neutral joint translations.

Parameters
xsThe X translation value for each joint.
ysThe Y translation value for each joint.
zsThe Z translation value for each joint.
72 {
73 pImpl->setTranslations(xs, ys, zs);
74}

References pImpl.

◆ setTranslations() [2/2]

void dnac::SetNeutralJointTranslationsCommand::setTranslations ( ConstArrayView< Vector3 translations)

Method for setting the neutral joint translations.

Parameters
translationsTranslation values for each joint.
66 {
67 pImpl->setTranslations(translations);
68}

References pImpl.

Member Data Documentation

◆ pImpl

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

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