17 constexpr static const char*
TypeName() noexcept {
return "ObjectLines"; }
18 virtual const char*
typeName()
const override {
return TypeName(); }
27 virtual const std::shared_ptr<Polyline3>&
varPolyline() {
return polyline_; }
35 virtual std::string
getClassName()
const override {
return "Lines"; }
54[[nodiscard]]
MRMESH_API std::shared_ptr<ObjectLines>
merge(
const std::vector<std::shared_ptr<ObjectLines>>& objsLines );
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
#define MRMESH_CLASS
Definition MRMesh/MRMeshFwd.h:50
Definition MRObjectLinesHolder.h:19
Definition MRObjectLines.h:11
virtual const char * typeName() const override
Definition MRObjectLines.h:18
virtual MRMESH_API std::shared_ptr< Polyline3 > updatePolyline(std::shared_ptr< Polyline3 > polyline)
sets given polyline to this, and returns back previous polyline of this;
virtual MRMESH_API void swapSignals_(Object &other) override
virtual MRMESH_API void swapBase_(Object &other) override
swaps this object with other
virtual MRMESH_API void setPolyline(const std::shared_ptr< Polyline3 > &polyline)
ObjectLines(ProtectedStruct, const ObjectLines &obj)
Definition MRObjectLines.h:32
static constexpr const char * TypeName() noexcept
Definition MRObjectLines.h:17
virtual const std::shared_ptr< Polyline3 > & varPolyline()
Definition MRObjectLines.h:27
LinesChangedSignal linesChangedSignal
Definition MRObjectLines.h:39
virtual MRMESH_API void setDirtyFlags(uint32_t mask, bool invalidateCaches=true) override
virtual std::string getClassName() const override
return human readable name of subclass
Definition MRObjectLines.h:35
ObjectLines(ObjectLines &&)=default
virtual MRMESH_API std::shared_ptr< Object > clone() const override
virtual MRMESH_API void serializeFields_(Json::Value &root) const override
serializeFields_: serializeBaseFields_ plus polyline serialization
ObjectLines & operator=(ObjectLines &&)=default
virtual MRMESH_API std::vector< std::string > getInfoLines() const override
return several info lines that can better describe the object in the UI
ObjectLines(const ObjectLines &other)=default
virtual MRMESH_API std::shared_ptr< Object > shallowClone() const override
named object in the data model
Definition MRObject.h:60
Definition MRCameraOrientationPlugin.h:8
MRMESH_API std::shared_ptr< ObjectLines > merge(const std::vector< std::shared_ptr< ObjectLines > > &objsLines)
constructs new ObjectLines containing the union of valid data from all input objects
Definition MRObject.h:246