27 constexpr static const
char*
StaticTypeName() noexcept {
return "PointObject"; }
#define MRMESH_API
Definition MRMeshFwd.h:80
#define MRMESH_CLASS
Definition MRMeshFwd.h:87
named object in the data model
Definition MRObject.h:62
Definition MRViewportId.h:16
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
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
static constexpr const char * StaticClassName() noexcept
Definition MRPointObject.h:30
virtual std::string classNameInPlural() const override
Definition MRPointObject.h:34
FeatureObjectProjectPointResult projectPoint(const Vector3f &, ViewportId id={}) const override
virtual void swapBase_(Object &other) override
swaps this object with other
tl::expected< T, E > Expected
Definition MRExpected.h:31
PointObject(const std::vector< Vector3f > &pointsToApprox)
Finds best point to approx given points.
virtual void serializeFields_(Json::Value &root) const override
virtual std::string className() const override
Definition MRPointObject.h:31
static constexpr const char * StaticClassNameInPlural() noexcept
Definition MRPointObject.h:33
virtual std::shared_ptr< Object > clone() const override
void setLocalPoint(const Vector3f &point, ViewportId id={})
updates xf to fit given point
PointObject(PointObject &&) noexcept=default
void setupRenderObject_() const override
FeatureObject(int numDimensions)
numDimensions is 0 for points, 1 for lines, 2 for surface meshes. We don't use 3 at the moment.
virtual std::shared_ptr< Object > shallowClone() const override
Vector3f getPoint(ViewportId id={}) const
calculates point from xf
static constexpr const char * StaticTypeName() noexcept
Definition MRPointObject.h:27
virtual std::vector< FeatureObjectSharedProperty > & getAllSharedProperties() const override
Create and generate list of bounded getters and setters for the main properties of feature object,...
PointObject()
Creates simple point object with zero position.
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
@ other
Angle, normally float. Measure in radians.
Definition MRFeatureObject.h:27
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRFeatureObject.h:81
Definition MRObject.h:284