MeshLib C++ Docs
Loading...
Searching...
No Matches
MRObjectImGuiLabel.h
Go to the documentation of this file.
1#pragma once
2
3#include "exports.h"
4
6
7namespace MR
8{
11
12
15class MRVIEWER_CLASS ObjectImGuiLabel : public VisualObject
16{
17public:
18 MRVIEWER_API ObjectImGuiLabel();
19
20 ObjectImGuiLabel( ObjectImGuiLabel&& ) noexcept = default;
21 ObjectImGuiLabel& operator = ( ObjectImGuiLabel&& ) noexcept = default;
22
23 constexpr static const char* StaticTypeName() noexcept
24 {
25 return "ObjectImGuiLabel";
26 }
27 const char* typeName() const override
28 {
29 return StaticTypeName();
30 }
31
32 bool hasVisualRepresentation() const override { return true; }
33
34 MRVIEWER_API std::shared_ptr<Object> clone() const override;
35 MRVIEWER_API std::shared_ptr<Object> shallowClone() const override;
36
39
40 [[nodiscard]] MRVIEWER_API const std::string& getLabel() const;
41 MRVIEWER_API void setLabel( std::string value );
42
43protected:
45
47 MRVIEWER_API void swapBase_( Object& other ) override;
48
49 MRVIEWER_API void serializeFields_( Json::Value& root ) const override;
50
51 MRVIEWER_API void deserializeFields_( const Json::Value& root ) override;
52
53 MRVIEWER_API void setupRenderObject_() const override;
54
55private:
56 std::string labelText_;
57};
58
59}
named object in the data model
Definition MRObject.h:62
bool hasVisualRepresentation() const override
does the object have any visual representation (visible points, triangles, edges, etc....
Definition MRObjectImGuiLabel.h:32
ObjectImGuiLabel(const ObjectImGuiLabel &other)=default
const std::string & getLabel() const
std::shared_ptr< Object > clone() const override
std::shared_ptr< Object > shallowClone() const override
ObjectImGuiLabel(ObjectImGuiLabel &&) noexcept=default
ObjectImGuiLabel(ProtectedStruct, const ObjectImGuiLabel &obj)
void serializeFields_(Json::Value &root) const override
void swapBase_(Object &other) override
swaps this object with other
static constexpr const char * StaticTypeName() noexcept
Definition MRObjectImGuiLabel.h:23
void setupRenderObject_() const override
void setLabel(std::string value)
void deserializeFields_(const Json::Value &root) override
const char * typeName() const override
Definition MRObjectImGuiLabel.h:27
@ other
Angle, normally float. Measure in radians.
Definition MRFeatureObject.h:27
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRObject.h:284