How can I implement point picking function in my own plugin?

For any question about plugins!
Post Reply
yjf27281181
Posts: 16
Joined: Mon Sep 26, 2016 12:46 am

How can I implement point picking function in my own plugin?

Post by yjf27281181 »

Hi daniel,
My problem is that I want to add point picking function in my plugin and it seems I should inherit ccPointPickingGenericInterface and implement some virtual functions. However, when I inherited ccPointPickingGenericInterface and compiled my plugin, the following errors occurred:


error LNK2019 unresolved external symbol "public: __cdecl ccOverlayDialog::ccOverlayDialog(class QWidget *)" (??0ccOverlayDialog@@QEAA@PEAVQWidget@@@Z),referenced in function "public: __cdecl ccYjfDlg::ccYjfDlg(class QWidget *)" (??0ccYjfDlg@@QEAA@PEAVQWidget@@@Z) referenced in QYJF_PLUGIN D:\2016program\2016CC\trunk-build\plugins\qYJFPlugin\ccYjfDlg.obj 1

error LNK2001 unresolved external symbol "public: virtual void __cdecl ccOverlayDialog::reject(void)" (?reject@ccOverlayDialog@@UEAAXXZ) QYJF_PLUGIN D:\2016program\2016CC\trunk-build\plugins\qYJFPlugin\ccYjfDlg.obj 1

error LNK2001 unresolved external symbol "protected: virtual bool __cdecl ccOverlayDialog::eventFilter(class QObject *,class QEvent *)" (?eventFilter@ccOverlayDialog@@MEAA_NPEAVQObject@@PEAVQEvent@@@Z) QYJF_PLUGIN D:\2016program\2016CC\trunk-build\plugins\qYJFPlugin\ccYjfDlg.obj 1

How can I resolve that? or do I have any other ways to fulfill my requirement?
daniel
Site Admin
Posts: 7332
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: How can I implement point picking function in my own plugin?

Post by daniel »

No, actually you should only use the ccPickingHub interface. See how it's used in some CloudCompare tools directly, or in the qCompass plugin.

The ccPointPickingGenericInterface is only used by the 'Point picking' and 'Point list picking' tools of CloudCompare.
Daniel, CloudCompare admin
Post Reply