hi there,
I want to write a plugin that
The function is: click this plugin to create a new 3d viewer,
and then display the new point cloud on this new 3dviewer.
I can't create a new 3d viewer with code, can you tell me some code.
thanks.
how to create new 3Dviewer in code?
Re: how to create new 3Dviewer in code?
You should look at how other plugins are doing it. For instance the https://github.com/CloudCompare/CloudCo ... ard/qBroom
Daniel, CloudCompare admin
Re: how to create new 3Dviewer in code?
This plugin makes its own interface, and then links 3dviewer to its own interface.
I want to create a new 3dviwer to put in the main cc interface. Like this
(I know cc comes with such a feature, but I want to implement it in my plugin so I can do it without changing anything inside cc.)
I have now implemented the following code to pop up a super large 3dviewer, but I can't link it with the cc main form.
Can you tell me how to link
thanks~
I want to create a new 3dviwer to put in the main cc interface. Like this
(I know cc comes with such a feature, but I want to implement it in my plugin so I can do it without changing anything inside cc.)
I have now implemented the following code to pop up a super large 3dviewer, but I can't link it with the cc main form.
Code: Select all
QWidget* viewWidget = nullptr;
ccGLWindow* view3D = nullptr;
m_app->createGLWindow(view3D,viewWidget);
viewWidget->showMaximized();
viewWidget->update();
thanks~
Re: how to create new 3Dviewer in code?
Well, I don't see any other choice than making the 'new3DView' method accessible to plugins (via the ccMainAppInterface).
And you'll have to make a PR on the master branch (since it impacts the main project).
And you'll have to make a PR on the master branch (since it impacts the main project).
Daniel, CloudCompare admin