51 explicit MainWindow(QWidget* parent =
nullptr);
61 void ActionAddGrid(
void);
63 void ActionOpenPointCloud(
void);
64 void PlayRenderableObject(
bool);
65 void ChangePointCloudChannel(
void);
67 void ActionOpenImage(
void);
68 void PlayVideoImage(
bool b);
69 void ChangeVideoImgChannel(
void);
72 void ActionDelVideoImage(
void);
74 void CloseVideoImgViewer(
bool b);
76 void UpdateActions(
void);
77 void EnableGrid(
bool b);
79 void EditGridColor(QTreeWidgetItem* item,
int column);
80 void ChangeGridCellCountBySize(
int v);
82 void ActionOpenImages(
void);
83 void AddVideoImages(
void);
85 void ActionOpenRadarChannel(
void);
86 void openRadarChannel(
bool b);
87 void EnableRadarPoints(
bool b);
88 void ChangeRadarChannel(
void);
90 void showMessage(
void);
98 void PointCloudReaderCallback(
99 const std::shared_ptr<const apollo::drivers::PointCloud>& pdata);
100 void ImageReaderCallback(
101 const std::shared_ptr<const apollo::drivers::Image>& imgData,
103 void ImageReaderCallback(
104 const std::shared_ptr<const apollo::drivers::CompressedImage>& imgData,
107 void InsertAllChannelNames(
void);
111 void calculateWH(
void);
114 void DoOpenRadarChannel(
bool b,
RadarData* radarProxy);
115 void RadarRenderCallback(
116 const std::shared_ptr<const apollo::drivers::RadarObstacles>& rawData,
123 QTreeWidgetItem* all_channel_root_;
126 QCheckBox* enable_grid_checkBox_;
127 QTreeWidgetItem* grid_root_item_;
129 QTreeWidgetItem* pointcloud_top_item_;
130 QComboBox* pointcloud_comboBox_;
131 QPushButton* pointcloud_button_;
134 QMutex pointcloud_reader_mutex_;
138 std::shared_ptr<QOpenGLShaderProgram> pointcloud_shader_;
139 std::shared_ptr<QOpenGLShaderProgram> grid_shader_;
140 std::shared_ptr<QOpenGLShaderProgram> radar_points_shader_;
142 QList<VideoImgProxy*> video_image_viewer_list_;
143 QList<VideoImgProxy*> closed_video_image_viewer_list_;
145 QList<RadarData*> radarData_list_;
146 QList<RadarData*> closed_radarData_list_;
148 std::map<std::string, std::string> _channelName2TypeMap;
void resizeEvent(QResizeEvent *) override
void AddNewWriter(const apollo::cyber::proto::RoleAttributes &role)
void TopologyChanged(const apollo::cyber::proto::ChangeMsg &change_msg)