You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QPointF>
|
|
|
|
|
#include "IxInterface.h"
|
|
|
|
|
|
|
|
|
|
// 网格对齐
|
|
|
|
|
class IxGridAlign
|
|
|
|
|
: virtual public IxInterface
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// 计算对齐到网格后的坐标
|
|
|
|
|
virtual QPointF calcSnapPos(const QPointF& pos) const = 0;
|
|
|
|
|
virtual bool isSnapEnabled() const = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|