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.
40 lines
636 B
C++
40 lines
636 B
C++
#pragma once
|
|
|
|
#include "iPlotBase_global.h"
|
|
#include <QCursor>
|
|
|
|
class ZxRenderItem;
|
|
class ZxHandlePolicy;
|
|
|
|
/// 控制点的引用
|
|
class I_PLOTBASE_EXPORT ZxHandleRef
|
|
{
|
|
public:
|
|
|
|
ZxHandleRef();
|
|
ZxHandleRef(ZxHandlePolicy* p, int nHandleId);
|
|
ZxHandleRef(const ZxHandleRef& c);
|
|
|
|
bool operator==(const ZxHandleRef& c) const;
|
|
bool operator!=(const ZxHandleRef& c) const;
|
|
|
|
bool isValid() const;
|
|
void clear();
|
|
|
|
ZxRenderItem* item() const;
|
|
ZxHandlePolicy* policy() const;
|
|
int id() const;
|
|
QCursor cursor() const;
|
|
|
|
private:
|
|
|
|
ZxRenderItem* _item;
|
|
ZxHandlePolicy* _policy;
|
|
int _id;
|
|
};
|
|
|
|
|
|
|
|
|
|
|