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

RemoveMeshCommand is used to remove meshes. More...

#include <RemoveMeshCommand.h>

Inheritance diagram for dnac::RemoveMeshCommand:
Inheritance graph
Collaboration diagram for dnac::RemoveMeshCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

DNACAPI RemoveMeshCommand (MemoryResource *memRes=nullptr)
 
DNACAPI RemoveMeshCommand (std::uint16_t meshIndex, MemoryResource *memRes=nullptr)
 
DNACAPI RemoveMeshCommand (ConstArrayView< std::uint16_t > meshIndices, MemoryResource *memRes=nullptr)
 
DNACAPI ~RemoveMeshCommand ()
 
 RemoveMeshCommand (const RemoveMeshCommand &)=delete
 
RemoveMeshCommandoperator= (const RemoveMeshCommand &)=delete
 
DNACAPI RemoveMeshCommand (RemoveMeshCommand &&)
 
DNACAPI RemoveMeshCommandoperator= (RemoveMeshCommand &&)
 
DNACAPI void setMeshIndex (std::uint16_t meshIndex)
 Method for setting the index of the mesh to remove. More...
 
DNACAPI void setMeshIndices (ConstArrayView< std::uint16_t > meshIndices)
 Method for setting the indices of meshes 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

RemoveMeshCommand is used to remove meshes.

Constructor & Destructor Documentation

◆ RemoveMeshCommand() [1/5]

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

◆ RemoveMeshCommand() [2/5]

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

References pImpl.

◆ RemoveMeshCommand() [3/5]

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

References pImpl.

◆ ~RemoveMeshCommand()

dnac::RemoveMeshCommand::~RemoveMeshCommand ( )
default

◆ RemoveMeshCommand() [4/5]

dnac::RemoveMeshCommand::RemoveMeshCommand ( const RemoveMeshCommand )
delete

◆ RemoveMeshCommand() [5/5]

dnac::RemoveMeshCommand::RemoveMeshCommand ( RemoveMeshCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ run()

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

Implements dnac::Command.

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

References pImpl.

◆ setMeshIndex()

void dnac::RemoveMeshCommand::setMeshIndex ( std::uint16_t  meshIndex)

Method for setting the index of the mesh to remove.

Parameters
meshIndexThe index of the mesh.
59 {
60 pImpl->setMeshIndex(meshIndex);
61}

References pImpl.

◆ setMeshIndices()

void dnac::RemoveMeshCommand::setMeshIndices ( ConstArrayView< std::uint16_t >  meshIndices)

Method for setting the indices of meshes to remove.

Parameters
meshIndicesThe mesh indices.
Note
Call to either setter overwrites previous setter calls. When running the command, the last set mesh(es) will be removed.
63 {
64 pImpl->setMeshIndices(meshIndices);
65}

References pImpl.

Member Data Documentation

◆ pImpl

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

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