16 setCheckState(0, Qt::Unchecked);
18 auto tmp =
m_bb->getBoundingBox();
20 QTreeWidgetItem *min_x_item =
new QTreeWidgetItem(
this);
21 min_x_item->setText(0,
"Min X:");
22 min_x_item->setText(1, std::to_string(tmp.getMin().x).c_str());
24 QTreeWidgetItem *min_y_item =
new QTreeWidgetItem(
this);
25 min_y_item->setText(0,
"Min Y:");
26 min_y_item->setText(1, std::to_string(tmp.getMin().y).c_str());
28 QTreeWidgetItem *min_z_item =
new QTreeWidgetItem(
this);
29 min_z_item->setText(0,
"Min Z:");
30 min_z_item->setText(1, std::to_string(tmp.getMin().z).c_str());
32 QTreeWidgetItem *max_x_item =
new QTreeWidgetItem(
this);
33 max_x_item->setText(0,
"Max X:");
34 max_x_item->setText(1, std::to_string(tmp.getMax().x).c_str());
36 QTreeWidgetItem *max_y_item =
new QTreeWidgetItem(
this);
37 max_y_item->setText(0,
"Max Y:");
38 max_y_item->setText(1, std::to_string(tmp.getMax().y).c_str());
40 QTreeWidgetItem *max_z_item =
new QTreeWidgetItem(
this);
41 max_z_item->setText(0,
"Max Z:");
42 max_z_item->setText(1, std::to_string(tmp.getMax().z).c_str());
47 bool parent_enabled =
true;
48 if (parent() && !parent()->checkState(0))
50 parent_enabled =
false;
55 m_bb->setVisibility(parent_enabled && checkState(0) && visible);
BoundingBoxBridgePtr m_bb
void setVisibility(bool visible)
LVRBoundingBoxItem(BoundingBoxBridgePtr bb, QString name="", QTreeWidgetItem *parent=NULL)
boost::shared_ptr< LVRBoundingBoxBridge > BoundingBoxBridgePtr