NDEVR
API Documentation
ImageModel.h
1#pragma once
2#include <NDEVR/Model.h>
3#if NDEVR_IMAGE_MODEL
4namespace NDEVR
5{
15 class NDEVR_DESIGN_API ImageModel : public Model
16 {
17 public:
21 ImageModel();
22
27 ImageModel(const Model& model);
28
33 void setImage(const StringView& image_id);
34
39 void adjustLabelName(const StringView& label);
40
45 void setImageFile(const File& image_id);
46
51 Model createView();
52
58 Model createPin(const BitFlag& pin_flags);
59
67 void updateGeometryScale(Geometry& geo);
68
73 StringView getImage() const;
74
79 static constexpr StringView TypeName() { return "image_model"; }
80
85 static constexpr StringView PinTypeName() { return "image_model_pin"; }
86
91 static constexpr StringView ViewTypeName() { return "image_model_view"; }
92 };
93}
94#endif
A core class that represents a node on model hierarchy.
Definition Model.h:292
The primary namespace for the NDEVR SDK.