Created
February 2, 2019 10:18
-
-
Save universax/731fa9205bd341e45d8aa6e1f5de136d to your computer and use it in GitHub Desktop.
Example of extending pcl visualizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
enum Edit_Mode { | |
Edit_Mode_None = 0, | |
Edit_Mode_X, | |
Edit_Mode_Y, | |
Edit_Mode_Z, | |
Edit_Mode_Pitch, | |
Edit_Mode_Yaw, | |
Edit_Mode_Roll, | |
Edit_Mode_Save, | |
Edit_Mode_Load | |
}; | |
class VisualizerManager | |
{ | |
public: | |
VisualizerManager(); | |
~VisualizerManager() {} | |
void updateVisualizer(pcl::PointCloud<PointType>::Ptr inputCloud); | |
private: | |
//Visualizer | |
boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer; | |
pcl::PointCloud<PointType>::Ptr showCloud; | |
void setupVisualizer(pcl::PointCloud<PointType>::Ptr inputCloud); | |
void setDefaultViewPoints(); | |
void updateDebugInfo(); | |
Edit_Mode editMode; | |
//Event | |
void keyboardEventOccurred(const pcl::visualization::KeyboardEvent & event, void * viewer_void); | |
void mouseEventOccurred(const pcl::visualization::KeyboardEvent & event, void * viewer_void); | |
boost::mutex mutex_lock; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment