extra code after spin() function is not executed.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

extra code after spin() function is not executed.

Sameer
I know that spin() function calls spinOnce() in  an infinite loop to update
scene in pcl visualizser..
but I'm working on a project where i need to execute some code after using
spin() function .
this code could be like:


  void addBoundingBox()
{
  // add vtkBoxWidget2 to the pcl visualizer
  m_label = new BoundingBoxLabel(m_pclViewer,
ia::annotalight::common::AnnnotationKinds::CAR);
  m_label->addLabel(*m_labelingService);
  m_pclViewer->spin();
  // i need to execute this code to add the vtkBox to a QTreeWidget
  setAllLabels(m_labelingService);
  initLabelsList();
}




--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: extra code after spin() function is not executed.

Sérgio Agostinho

I already answered your questions on SO.

Cheers



_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: extra code after spin() function is not executed.

Sameer
thanks man



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users