Search found 47 matches

by suyufeng
Fri Jun 18, 2021 7:57 am
Forum: Plugins
Topic: getPickedPoints
Replies: 11
Views: 5530

Re: getPickedPoints

ccPointListPickingDlg *point_list_picking; std::vector<cc2DLabel*> labels; const int count = static_cast<int>(point_list_picking->getPickedPoints(labels)); //Crashes here for ( int i = 0; i < count; ++i ) { cc2DLabel* label = labels[static_cast<unsigned int>( i )]; const cc2DLabel::PickedPoint& ...
by suyufeng
Fri Jun 18, 2021 6:28 am
Forum: Plugins
Topic: getPickedPoints
Replies: 11
Views: 5530

getPickedPoints

ccPointListPickingDlg::getPickedPoints()

How do I call it in the plugin to get the coordinates of the point selected by the mouse?
by suyufeng
Thu Jun 17, 2021 3:08 am
Forum: Questions
Topic: If I want to use ccOverlayDialog in my own plugin, what should I do?
Replies: 13
Views: 4068

Re: If I want to use ccOverlayDialog in my own plugin, what should I do?

When using the ‘poing list picking’ function, where is the function for clicking on the point cloud to obtain the coordinate information, and how will I transfer the coordinate data to the plug-in?
by suyufeng
Thu Jun 17, 2021 2:03 am
Forum: Questions
Topic: If I want to use ccOverlayDialog in my own plugin, what should I do?
Replies: 13
Views: 4068

Re: If I want to use ccOverlayDialog in my own plugin, what should I do?

I wanted to code a plug-in for an interface like'point list picking', display it in the upper right corner of the cc, and then do it. I couldn't do it.
by suyufeng
Wed Jun 16, 2021 1:34 am
Forum: Questions
Topic: If I want to use ccOverlayDialog in my own plugin, what should I do?
Replies: 13
Views: 4068

Re: If I want to use ccOverlayDialog in my own plugin, what should I do?

Thank you very much!
In the meantime, do you have any suggestions for my last question, fixing the plug-in form in the upper right corner of the cc?
by suyufeng
Tue Jun 15, 2021 12:28 pm
Forum: Questions
Topic: If I want to use ccOverlayDialog in my own plugin, what should I do?
Replies: 13
Views: 4068

Re: If I want to use ccOverlayDialog in my own plugin, what should I do?

I'm sorry, I have so many questions.
I'm in the process of plug-in development, and I'm about to finish, but cc warned!

[Qt WARNING] [] QAbstractItemModel::endInsertRows: Invalid index ( 5 , 0 ) in model ccDBRoot(0x55b5ab379f50)

I can't find a reason for the error.
by suyufeng
Tue Jun 15, 2021 12:12 pm
Forum: Questions
Topic: If I want to use ccOverlayDialog in my own plugin, what should I do?
Replies: 13
Views: 4068

Re: If I want to use ccOverlayDialog in my own plugin, what should I do?

Hahaha!

I need to fix my plug-in form in the upper right corner. Does cloudcompare currently have plug-ins that I can refer to? Do you have any suggestions? Thank you!
by suyufeng
Tue Jun 15, 2021 1:50 am
Forum: Questions
Topic: If I want to use ccOverlayDialog in my own plugin, what should I do?
Replies: 13
Views: 4068

Re: If I want to use ccOverlayDialog in my own plugin, what should I do?

I'm sorry, I can't understand what you mean. Could you explain it?

I bet the only solution is to make your widget do the jog (registering to the all the useful signals the various components of CC involved in this process may emit).
by suyufeng
Fri Jun 11, 2021 9:33 am
Forum: Questions
Topic: If I want to use ccOverlayDialog in my own plugin, what should I do?
Replies: 13
Views: 4068

Re: If I want to use ccOverlayDialog in my own plugin, what should I do?

happy weekend! I am so excited that I found this post. My plug-in uses qt code to create a Qwidget form, with buttons, labels and other controls on it. Your registerOverlayDialog() function needs ccOverlayDialog type, but I am qwidget, I don’t know what to do Qwidget *widget = new Qwidget(); registe...
by suyufeng
Fri Jun 11, 2021 6:56 am
Forum: Questions
Topic: Difficulties when using the camera.
Replies: 2
Views: 686

Re: Difficulties when using the camera.

Thank you for your answer