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:
44 ObjectImGuiLabel( const ObjectImGuiLabel& other ) = default;
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}
Definition MRObjectImGuiLabel.h:16
named object in the data model
Definition MRObject.h:62
Visual Object.
Definition MRVisualObject.h:116
MRVIEWER_API std::shared_ptr< Object > clone() const override
MRVIEWER_API void setLabel(std::string value)
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
MRVIEWER_API void deserializeFields_(const Json::Value &root) override
MRVIEWER_API std::shared_ptr< Object > shallowClone() const override
MRVIEWER_API void serializeFields_(Json::Value &root) const override
ObjectImGuiLabel(ObjectImGuiLabel &&) noexcept=default
MRVIEWER_API const std::string & getLabel() const
MRVIEWER_API void setupRenderObject_() const override
MRVIEWER_API ObjectImGuiLabel()
MRVIEWER_API ObjectImGuiLabel(ProtectedStruct, const ObjectImGuiLabel &obj)
MRVIEWER_API void swapBase_(Object &other) override
swaps this object with other
const char * typeName() const override
Definition MRObjectImGuiLabel.h:27
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRObject.h:284