DNA Calib 1.1
Project brief
RemoveMeshCommand.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "dnacalib/Command.h"
6#include "dnacalib/Defs.h"
8
9#include <cstdint>
10
11namespace dnac {
12
13class DNACalibDNAReader;
14
18class RemoveMeshCommand : public Command {
19 public:
20 DNACAPI explicit RemoveMeshCommand(MemoryResource* memRes = nullptr);
21 DNACAPI RemoveMeshCommand(std::uint16_t meshIndex, MemoryResource* memRes = nullptr);
22
24
27
30
36 DNACAPI void setMeshIndex(std::uint16_t meshIndex);
37 DNACAPI void run(DNACalibDNAReader* output) override;
38
39 private:
40 class Impl;
42
43};
44
45} // namespace dnac
Command is an abstract class whose implementations are expected to modify the DNA provided in the run...
Definition: Command.h:15
Definition: DNACalibDNAReader.h:12
Definition: RemoveMeshCommand.cpp:12
RemoveMeshCommand is used to remove a mesh.
Definition: RemoveMeshCommand.h:18
DNACAPI RemoveMeshCommand(RemoveMeshCommand &&)
RemoveMeshCommand & operator=(const RemoveMeshCommand &)=delete
DNACAPI void setMeshIndex(std::uint16_t meshIndex)
Method for setting the index of the mesh to remove.
Definition: RemoveMeshCommand.cpp:48
DNACAPI RemoveMeshCommand(MemoryResource *memRes=nullptr)
Definition: RemoveMeshCommand.cpp:35
RemoveMeshCommand(const RemoveMeshCommand &)=delete
DNACAPI RemoveMeshCommand & operator=(RemoveMeshCommand &&)
ScopedPtr< Impl > pImpl
Definition: RemoveMeshCommand.h:41
DNACAPI void run(DNACalibDNAReader *output) override
Definition: RemoveMeshCommand.cpp:52
MemoryResource is an abstract class that allows the implementation of polymorphic allocators.
Definition: MemoryResource.h:17
Takes ownership over the given pointer and handles it's lifetime.
Definition: ScopedPtr.h:116
#define DNACAPI
Definition: dnacalib/Defs.h:26
Definition: Command.h:8