51 icon.addFile(QString::fromUtf8(
":/qv_mesh_texture_icon.png"), QSize(),
QIcon::Normal, QIcon::Off);
54 QTreeWidgetItem* item =
new QTreeWidgetItem(
m_parent);
55 item->setIcon(0, icon);
56 item->setText(0,
"Textures");
60 QTreeWidgetItem* texNumItem =
new QTreeWidgetItem(item);
62 texNumItem->setText(0,
"Num Textures:");
63 texNumItem->setText(1, numTextures.setNum(
m_meshBridge->getNumTextures()));
64 item->addChild(texNumItem);
66 QTreeWidgetItem* colFaceItem =
new QTreeWidgetItem(item);
68 colFaceItem->setText(0,
"Num Colored Tris:");
69 colFaceItem->setText(1, numColFaces.setNum(
m_meshBridge->getNumColoredFaces()));
70 item->addChild(colFaceItem);
72 QTreeWidgetItem* texFaceItem =
new QTreeWidgetItem(item);
74 texFaceItem->setText(0,
"Num Textured Tris:");
75 texFaceItem->setText(1, numTexFaces.setNum(
m_meshBridge->getNumTexturedFaces()));
76 item->addChild(texFaceItem);
MeshBufferBridgePtr m_meshBridge
boost::shared_ptr< LVRMeshBufferBridge > MeshBufferBridgePtr
virtual ~LVRTextureMeshItem()
LVRTextureMeshItem(MeshBufferBridgePtr &ptr, QTreeWidgetItem *parent=0)
QTreeWidgetItem * m_parent
virtual void addSubItems()