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

RemoveJointAnimationCommand is used to remove joint animation data. More...

#include <RemoveJointAnimationCommand.h>

Inheritance diagram for dnac::RemoveJointAnimationCommand:
Inheritance graph
Collaboration diagram for dnac::RemoveJointAnimationCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

DNACAPI RemoveJointAnimationCommand (MemoryResource *memRes=nullptr)
 
DNACAPI RemoveJointAnimationCommand (std::uint16_t jointIndex, MemoryResource *memRes=nullptr)
 
DNACAPI RemoveJointAnimationCommand (ConstArrayView< std::uint16_t > jointIndices, MemoryResource *memRes=nullptr)
 
DNACAPI ~RemoveJointAnimationCommand ()
 
 RemoveJointAnimationCommand (const RemoveJointAnimationCommand &)=delete
 
RemoveJointAnimationCommandoperator= (const RemoveJointAnimationCommand &)=delete
 
DNACAPI RemoveJointAnimationCommand (RemoveJointAnimationCommand &&)
 
DNACAPI RemoveJointAnimationCommandoperator= (RemoveJointAnimationCommand &&)
 
DNACAPI void setJointIndex (std::uint16_t jointIndex)
 Method for setting the index of a joint whose animation data to remove. More...
 
DNACAPI void setJointIndices (ConstArrayView< std::uint16_t > jointIndices)
 Method for setting the indices of joints whose animation data to remove. 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

RemoveJointAnimationCommand is used to remove joint animation data.

Constructor & Destructor Documentation

◆ RemoveJointAnimationCommand() [1/5]

dnac::RemoveJointAnimationCommand::RemoveJointAnimationCommand ( MemoryResource memRes = nullptr)
explicit
40 : pImpl{makeScoped<Impl>(memRes)} {
41}
ScopedPtr< Impl > pImpl
Definition: RemoveJointAnimationCommand.h:50

◆ RemoveJointAnimationCommand() [2/5]

dnac::RemoveJointAnimationCommand::RemoveJointAnimationCommand ( std::uint16_t  jointIndex,
MemoryResource memRes = nullptr 
)
43 :
44 pImpl{makeScoped<Impl>(memRes)} {
45
46 pImpl->setJointIndex(jointIndex);
47}

References pImpl.

◆ RemoveJointAnimationCommand() [3/5]

dnac::RemoveJointAnimationCommand::RemoveJointAnimationCommand ( ConstArrayView< std::uint16_t >  jointIndices,
MemoryResource memRes = nullptr 
)
49 :
50 pImpl{makeScoped<Impl>(memRes)} {
51
52 pImpl->setJointIndices(jointIndices);
53}

References pImpl.

◆ ~RemoveJointAnimationCommand()

dnac::RemoveJointAnimationCommand::~RemoveJointAnimationCommand ( )
default

◆ RemoveJointAnimationCommand() [4/5]

dnac::RemoveJointAnimationCommand::RemoveJointAnimationCommand ( const RemoveJointAnimationCommand )
delete

◆ RemoveJointAnimationCommand() [5/5]

dnac::RemoveJointAnimationCommand::RemoveJointAnimationCommand ( RemoveJointAnimationCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ run()

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

Implements dnac::Command.

67 {
68 pImpl->run(static_cast<DNACalibDNAReaderImpl*>(output));
69}

References pImpl.

◆ setJointIndex()

void dnac::RemoveJointAnimationCommand::setJointIndex ( std::uint16_t  jointIndex)

Method for setting the index of a joint whose animation data to remove.

Parameters
jointIndexThe index of the joint.
Note
Call to either setter overwrites previous setter calls. When running the command, the last set joint animation(s) will be removed.
59 {
60 pImpl->setJointIndex(jointIndex);
61}

References pImpl.

◆ setJointIndices()

void dnac::RemoveJointAnimationCommand::setJointIndices ( ConstArrayView< std::uint16_t >  jointIndices)

Method for setting the indices of joints whose animation data to remove.

Parameters
jointIndicesThe joint indices.
Note
Call to either setter overwrites previous setter calls. When running the command, the last set joint animation(s) will be removed.
63 {
64 pImpl->setJointIndices(jointIndices);
65}

References pImpl.

Member Data Documentation

◆ pImpl

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

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