55 icon.addFile(QString::fromUtf8(
":/qv_mesh_tree_icon.png"), QSize(),
QIcon::Normal, QIcon::Off);
57 setText(0,
"Triangle Mesh");
62 QTreeWidgetItem* vertItem =
new QTreeWidgetItem(
this);
64 vertItem->setText(0,
"Num Points:");
65 vertItem->setText(1, numVerts.setNum(
m_meshBridge->getNumVertices()));
68 QTreeWidgetItem* faceItem =
new QTreeWidgetItem(
this);
70 faceItem->setText(0,
"Num Triangles:");
71 faceItem->setText(1, numFaces.setNum(
m_meshBridge->getNumTriangles()));
83 m_meshBridge->setBaseColor(c.redF(), c.greenF(), c.blueF());
88 m_meshBridge->setBaseColor(c.redF(), c.greenF(), c.blueF());
virtual void addSubItems()
void setSelectionColor(QColor &c)
MeshBufferBridgePtr m_meshBridge
std::shared_ptr< MeshBuffer > MeshBufferPtr
vtkSmartPointer< vtkActor > getActor()
void setShading(int &shader)
boost::shared_ptr< LVRMeshBufferBridge > MeshBufferBridgePtr
LVRMeshItem(MeshBufferBridgePtr &ptr, QTreeWidgetItem *parent=0)
void setVisibility(bool &visiblity)
vtkSmartPointer< vtkActor > getWireframeActor()
QTreeWidgetItem * m_parent
MeshBufferPtr getMeshBuffer()
void setOpacity(float &opacity)