Page 1 of 1

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

Posted: Thu Jul 01, 2021 7:44 am
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.

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

Posted: Thu Jul 01, 2021 7:53 am
by daniel
Hi,

That's the opposite: ccPointCloud derives from ccHObject (as all the entities that can be stored in the DB tree).

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

Posted: Thu Jul 01, 2021 8:22 am
by JaydenLee
Hello Daniel

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