#pragma once #include "iPlotBase_global.h" #include 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; };