Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Protected Attributes | List of all members
OGLMesh Class Reference

#include <OGLMesh.h>

Inheritance diagram for OGLMesh:
Inheritance graph
[legend]
Collaboration diagram for OGLMesh:
Collaboration graph
[legend]

Public Member Functions

const std::vector< QVector3D > & vertices () const
 
const std::vector< unsigned int > & indices () const
 
void setMaterial (const OGLSimpleMaterial &material)
 
OGLSimpleMaterial material ()
 

Protected Attributes

std::vector< QVector3D > _vertices
 
std::vector< unsigned int > _indices
 
OGLSimpleMaterial _material
 

Detailed Description

Store geometry and visual material of a displayed object. A mesh can be bound to a single material. Split geometry into several meshes if you need several materials.

Definition at line 29 of file OGLMesh.h.

Member Function Documentation

◆ indices()

const std::vector< unsigned int > & OGLMesh::indices ( ) const

Returns a dense array of primitives indices.

Definition at line 23 of file OGLMesh.cpp.

Here is the caller graph for this function:

◆ material()

OGLSimpleMaterial OGLMesh::material ( )

Get the material of this mesh.

Definition at line 33 of file OGLMesh.cpp.

Here is the caller graph for this function:

◆ setMaterial()

void OGLMesh::setMaterial ( const OGLSimpleMaterial material)

Set the material of this mesh.

Definition at line 28 of file OGLMesh.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vertices()

const std::vector< QVector3D > & OGLMesh::vertices ( ) const

Returns a dense array of vertices positions.

Definition at line 18 of file OGLMesh.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _indices

std::vector<unsigned int> OGLMesh::_indices
protected

Definition at line 54 of file OGLMesh.h.

◆ _material

OGLSimpleMaterial OGLMesh::_material
protected

Definition at line 55 of file OGLMesh.h.

◆ _vertices

std::vector<QVector3D> OGLMesh::_vertices
protected

Definition at line 53 of file OGLMesh.h.


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