25 #include <RobotAPI/libraries/widgets/ui_DebugLayerControlWidget.h>
27 #define UPDATE_INTERVAL 1.0 // update every second
37 SoSensorManager* sensor_mgr = SoDB::getSensorManager();
52 SoSensorManager* sensor_mgr = SoDB::getSensorManager();
68 armarx::LayerInformationSequence layers =
entityDrawer->layerInformation();
69 ui->layerTable->setRowCount(layers.size());
71 for (std::size_t i = 0; i < layers.size(); ++i)
73 const auto& layer = layers.at(i);
74 QString name = QString::fromStdString(layer.layerName);
80 ui->layerTable->setItem(i, 0,
new QTableWidgetItem{name});
81 ui->layerTable->setItem(i, 1,
new QTableWidgetItem{QString::number(layer.elementCount)});
84 std::unique_ptr<QCheckBox> box{
new QCheckBox};
85 box->setChecked(layer.visible);
88 ui->layerTable->setCellWidget(i, 2, box.release());
91 std::unique_ptr<QPushButton> removeB{
new QPushButton(
"remove")};
94 ui->layerTable->setCellWidget(i, 3, removeB.release());
99 VR_INFO <<
"No Debug Drawer" << std::endl;
106 auto name = layerName.toStdString();
116 VR_INFO <<
"name not present" << std::endl;
122 auto name = layerName.toStdString();
123 VR_INFO <<
"remove layer: " << name << std::endl;
131 VR_INFO <<
"name not present" << std::endl;