41#include "../common/metatreeitem.h"
42#include "../../3dhelpers/renderable3Dentity.h"
43#include "../../materials/pervertexphongalphamaterial.h"
44#include "../../3dhelpers/custommesh.h"
60using namespace DISP3DLIB;
62using namespace MNELIB;
78 this->setEditable(
false);
79 this->setCheckable(
true);
80 this->setCheckState(Qt::Checked);
81 this->setToolTip(
"Sensor surface item");
85 this->setMaterial(pBemMaterial);
100 Qt3DRender::QGeometryRenderer::Triangles);
105 data.setValue(tSensorSurface.
rr.rows());
106 this->
setData(data, Data3DTreeModelItemRoles::NumberVertices);
MNEBem class declaration.
SensorSurfaceTreeItem class declaration.
static Eigen::MatrixX4f createVertColor(int numVert, const QColor &color=QColor(0, 49, 69))
Provides a generic mesh tree item.
virtual void setData(const QVariant &value, int role=Qt::UserRole+1)
QPointer< CustomMesh > m_pCustomMesh
SensorSurfaceTreeItem(Qt3DCore::QEntity *p3DEntityParent=0, int iType=Data3DTreeModelItemTypes::SensorSurfaceItem, const QString &text="Sensor Surface")
void addData(const MNELIB::MNEBemSurface &tSensorSurface)
PerVertexPhongAlphaMaterial is provides a Qt3D material with own shader support.
BEM surface provides geometry information.