00001 00017 #ifndef MAIN_WINDOW_D9KV76TW 00018 #define MAIN_WINDOW_D9KV76TW 00019 00020 #include <QtGui/QMainWindow> 00021 #include <sensor_msgs/Image.h> 00022 00023 #include <color_table/classification_window.h> 00024 #include "ui_main_window.h" 00025 00026 namespace color_table { 00027 00032 class MainWindow : public QMainWindow { 00033 Q_OBJECT 00034 00035 public: 00036 00042 MainWindow(QWidget *parent = 0); 00043 00044 void initialize(); 00045 00050 void closeEvent(QCloseEvent *event); 00051 00056 void show(); 00057 00061 std::string getBaseDirectory(); 00062 00063 public slots: 00064 00065 void on_actionOpen_Bag_triggered(); 00066 void on_currentFrameSpin_valueChanged(int value); 00067 void on_frameSlider_sliderMoved(int value); 00068 00069 private: 00070 Ui::ClassificationTool ui; 00071 ClassificationWindow classWindow; 00072 00073 std::vector<sensor_msgs::ImageConstPtr> images; 00074 }; 00075 00076 } 00077 00078 #endif /* end of include guard: MAIN_WINDOW_D9KV76TW */