Re: PlugIn Examples
Posted: Fri Apr 14, 2017 6:10 am
To remove an entity, simply call 'removeFromDB' in mainwindow.cpp, and 'm_app->removeFromDB' in a plugin (m_app gives you access to most components of CloudCompare from the plugin by the way).
An alternative is to disable the entities instead of deleting them (in the case the user made a mistake or wants to use them later).
ccMesh is a child of the ccHObject class (as all 3D entities). You can have a look at the code documentation on the 'Documentation' page of the website (see http://www.cloudcompare.org/doc/qCC_db/ ... tated.html for instance). There's all the libraries and the CloudCompare application. However it's a bit outdated, so it may be a good idea to generate the documentation on your side. It's very easy:
- download doxygen
- start it and select the doxygen file in the 'doc' folder of the part of the project you are interested in (there's no extension, generally it's called XXX_doxygen_file)
- run doxygen and you'll get a nice up-to-date html documentation (you only have to do it once)
An alternative is to disable the entities instead of deleting them (in the case the user made a mistake or wants to use them later).
ccMesh is a child of the ccHObject class (as all 3D entities). You can have a look at the code documentation on the 'Documentation' page of the website (see http://www.cloudcompare.org/doc/qCC_db/ ... tated.html for instance). There's all the libraries and the CloudCompare application. However it's a bit outdated, so it may be a good idea to generate the documentation on your side. It's very easy:
- download doxygen
- start it and select the doxygen file in the 'doc' folder of the part of the project you are interested in (there's no extension, generally it's called XXX_doxygen_file)
- run doxygen and you'll get a nice up-to-date html documentation (you only have to do it once)