Template code for pcl viewer