Search found 37 matches

by fblue
Wed Sep 16, 2020 1:23 pm
Forum: Questions
Topic: use space bar as shortcut
Replies: 3
Views: 4470

Re: use space bar as shortcut

Yes indeed. But I've tried to set up QShortcut in my plugin by many ways, but nothing happens to the shortcut key. The codes are like this: QShortcut shortcut_pause = new QShortcut(QKeySequence(Qt::Key_F2), this); connect(shortcut_pause, SIGNAL(activated()), this, SLOT(onShortcutTriggered())); Then ...
by fblue
Mon Sep 14, 2020 9:17 am
Forum: Questions
Topic: use space bar as shortcut
Replies: 3
Views: 4470

use space bar as shortcut

Hello,
In my plugin, I'd like to use the space bar to invoke an action (ex: change the state of a toolButton in plugin). Is it possible to do that? and what if I use other shortcuts as "CTRL or ALT"?

Thank you in advance!
by fblue
Thu Jan 30, 2020 11:01 am
Forum: Questions
Topic: Code for searching neighborhood
Replies: 1
Views: 4487

Re: Code for searching neighborhood

I think I've figured it out.
In fact the return value is the number of nearest point and its index is stored in referenc Cloud.
by fblue
Wed Jan 29, 2020 4:50 pm
Forum: Questions
Topic: Code for searching neighborhood
Replies: 1
Views: 4487

Code for searching neighborhood

Hi, I want to search the nearest point from a given point in a cloud. I've tried the code as following: ccPointCloud* cloud = ccHObjectCaster::ToPointCloud(entity); CCLib::ReferenceCloud* ref_cloud = new CCLib::ReferenceCloud(cloud); CCVector3 point(200,100,100); double distance_ = 0.01; int test_in...
by fblue
Thu Jan 23, 2020 5:25 pm
Forum: Questions
Topic: create a label from a position
Replies: 1
Views: 2999

create a label from a position

Hello, Can I create a cc2DLabel which associates a point which doesn't exist in a point cloud? The method addPoint() in cc2DLabel needs the index of a point in the point cloud to give a label to this point. But if in a known position(x,y,z) where the cloud has no point, can I still create a label? O...
by fblue
Thu Jan 23, 2020 4:49 pm
Forum: Questions
Topic: How to delete display window of cc2Dlabel?
Replies: 1
Views: 2913

How to delete display window of cc2Dlabel?

Hello,
Bonne année!
I create a cc2DLabel in a point cloud and it displays as shown in the picture (attached).
How to hide the display window in the red part but keep the legend "Point 1"?

Thanks
Capture.PNG
Capture.PNG (9.06 KiB) Viewed 2913 times
by fblue
Wed Nov 20, 2019 12:01 pm
Forum: Questions
Topic: partial registration algorithm
Replies: 1
Views: 2724

partial registration algorithm

Hello, I'm on a project of doing registration on several point clouds which have one part in common for each. For example: as showed in the pictures, the first cloud has a cylinder and a cone; the second one has a cone and a sphere; the third one has a sphere and a box. The task is to register the t...
by fblue
Fri Aug 02, 2019 2:59 pm
Forum: Issues, bugs, etc.
Topic: Plugin RANSAC crash problem
Replies: 3
Views: 6906

Re: Plugin RANSAC crash problem

I tried to contact the author, but I don't succeed.
So, if I modify the codes for the bug in RANSAC, is it possible to ask you to verify and publish it on CC?
What's your way in general for fixing the bugs?

Thanks
by fblue
Wed Jul 10, 2019 8:44 am
Forum: Issues, bugs, etc.
Topic: Plugin RANSAC crash problem
Replies: 3
Views: 6906

Plugin RANSAC crash problem

Hello, I have a crash problem sometimes when I use RANSAC in sphere detection. It doesn't happen everytime, maybe because it is a random-based algorithm and depending on the point cloud data. According the debug information, it concerns the method Optimize() of the file "LowStretchSphereParamet...
by fblue
Wed Jul 03, 2019 8:16 am
Forum: Plugins
Topic: (Resolved)How can I use QtXml in my plugin?
Replies: 3
Views: 15228

(Resolved)Re: How can I use QtXml in my plugin?

Yes! In my plugin CMakeLists file, I've added the following lines: find_package(Qt5Xml REQUIRED) target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL Qt5::Xml) Then add the corresponding dlls in project and now the compilation is OK. Ps: I've tried many times in CMakeLis...