3#include <NDEVR/DesignCommand.h>
4#include <NDEVR/DesignObjectLookup.h>
5#include <NDEVR/TranslatedString.h>
#define _t(english_string)
Definition Translator.h:90
A command for safely modifying something in a DesignObjectLookup. Modifications will be done in a sep...
Definition DesignCommand.h:52
bool is_undo
Definition DesignCommand.h:71
Buffer< UUID > targets
Definition DesignCommand.h:68
void setProperty(DesignProperty property, const t_type &value)
Definition DesignObject.h:177
@ e_name
Definition DesignObject.h:99
@ e_guid
Definition DesignObject.h:94
A core class where all Design Objects including models, materials, and geometries are stored....
Definition DesignObjectLookup.h:65
virtual void deleteObject(UUID id)
virtual Model restoreModel(UUID id)
bool hasModelID(const UUID &id, bool allow_deleted=false) const
Model model(const UUID &id, bool allow_deleted=false) const
virtual void addModel(Model object)
virtual void addScene(Scene scene, bool ignore_application_scene=false)
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
void updateModifiedTime(Time time=Time::SystemTime())
A DesignCommand that creates a new Model to some specification.
Definition NewModelCommand.h:12
std::function< void(Model &model)> on_create
Definition NewModelCommand.h:89
String type
Definition NewModelCommand.h:93
virtual void execute(DesignObjectLookup *lookup) override
Definition NewModelCommand.h:27
virtual TranslatedString name() const override
Definition NewModelCommand.h:23
TranslatedString model_name
Definition NewModelCommand.h:91
NewModelCommand(const TranslatedString &name, const std::function< void(Model &model)> &model)
Definition NewModelCommand.h:14
UUID parent_id
Definition NewModelCommand.h:92
virtual String icon() const override
Definition NewModelCommand.h:19
std::function< void(Model &model)> finished_callback
Definition NewModelCommand.h:90
The root Model that is responsible for storing the underlying data for all Scene Models.
Definition Model.h:492
The core String class for the NDEVR API.
Definition String.h:69
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
Used to lock a particular variable for writing. Only one write lock can be created when no read locks...
Definition RWLock.h:115
constexpr bool IsInvalid(const t_type &value)
Query if 'value' is valid or invalid. Invalid values should return invalid if used for calculations o...
Definition BaseFunctions.hpp:170
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96