#pragma once #include #include "IxInterface.h" // 网格对齐 class IxGridAlign : virtual public IxInterface { public: // 计算对齐到网格后的坐标 virtual QPointF calcSnapPos(const QPointF& pos) const = 0; virtual bool isSnapEnabled() const = 0; };