Where can I find the related codes that ccHObject derived from ccPointCloud

Any question about the main GUI application (frontend)
Post Reply
JaydenLee
Posts: 4
Joined: Mon Jun 21, 2021 7:26 am

Where can I find the related codes that ccHObject derived from ccPointCloud

Post by JaydenLee »

Hello.

I am analyzing CloudCompare's source code.

I found some code in AsciiFilter::loadCloudFromFormatedAsciiFile function.
"container.addChild(cloudDesc.cloud);"

This code cast ccPointCloud* to ccHObject *.
If so, I thought that ccHObject is derived from a ccPointCloud.
Am I right?
If so, where is the code that ccHObject is derived from a ccPointCloud.
If not, How can the ccHObject be casted to the ccPointCloud.

Thank you in advance.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Where can I find the related codes that ccHObject derived from ccPointCloud

Post by daniel »

Hi,

That's the opposite: ccPointCloud derives from ccHObject (as all the entities that can be stored in the DB tree).
Daniel, CloudCompare admin
JaydenLee
Posts: 4
Joined: Mon Jun 21, 2021 7:26 am

Re: Where can I find the related codes that ccHObject derived from ccPointCloud

Post by JaydenLee »

Hello Daniel

Thank you so much.
You let me save my time.
Have a nice day!
Post Reply