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);
23
25
28
31
37 DNACAPI void setMeshIndex(std::uint16_t meshIndex);
45
46 DNACAPI void run(DNACalibDNAReader* output) override;
47
48 private:
49 class Impl;
51
52};
53
54} // 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 meshes.
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:59
DNACAPI RemoveMeshCommand(MemoryResource *memRes=nullptr)
Definition: RemoveMeshCommand.cpp:40
RemoveMeshCommand(const RemoveMeshCommand &)=delete
DNACAPI RemoveMeshCommand & operator=(RemoveMeshCommand &&)
ScopedPtr< Impl > pImpl
Definition: RemoveMeshCommand.h:50
DNACAPI void setMeshIndices(ConstArrayView< std::uint16_t > meshIndices)
Method for setting the indices of meshes to remove.
Definition: RemoveMeshCommand.cpp:63
DNACAPI void run(DNACalibDNAReader *output) override
Definition: RemoveMeshCommand.cpp:67
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
A view over a continuous sequence of objects.
Definition: ArrayView.h:55
#define DNACAPI
Definition: dnacalib/Defs.h:26
Definition: Command.h:8