18 constexpr static const
char* TypeName() noexcept {
return "DistanceMeasurementObject"; }
19 const char*
typeName()
const override {
return TypeName(); }
78 bool drawAsNegative_ =
false;
84 mutable std::optional<float> cachedValue_;
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
#define MRMESH_CLASS
Definition MRMesh/MRMeshFwd.h:50
Definition MRDistanceMeasurementObject.h:10
virtual MRMESH_API void setLocalDelta(const MR::Vector3f &delta)
MRMESH_API Vector3f getLocalPoint() const
virtual MRMESH_API void setLocalPoint(const MR::Vector3f &point)
DistanceMeasurementObject(const DistanceMeasurementObject &other)=default
MRMESH_API void deserializeFields_(const Json::Value &root) override
MRMESH_API float computeDistance() const
DistanceMeasurementObject()
Definition MRDistanceMeasurementObject.h:13
MRMESH_API Vector3f getLocalDelta() const
MRMESH_API void serializeFields_(Json::Value &root) const override
const char * typeName() const override
Definition MRDistanceMeasurementObject.h:19
MRMESH_API void setupRenderObject_() const override
MRMESH_API Vector3f getWorldPoint() const
DistanceMeasurementObject(DistanceMeasurementObject &&) noexcept=default
MRMESH_API std::shared_ptr< Object > shallowClone() const override
DistanceMeasurementObject(ProtectedStruct, const DistanceMeasurementObject &obj)
Definition MRDistanceMeasurementObject.h:22
virtual MRMESH_API void setPerCoordDeltasMode(PerCoordDeltas mode)
MRMESH_API bool getDrawAsNegative() const
PerCoordDeltas
Definition MRDistanceMeasurementObject.h:48
MRMESH_API Vector3f getWorldDelta() const
MRMESH_API std::shared_ptr< Object > clone() const override
MRMESH_API PerCoordDeltas getPerCoordDeltasMode() const
virtual MRMESH_API void setDrawAsNegative(bool value)
MRMESH_API void swapBase_(Object &other) override
swaps this object with other
MRMESH_API void propagateWorldXfChangedSignal_() override
std::string getClassName() const override
return human readable name of subclass
Definition MRDistanceMeasurementObject.h:24
MRMESH_API std::vector< std::string > getInfoLines() const override
return several info lines that can better describe the object in the UI
Definition MRMeasurementObject.h:11
named object in the data model
Definition MRObject.h:60
Definition MRCameraOrientationPlugin.h:8
Definition MRObject.h:246