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

SetNeutralJointRotationsCommand is used to set new rotation values to neutral joints. More...

#include <SetNeutralJointRotationsCommand.h>

Inheritance diagram for dnac::SetNeutralJointRotationsCommand:
Inheritance graph
Collaboration diagram for dnac::SetNeutralJointRotationsCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

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

SetNeutralJointRotationsCommand is used to set new rotation values to neutral joints.

Constructor & Destructor Documentation

◆ SetNeutralJointRotationsCommand() [1/5]

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

◆ SetNeutralJointRotationsCommand() [2/5]

dnac::SetNeutralJointRotationsCommand::SetNeutralJointRotationsCommand ( ConstArrayView< Vector3 rotations,
MemoryResource memRes = nullptr 
)
46 :
47 pImpl{makeScoped<Impl>(memRes)} {
48
49 pImpl->setRotations(rotations);
50}

References pImpl.

◆ SetNeutralJointRotationsCommand() [3/5]

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

References pImpl.

◆ ~SetNeutralJointRotationsCommand()

dnac::SetNeutralJointRotationsCommand::~SetNeutralJointRotationsCommand ( )
default

◆ SetNeutralJointRotationsCommand() [4/5]

dnac::SetNeutralJointRotationsCommand::SetNeutralJointRotationsCommand ( const SetNeutralJointRotationsCommand )
delete

◆ SetNeutralJointRotationsCommand() [5/5]

dnac::SetNeutralJointRotationsCommand::SetNeutralJointRotationsCommand ( SetNeutralJointRotationsCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ run()

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

Implements dnac::Command.

73 {
74 pImpl->run(static_cast<DNACalibDNAReaderImpl*>(output));
75}

References pImpl.

◆ setRotations() [1/2]

void dnac::SetNeutralJointRotationsCommand::setRotations ( ConstArrayView< float >  xs,
ConstArrayView< float >  ys,
ConstArrayView< float >  zs 
)

Method for setting the neutral joint rotations.

Parameters
xsThe X rotation value for each joint.
ysThe Y rotation value for each joint.
zsThe Z rotation value for each joint.
69 {
70 pImpl->setRotations(xs, ys, zs);
71}

References pImpl.

◆ setRotations() [2/2]

void dnac::SetNeutralJointRotationsCommand::setRotations ( ConstArrayView< Vector3 rotations)

Method for setting the neutral joint rotations.

Parameters
rotationsRotation values for each joint.
65 {
66 pImpl->setRotations(rotations);
67}

References pImpl.

Member Data Documentation

◆ pImpl

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

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