hello,
when I "#include "../qCC/mainwindow.h" in qDummyPlugin.h,the following error occured:
"fatal error C1083: Cannot open include file:“ui_mainWindow.h”: No such file or directory"
how can I solve it
Thanks for any help
fatal error C1083
Re: fatal error C1083
Indeed,
Plugins don't have a direct access to most of the classes of the 'CloudCompare' executable project (contrarilly to the libraries: CC_Core_Lib, qCC_db, qCC_gl and qCC_io).
To access stuff from the main application you must use the 'ccMainAppInterface'. All standard plugins have a member 'm_app' that implements this interface.
If you miss something in this interface we can discuss whether it's a good idea to modify it or if there are other ways to achieve what you are trying to do.
Plugins don't have a direct access to most of the classes of the 'CloudCompare' executable project (contrarilly to the libraries: CC_Core_Lib, qCC_db, qCC_gl and qCC_io).
To access stuff from the main application you must use the 'ccMainAppInterface'. All standard plugins have a member 'm_app' that implements this interface.
If you miss something in this interface we can discuss whether it's a good idea to modify it or if there are other ways to achieve what you are trying to do.
Daniel, CloudCompare admin
Re: fatal error C1083
Thank you.
I want complete the function like the "swap" in "Cloud Registration",if I clicked the "swap" button,the color of the selected enties will change.
I want complete the function like the "swap" in "Cloud Registration",if I clicked the "swap" button,the color of the selected enties will change.
Re: fatal error C1083
Then the best way it to create your own dialog for the plugin (by duplicating most of the content of an existing one if necessary). See how other plugins (such as qPoissonRecon, qRansacSD, etc.) do this.
You can also copy the more simple 'Choose entity role' dialog (ccOrderChoiceDlg).
P.S. : this kind of very simple dialog (such as ccOrderChoiceDlg) could be put in a separate library. But it's rare that a plugin use the exact same dialog as an application (for now) so we haven't done it yet.
You can also copy the more simple 'Choose entity role' dialog (ccOrderChoiceDlg).
P.S. : this kind of very simple dialog (such as ccOrderChoiceDlg) could be put in a separate library. But it's rare that a plugin use the exact same dialog as an application (for now) so we haven't done it yet.
Daniel, CloudCompare admin