MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISP3DLIB::CustomMesh Class Reference

Custom mesh functionality. More...

#include <custommesh.h>

Public Types

typedef QSharedPointer< CustomMeshSPtr
 
typedef QSharedPointer< const CustomMeshConstSPtr
 

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
 

Detailed Description

Custom mesh functionality.

Custom mesh functionality.

Definition at line 93 of file custommesh.h.

Inheritance diagram for DISP3DLIB::CustomMesh:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const CustomMesh> DISP3DLIB::CustomMesh::ConstSPtr

Const shared pointer type for CustomMesh class.

Definition at line 99 of file custommesh.h.

◆ SPtr

typedef QSharedPointer<CustomMesh> DISP3DLIB::CustomMesh::SPtr

Shared pointer type for CustomMesh class.

Definition at line 98 of file custommesh.h.

Constructor & Destructor Documentation

◆ CustomMesh() [1/2]

CustomMesh::CustomMesh ( )

Default constructor.

Definition at line 64 of file custommesh.cpp.

◆ CustomMesh() [2/2]

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.

Parameters
[in]tMatVertVertices in form of a matrix.
[in]tMatNormNormals in form of a matrix.
[in]tMatTrisTris/Faces in form of a matrix.
[in]tMatColorsThe vertex colors. If empty a default value will be used.
[in]primitiveTypeThe primitive type of the mesh lines, triangles, etc.

◆ ~CustomMesh()

CustomMesh::~CustomMesh ( )

Default destructor

Definition at line 144 of file custommesh.cpp.

Member Function Documentation

◆ addAttribute()

void CustomMesh::addAttribute ( QT_COMPATIBILITY_3D::QAttribute *  pAttribute)

Add new Attribute to the geometry.

Parameters
[in]pAttributeNew QAttribute.

Definition at line 277 of file custommesh.cpp.

◆ init()

void CustomMesh::init ( )
protected

Init the custom mesh.

Definition at line 92 of file custommesh.cpp.

◆ setColor()

void CustomMesh::setColor ( const Eigen::MatrixX4f &  tMatColors)

Set the vertices colors of the mesh.

Parameters
[in]tMatColorsNew color information for the vertices.

Definition at line 159 of file custommesh.cpp.

◆ setIndex()

void CustomMesh::setIndex ( const Eigen::MatrixXi &  tMatTris)

Set the triangles/index of the mesh.

Parameters
[in]tMatTrisTris/Faces in form of a matrix.

Definition at line 226 of file custommesh.cpp.

◆ setMeshData()

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.

Parameters
[in]tMatVertVertices in form of a matrix.
[in]tMatNormNormals in form of a matrix.
[in]tMatTrisTris/Faces in form of a matrix.
[in]tMatColorsThe color info of all the vertices.
[in]primitiveTypeThe primitive type of the mesh lines, triangles, etc.

Definition at line 254 of file custommesh.cpp.

◆ setNormals()

void CustomMesh::setNormals ( const Eigen::MatrixX3f &  tMatNorm)

Set the normals the mesh.

Parameters
[in]tMatNormNormals in form of a matrix.

Definition at line 183 of file custommesh.cpp.

◆ setVertex()

void CustomMesh::setVertex ( const Eigen::MatrixX3f &  tMatVert)

Set the vertices the mesh.

Parameters
[in]tMatVertVertices in form of a matrix.

Definition at line 205 of file custommesh.cpp.

Member Data Documentation

◆ m_iNumVert

int DISP3DLIB::CustomMesh::m_iNumVert
protected

The total number of set vertices.

Definition at line 204 of file custommesh.h.

◆ m_pColorAttribute

QPointer<QT_COMPATIBILITY_3D::QAttribute> DISP3DLIB::CustomMesh::m_pColorAttribute
protected

The color attribute.

Definition at line 202 of file custommesh.h.

◆ m_pColorDataBuffer

QPointer<QT_COMPATIBILITY_3D::QBuffer> DISP3DLIB::CustomMesh::m_pColorDataBuffer
protected

The color buffer.

Definition at line 194 of file custommesh.h.

◆ m_pCustomGeometry

QPointer<QT_COMPATIBILITY_3D::QGeometry> DISP3DLIB::CustomMesh::m_pCustomGeometry
protected

The custom geometry.

Definition at line 197 of file custommesh.h.

◆ m_pIndexAttribute

QPointer<QT_COMPATIBILITY_3D::QAttribute> DISP3DLIB::CustomMesh::m_pIndexAttribute
protected

The index attribute.

Definition at line 199 of file custommesh.h.

◆ m_pIndexDataBuffer

QPointer<QT_COMPATIBILITY_3D::QBuffer> DISP3DLIB::CustomMesh::m_pIndexDataBuffer
protected

The index buffer.

Definition at line 195 of file custommesh.h.

◆ m_pNormalAttribute

QPointer<QT_COMPATIBILITY_3D::QAttribute> DISP3DLIB::CustomMesh::m_pNormalAttribute
protected

The normal attribute.

Definition at line 201 of file custommesh.h.

◆ m_pNormalDataBuffer

QPointer<QT_COMPATIBILITY_3D::QBuffer> DISP3DLIB::CustomMesh::m_pNormalDataBuffer
protected

The normal buffer.

Definition at line 193 of file custommesh.h.

◆ m_pVertexAttribute

QPointer<QT_COMPATIBILITY_3D::QAttribute> DISP3DLIB::CustomMesh::m_pVertexAttribute
protected

The position attribute.

Definition at line 200 of file custommesh.h.

◆ m_pVertexDataBuffer

QPointer<QT_COMPATIBILITY_3D::QBuffer> DISP3DLIB::CustomMesh::m_pVertexDataBuffer
protected

The vertex buffer.

Definition at line 192 of file custommesh.h.


The documentation for this class was generated from the following files: