void MultiPointCloudTreeWidgetItem::setRenderable(MultiPointCloud* mpc) { m_renderable = mpc; // Add stored point clouds as sub widgets lssr::pc_attr_it it; for(it = mpc->first(); it != mpc->last(); it ++) { PointCloud* pc = it->first; PointCloudTreeWidgetItem* item = new PointCloudTreeWidgetItem(PointCloudItem); // Setup supported render modes int modes = 0; size_t n_pn; modes |= Points; item->setName(pc->Name()); item->setNumPoints(pc->m_points.size()); item->setRenderable(pc); addChild(item); } }