15 DimensionsVisualizePropertyType::diameter,
16 DimensionsVisualizePropertyType::length
28 constexpr static const
char* TypeName() noexcept
30 return "CylinderObject";
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
#define MRMESH_CLASS
Definition MRMesh/MRMeshFwd.h:50
length
Definition MRObjectDimensionsEnum.h:14
Definition MRAddVisualPropertiesMixin.h:14
Definition MRCylinderObject.h:18
CylinderObject(const CylinderObject &other)=default
virtual Expected< void > deserializeModel_(const std::filesystem::path &, ProgressCallback) override
Reads model from file.
Definition MRCylinderObject.h:86
MRMESH_API Vector3f getDirection(ViewportId id={}) const
calculates main axis direction from xf
MRMESH_API void setLength(float length, ViewportId id={})
updates xf to fit cylinder length
virtual MRMESH_API const std::vector< FeatureObjectSharedProperty > & getAllSharedProperties() const override
Create and generate list of bounded getters and setters for the main properties of feature object,...
MRMESH_API Vector3f getCenter(ViewportId id={}) const
calculates center from xf
CylinderObject(CylinderObject &&) noexcept=default
virtual Expected< std::future< Expected< void > > > serializeModel_(const std::filesystem::path &) const override
Definition MRCylinderObject.h:81
MRMESH_API void setRadius(float radius, ViewportId id={})
updates xf to fit given radius
virtual const char * typeName() const override
Definition MRCylinderObject.h:32
MRMESH_API float getLength(ViewportId id={}) const
calculates cylinder length from xf
virtual MRMESH_API std::shared_ptr< Object > shallowClone() const override
MRMESH_API void setDirection(const Vector3f &normal, ViewportId id={})
updates xf to fit main axis
virtual MRMESH_API std::shared_ptr< Object > clone() const override
MRMESH_API float getRadius(ViewportId id={}) const
calculates radius from xf
virtual MRMESH_API Vector3f getBasePoint(ViewportId id={}) const override
MRMESH_API FeatureObjectProjectPointResult projectPoint(const Vector3f &point, ViewportId id={}) const override
MRMESH_API void setupRenderObject_() const override
virtual MRMESH_API void serializeFields_(Json::Value &root) const override
MRMESH_API void setCenter(const Vector3f ¢er, ViewportId id={})
updates xf to fit given center
virtual MRMESH_API void swapBase_(Object &other) override
swaps this object with other
MRMESH_API CylinderObject(const std::vector< Vector3f > &pointsToApprox)
Finds best Cylinder to approx given points.
CylinderObject(ProtectedStruct, const CylinderObject &obj)
Definition MRCylinderObject.h:38
MRMESH_API CylinderObject()
Creates simple Cylinder object with center in zero and radius - 1.
virtual std::string getClassName() const override
return human readable name of subclass
Definition MRCylinderObject.h:41
named object in the data model
Definition MRObject.h:60
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