void PointCloudSelectionHandler::onDeselect(const Picked& obj) { S_uint64::iterator it = obj.extra_handles.begin(); S_uint64::iterator end = obj.extra_handles.end(); for (; it != end; ++it) { int global_index = (*it & 0xffffffff) - 1; destroyBox(std::make_pair(obj.handle, global_index)); } }
str BOXdestroy(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci) { Box box; str name; (void) cntxt; (void) mb; (void) stk; /*fool compiler */ OpenBox("destroy"); destroyBox(name); return MAL_SUCCEED; }
SelectionHandler::~SelectionHandler() { S_Movable::iterator it = tracked_objects_.begin(); S_Movable::iterator end = tracked_objects_.end(); for (; it != end; ++it) { Ogre::MovableObject* m = *it; m->setListener(0); } while (!boxes_.empty()) { destroyBox(boxes_.begin()->first); } }
static void handleEvents(XEvent * event, void *data) { Box *bPtr = (Box *) data; CHECK_CLASS(data, WC_Box); switch (event->type) { case DestroyNotify: destroyBox(bPtr); break; case ConfigureNotify: rearrange(bPtr); break; } }
void SelectionHandler::onDeselect(const Picked& obj) { ROS_DEBUG("Deselected 0x%08x", obj.handle); destroyBox(std::make_pair(obj.handle, 0ULL)); }