MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Custom mesh functionality. More...
#include <custommesh.h>
Public Types | |
typedef QSharedPointer< CustomMesh > | SPtr |
typedef QSharedPointer< const CustomMesh > | ConstSPtr |
Public Member Functions | |
CustomMesh () | |
CustomMesh (const Eigen::MatrixX3f &tMatVert, const Eigen::MatrixX3f &tMatNorm, const Eigen::MatrixXi &tMatTris, const Eigen::MatrixX4f &tMatColors, Qt3DRender::QGeometryRenderer::PrimitiveType primitiveType=Qt3DRender::QGeometryRenderer::Triangles) | |
~CustomMesh () | |
void | setColor (const Eigen::MatrixX4f &tMatColors) |
void | setNormals (const Eigen::MatrixX3f &tMatNorm) |
void | setVertex (const Eigen::MatrixX3f &tMatVert) |
void | setIndex (const Eigen::MatrixXi &tMatTris) |
void | setMeshData (const Eigen::MatrixX3f &tMatVert, const Eigen::MatrixX3f &tMatNorm, const Eigen::MatrixXi &tMatTris, const Eigen::MatrixX4f &tMatColors, Qt3DRender::QGeometryRenderer::PrimitiveType primitiveType=Qt3DRender::QGeometryRenderer::Triangles) |
void | addAttribute (QT_COMPATIBILITY_3D::QAttribute *pAttribute) |
Protected Member Functions | |
void | init () |
Protected Attributes | |
QPointer< QT_COMPATIBILITY_3D::QBuffer > | m_pVertexDataBuffer |
QPointer< QT_COMPATIBILITY_3D::QBuffer > | m_pNormalDataBuffer |
QPointer< QT_COMPATIBILITY_3D::QBuffer > | m_pColorDataBuffer |
QPointer< QT_COMPATIBILITY_3D::QBuffer > | m_pIndexDataBuffer |
QPointer< QT_COMPATIBILITY_3D::QGeometry > | m_pCustomGeometry |
QPointer< QT_COMPATIBILITY_3D::QAttribute > | m_pIndexAttribute |
QPointer< QT_COMPATIBILITY_3D::QAttribute > | m_pVertexAttribute |
QPointer< QT_COMPATIBILITY_3D::QAttribute > | m_pNormalAttribute |
QPointer< QT_COMPATIBILITY_3D::QAttribute > | m_pColorAttribute |
int | m_iNumVert |
typedef QSharedPointer<const CustomMesh> DISP3DLIB::CustomMesh::ConstSPtr |
Const shared pointer type for CustomMesh class.
Definition at line 99 of file custommesh.h.
typedef QSharedPointer<CustomMesh> DISP3DLIB::CustomMesh::SPtr |
Shared pointer type for CustomMesh class.
Definition at line 98 of file custommesh.h.
CustomMesh::CustomMesh | ( | ) |
Default constructor.
Definition at line 64 of file custommesh.cpp.
DISP3DLIB::CustomMesh::CustomMesh | ( | const Eigen::MatrixX3f & | tMatVert, |
const Eigen::MatrixX3f & | tMatNorm, | ||
const Eigen::MatrixXi & | tMatTris, | ||
const Eigen::MatrixX4f & | tMatColors, | ||
Qt3DRender::QGeometryRenderer::PrimitiveType | primitiveType = Qt3DRender::QGeometryRenderer::Triangles |
||
) |
Default constructor.
[in] | tMatVert | Vertices in form of a matrix. |
[in] | tMatNorm | Normals in form of a matrix. |
[in] | tMatTris | Tris/Faces in form of a matrix. |
[in] | tMatColors | The vertex colors. If empty a default value will be used. |
[in] | primitiveType | The primitive type of the mesh lines, triangles, etc. |
CustomMesh::~CustomMesh | ( | ) |
Default destructor
Definition at line 144 of file custommesh.cpp.
void CustomMesh::addAttribute | ( | QT_COMPATIBILITY_3D::QAttribute * | pAttribute | ) |
Add new Attribute to the geometry.
[in] | pAttribute | New QAttribute. |
Definition at line 277 of file custommesh.cpp.
|
protected |
Init the custom mesh.
Definition at line 92 of file custommesh.cpp.
void CustomMesh::setColor | ( | const Eigen::MatrixX4f & | tMatColors | ) |
Set the vertices colors of the mesh.
[in] | tMatColors | New color information for the vertices. |
Definition at line 159 of file custommesh.cpp.
void CustomMesh::setIndex | ( | const Eigen::MatrixXi & | tMatTris | ) |
Set the triangles/index of the mesh.
[in] | tMatTris | Tris/Faces in form of a matrix. |
Definition at line 226 of file custommesh.cpp.
void CustomMesh::setMeshData | ( | const Eigen::MatrixX3f & | tMatVert, |
const Eigen::MatrixX3f & | tMatNorm, | ||
const Eigen::MatrixXi & | tMatTris, | ||
const Eigen::MatrixX4f & | tMatColors, | ||
Qt3DRender::QGeometryRenderer::PrimitiveType | primitiveType = Qt3DRender::QGeometryRenderer::Triangles |
||
) |
Set the needed information to create the mesh and then creates a new mesh.
[in] | tMatVert | Vertices in form of a matrix. |
[in] | tMatNorm | Normals in form of a matrix. |
[in] | tMatTris | Tris/Faces in form of a matrix. |
[in] | tMatColors | The color info of all the vertices. |
[in] | primitiveType | The primitive type of the mesh lines, triangles, etc. |
Definition at line 254 of file custommesh.cpp.
void CustomMesh::setNormals | ( | const Eigen::MatrixX3f & | tMatNorm | ) |
Set the normals the mesh.
[in] | tMatNorm | Normals in form of a matrix. |
Definition at line 183 of file custommesh.cpp.
void CustomMesh::setVertex | ( | const Eigen::MatrixX3f & | tMatVert | ) |
Set the vertices the mesh.
[in] | tMatVert | Vertices in form of a matrix. |
Definition at line 205 of file custommesh.cpp.
|
protected |
The total number of set vertices.
Definition at line 204 of file custommesh.h.
|
protected |
The color attribute.
Definition at line 202 of file custommesh.h.
|
protected |
The color buffer.
Definition at line 194 of file custommesh.h.
|
protected |
The custom geometry.
Definition at line 197 of file custommesh.h.
|
protected |
The index attribute.
Definition at line 199 of file custommesh.h.
|
protected |
The index buffer.
Definition at line 195 of file custommesh.h.
|
protected |
The normal attribute.
Definition at line 201 of file custommesh.h.
|
protected |
The normal buffer.
Definition at line 193 of file custommesh.h.
|
protected |
The position attribute.
Definition at line 200 of file custommesh.h.
|
protected |
The vertex buffer.
Definition at line 192 of file custommesh.h.