23 constexpr static const
char* TypeName() noexcept {
return "PointObject"; }
24 virtual const char*
typeName()
const override {
return TypeName(); }
30 virtual std::string
getClassName()
const override {
return "Point"; }
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
#define MRMESH_CLASS
Definition MRMesh/MRMeshFwd.h:50
An interface class which allows feature objects to share setters and getters on their main properties...
Definition MRFeatureObject.h:93
named object in the data model
Definition MRObject.h:60
Definition MRPointObject.h:13
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:55
PointObject(const PointObject &other)=default
PointObject(ProtectedStruct, const PointObject &obj)
Definition MRPointObject.h:27
virtual MRMESH_API std::shared_ptr< Object > shallowClone() const override
MRMESH_API Vector3f getPoint(ViewportId id={}) const
calculates point from xf
virtual std::string getClassName() const override
return human readable name of subclass
Definition MRPointObject.h:30
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:52
MRMESH_API void setPoint(const Vector3f &point, ViewportId id={})
updates xf to fit given point
virtual const char * typeName() const override
Definition MRPointObject.h:24
virtual MRMESH_API void swapBase_(Object &other) override
swaps this object with other
Definition MRViewportId.h:16
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58
Definition MRFeatureObject.h:78
Definition MRObject.h:246