get the point cloud in the window
Posted: Mon Mar 21, 2016 12:40 pm
Hello everyone,
I create my plugin in CC, and I want to get the point cloud in the window with my plugin. But I can't get using follow code:
Is there something wrong with my code? And how can I do to get the point cloud in the cloudcompare window?
I create my plugin in CC, and I want to get the point cloud in the window with my plugin. But I can't get using follow code:
Code: Select all
m_activeWindow = m_app->getActiveGLWindow();
winDBRoot = m_activeWindow->getOwnDB();
globalDBRoot = m_activeWindow->getSceneDB();
ccHObject::Container toProcess;
if (winDBRoot) {
toProcess.push_back(winDBRoot);
}
if (globalDBRoot) {
toProcess.push_back(globalDBRoot);
}
while (!toProcess.empty()) {
ccHObject* ent = toProcess.back();
toProcess.pop_back();
if (!ent->isEnabled())
continue;
if (ent->isVisible()) {
if (ent->isA(CC_TYPES::POINT_CLOUD)) {
ccLog::Warning("point cloud is found!");
}
}
}