22 MRMESH_API
PointObject(
const std::vector<Vector3f>& pointsToApprox );
27 constexpr static const
char* StaticTypeName() noexcept {
return "PointObject"; }
28 virtual const char*
typeName()
const override {
return StaticTypeName(); }
31 virtual std::string
className()
const override {
return StaticClassName(); }
34 virtual std::string
classNameInPlural()
const override {
return StaticClassNameInPlural(); }
40 MRMESH_API
virtual std::shared_ptr<Object>
clone()
const override;
41 MRMESH_API
virtual std::shared_ptr<Object>
shallowClone()
const override;
An interface class which allows feature objects to share setters and getters on their main properties...
Definition MRFeatureObject.h:96
named object in the data model
Definition MRObject.h:62
Definition MRPointObject.h:17
Definition MRViewportId.h:16
MRMESH_API FeatureObjectProjectPointResult projectPoint(const Vector3f &, ViewportId id={}) const override
virtual Expected< void > deserializeModel_(const std::filesystem::path &, ProgressCallback) override
Reads model from file.
Definition MRPointObject.h:63
PointObject(const PointObject &other)=default
PointObject(ProtectedStruct, const PointObject &obj)
Definition MRPointObject.h:37
virtual MRMESH_API std::shared_ptr< Object > shallowClone() const override
static constexpr const char * StaticClassName() noexcept
Definition MRPointObject.h:30
virtual std::string classNameInPlural() const override
Definition MRPointObject.h:34
MRMESH_API Vector3f getPoint(ViewportId id={}) const
calculates point from xf
tl::expected< T, E > Expected
Definition MRExpected.h:31
virtual std::string className() const override
Definition MRPointObject.h:31
static constexpr const char * StaticClassNameInPlural() noexcept
Definition MRPointObject.h:33
virtual MRMESH_API std::vector< FeatureObjectSharedProperty > & getAllSharedProperties() const override
Create and generate list of bounded getters and setters for the main properties of feature object,...
MRMESH_API PointObject(const std::vector< Vector3f > &pointsToApprox)
Finds best point to approx given points.
MRMESH_API void setupRenderObject_() const override
PointObject(PointObject &&) noexcept=default
MRMESH_API PointObject()
Creates simple point object with zero position.
virtual MRMESH_API std::shared_ptr< Object > clone() const override
virtual MRMESH_API void serializeFields_(Json::Value &root) const override
virtual Expected< std::future< Expected< void > > > serializeModel_(const std::filesystem::path &) const override
Definition MRPointObject.h:60
virtual const char * typeName() const override
Definition MRPointObject.h:28
virtual MRMESH_API void swapBase_(Object &other) override
swaps this object with other
MRMESH_API void setLocalPoint(const Vector3f &point, ViewportId id={})
updates xf to fit given point
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRFeatureObject.h:81
Definition MRObject.h:284