vision
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
roboticslab::vtkTimerCallback Class Reference

#include <vtkTimerCallback.hpp>

Inheritance diagram for roboticslab::vtkTimerCallback:

Public Member Functions

void init ()
 
void setRenderer (vtkRenderer *_renderer)
 
void setSharedArea (SharedArea *_sharedArea)
 
void cloud_cb_ (const pcl::PointCloud< pcl::PointXYZ >::ConstPtr &cbCloud)
 
virtual void Execute (vtkObject *caller, unsigned long eventId, void *vtkNotUsed(callData))
 

Static Public Member Functions

static vtkTimerCallbackNew ()
 

Private Member Functions

void makeLineActor (vtkActor *_lineActor)
 
void updateLine ()
 
void makeCloudActor (vtkActor *_cloudActor)
 
void updateCloud ()
 
void makeFilteredCloudActor (vtkActor *_filteredCloudActor)
 
void updateFilteredCloud ()
 
void createFilteredCloud (pcl::PointCloud< pcl::PointXYZ >::Ptr &_outCloud)
 
void removePlanes (pcl::PointCloud< pcl::PointXYZ >::Ptr &_inOutCloud)
 
void objectSegmentation (pcl::PointCloud< pcl::PointXYZ >::Ptr &_inCloud, vtkActorCollection *_actorCollection)
 
void convertPointCloudToVTKPolyData (const pcl::PointCloud< pcl::PointXYZ > &cloud, vtkSmartPointer< vtkPolyData > &polydata)
 

Private Attributes

vtkRenderer * renderer
 
SharedAreasharedArea
 
vtkSmartPointer< vtkLineSource > lineSource
 
double p0 [3]
 
double p1 [3]
 
pcl::Grabber * interface
 
pcl::PointCloud< pcl::PointXYZ >::Ptr cloud
 
pcl::PointCloud< pcl::PointXYZ >::Ptr cloud_filtered
 
bool cloudInit
 
vtkSmartPointer< vtkPolyData > cloud_vtkPD
 
vtkSmartPointer< vtkPolyData > cloud_filtered_vtkPD
 
vtkSmartPointer< vtkActorCollection > objectActorCollection
 

Detailed Description

The vtkTimerCallback object connects to the Kinect, connects its timer event to a member as a callback function so the Kinect data can always be updated. It forces re-render, and recalculates kinect object - Line intersection. The Line data is always updated as it proceeds from the Shared Area.


The documentation for this class was generated from the following files: