|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
#include <OGLMesh.h>


Public Member Functions | |
| const std::vector< QVector3D > & | vertices () const |
| const std::vector< QVector2D > & | textureCoordinates () const |
| const std::vector< float > & | verticesColors () const |
| const std::vector< QVector3D > & | normals () const |
| const std::vector< unsigned int > & | indices () const |
| void | setMaterial (const OGLSimpleMaterial &material) |
| OGLSimpleMaterial & | material () |
| const OGLSimpleMaterial & | material () const |
| const OGLPrivimitiveType | primitiveType () const |
| const OBox | boundingBox () const |
Protected Member Functions | |
| void | recomputeBoundingBox () |
Protected Attributes | |
| std::vector< QVector3D > | _vertices |
| std::vector< float > | _verticesColors |
| std::vector< QVector3D > | _normals |
| std::vector< QVector2D > | _textureCoordinates |
| std::vector< unsigned int > | _indices |
| OGLSimpleMaterial | _material |
| OGLPrivimitiveType | _primitiveType |
| OBox | _boundingBox |
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.
|
inline |
| const std::vector< unsigned int > & OGLMesh::indices | ( | ) | const |
Returns a dense array of primitives indices.
Definition at line 40 of file OGLMesh.cpp.

| OGLSimpleMaterial & OGLMesh::material | ( | ) |
Get the material of this mesh.
Definition at line 50 of file OGLMesh.cpp.

| const OGLSimpleMaterial & OGLMesh::material | ( | ) | const |
Get the material of this mesh.
Definition at line 54 of file OGLMesh.cpp.
| const std::vector< QVector3D > & OGLMesh::normals | ( | ) | const |
Returns a dense array of vertices normals.
Definition at line 30 of file OGLMesh.cpp.

|
inline |
|
protected |
Definition at line 59 of file OGLMesh.cpp.


| void OGLMesh::setMaterial | ( | const OGLSimpleMaterial & | material | ) |
Set the material of this mesh.
Definition at line 45 of file OGLMesh.cpp.

| const std::vector< QVector2D > & OGLMesh::textureCoordinates | ( | ) | const |
Returns a dense array of vertices positions.
Definition at line 35 of file OGLMesh.cpp.

| const std::vector< QVector3D > & OGLMesh::vertices | ( | ) | const |
Returns a dense array of vertices positions.
Definition at line 20 of file OGLMesh.cpp.

| const std::vector< float > & OGLMesh::verticesColors | ( | ) | const |
Returns a dense array of vertices positions.
Definition at line 25 of file OGLMesh.cpp.

|
protected |
|
protected |
|
protected |