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

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

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

Postby yjf27281181 » Sat Nov 11, 2017 2:54 am

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: 3326
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Postby daniel » Sat Nov 11, 2017 10:38 am

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


Return to “Plugins”

Who is online

Users browsing this forum: No registered users and 1 guest