Changeset 340 in flair-src for trunk/lib/FlairSensorActuator/src/Camera.cpp
- Timestamp:
- 11/28/19 17:08:04 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/Camera.cpp
r338 r340 51 51 } 52 52 53 //This contructor must only be called for a simulated device.54 Camera::Camera(const IODevice *parent, std::string name)55 : IODevice(parent, name) {56 plot_tab = NULL;57 main_tab = NULL;58 tab = NULL;59 sensor_tab = NULL;60 setup_groupbox = NULL;61 62 output = NULL;63 logFormat=LogFormat::NONE;64 }65 66 53 Camera::~Camera() { 67 if (main_tab != NULL) 68 delete main_tab; 54 delete main_tab; 69 55 } 70 56 … … 94 80 95 81 void Camera::UseDefaultPlot(const core::Image *image) { 96 if (tab == NULL) {97 Err("not applicable for simulation part.\n");98 return;99 }100 101 82 plot_tab = new Tab(tab, "Picture"); 102 83 Picture *plot = new Picture(plot_tab->NewRow(), ObjectName(), image);
Note:
See TracChangeset
for help on using the changeset viewer.