18 constexpr static const
char* TypeName() noexcept {
return "AngleMeasurementObject"; }
19 const char*
typeName()
const override {
return TypeName(); }
21 constexpr static const char*
ClassName() noexcept {
return "Angle"; }
22 virtual std::string
className()
const override {
return ClassName(); }
79 bool isConical_ =
false;
82 bool shouldVisualizeRay_[2]{};
85 mutable std::optional<float> cachedValue_;
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
#define MRMESH_CLASS
Definition MRMesh/MRMeshFwd.h:84
Definition MRAngleMeasurementObject.h:10
static constexpr const char * ClassNameInPlural() noexcept
Definition MRAngleMeasurementObject.h:24
MRMESH_API Vector3f getWorldPoint() const
MRMESH_API std::shared_ptr< Object > clone() const override
MRMESH_API void swapBase_(Object &other) override
swaps this object with other
virtual std::string className() const override
Definition MRAngleMeasurementObject.h:22
MRMESH_API bool getShouldVisualizeRay(bool second) const
MRMESH_API void serializeFields_(Json::Value &root) const override
MRMESH_API void setIsConical(bool value)
AngleMeasurementObject(const AngleMeasurementObject &other)=default
MRMESH_API void deserializeFields_(const Json::Value &root) override
MRMESH_API bool getIsConical() const
virtual MRMESH_API void setLocalRays(const MR::Vector3f &a, const MR::Vector3f &b)
MRMESH_API Vector3f getWorldRay(bool second) const
AngleMeasurementObject(AngleMeasurementObject &&) noexcept=default
MRMESH_API std::vector< std::string > getInfoLines() const override
return several info lines that can better describe the object in the UI
MRMESH_API std::shared_ptr< Object > shallowClone() const override
AngleMeasurementObject()
Definition MRAngleMeasurementObject.h:13
MRMESH_API float computeAngle() const
const char * typeName() const override
Definition MRAngleMeasurementObject.h:19
MRMESH_API void setShouldVisualizeRay(bool second, bool enable)
virtual std::string classNameInPlural() const override
Definition MRAngleMeasurementObject.h:25
MRMESH_API Vector3f getLocalPoint() const
virtual MRMESH_API void setLocalPoint(const MR::Vector3f &point)
MRMESH_API Vector3f getLocalRay(bool second) const
AngleMeasurementObject(ProtectedStruct, const AngleMeasurementObject &obj)
Definition MRAngleMeasurementObject.h:28
MRMESH_API void setupRenderObject_() const override
MRMESH_API void onWorldXfChanged_() override
static constexpr const char * ClassName() noexcept
Definition MRAngleMeasurementObject.h:21
Definition MRMeasurementObject.h:11
named object in the data model
Definition MRObject.h:62
Definition MRCameraOrientationPlugin.h:8
Definition MRObject.h:279