PointX are show as expanded, PointY is colapsed.
If sphere, plane or any primitive is created - it is shown expanded at first (image below).
2. I modified ccGLWindow.cpp to create spheres instead of labels (SHIFT+LEFT MOUSE).
there is code:
Code: Select all
ccHObject* obj = m_globalDBRoot->find(selectedID);
if (obj && obj->isKindOf(CC_POINT_CLOUD))
{
/*
cc2DLabel* label = new cc2DLabel();
label->addPoint(static_cast<ccGenericPointCloud*>(obj),pointID);
label->setVisible(true);
label->setDisplay(obj->getDisplay());
label->setPosition((float)(cursorX+20)/(float)width(),(float)(cursorY+20)/(float)height());
*/
ccGenericPointCloud* cloud = static_cast<ccGenericPointCloud*>(obj);
const CCVector3 *Point = cloud->getPoint(pointID);
ccGLMatrix *SphereTransformation = new ccGLMatrix();
(*SphereTransformation) += (*Point);
ccSphere* label = new ccSphere(0.5f, SphereTransformation, "PointX", 12);
delete SphereTransformation;
label->setColor(ccColor::magenta);
label->showColors(true);
label->setDrawName(true);
label->setVisible(true);
label->setDisplay(obj->getDisplay());
obj->addChild(label,true);
emit newLabel(static_cast<ccHObject*>(label));
QApplication::processEvents();
redraw();
}