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

#include <OGLArrayMesh.h>

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

Public Member Functions

void fromMeshVertices (const OGLMesh &mesh)
 
void fromQuadMeshEdges (const OGLMesh &mesh)
 
void setVertices (const std::vector< QVector3D > &vertices)
 
void setVerticesColors (const std::vector< QColor > &verticesColors)
 
void setNormals (const std::vector< QVector3D > &normals)
 
void setTextureCoordinates (const std::vector< QVector2D > &textureCoordinates)
 
void setIndices (const std::vector< unsigned int > &indices)
 
void setPrimitiveType (OGLPrivimitiveType primitiveType)
 
- Public Member Functions inherited from OGLMesh
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)
 
OGLSimpleMaterialmaterial ()
 
const OGLSimpleMaterialmaterial () const
 
const OGLPrivimitiveType primitiveType () const
 
const OBox boundingBox () const
 

Additional Inherited Members

- Protected Member Functions inherited from OGLMesh
void recomputeBoundingBox ()
 
- Protected Attributes inherited from OGLMesh
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
 

Detailed Description

Specialization of OGLMesh exposing methods to set the geometry data.

Definition at line 26 of file OGLArrayMesh.h.

Member Function Documentation

◆ fromMeshVertices()

void OGLArrayMesh::fromMeshVertices ( const OGLMesh mesh)

Definition at line 24 of file OGLArrayMesh.cpp.

Here is the call graph for this function:

◆ fromQuadMeshEdges()

void OGLArrayMesh::fromQuadMeshEdges ( const OGLMesh mesh)

Definition at line 35 of file OGLArrayMesh.cpp.

Here is the call graph for this function:

◆ setIndices()

void OGLArrayMesh::setIndices ( const std::vector< unsigned int > &  indices)

Definition at line 84 of file OGLArrayMesh.cpp.

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

◆ setNormals()

void OGLArrayMesh::setNormals ( const std::vector< QVector3D > &  normals)

Definition at line 74 of file OGLArrayMesh.cpp.

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

◆ setPrimitiveType()

void OGLArrayMesh::setPrimitiveType ( OGLPrivimitiveType  primitiveType)

Definition at line 89 of file OGLArrayMesh.cpp.

Here is the call graph for this function:

◆ setTextureCoordinates()

void OGLArrayMesh::setTextureCoordinates ( const std::vector< QVector2D > &  textureCoordinates)

Definition at line 79 of file OGLArrayMesh.cpp.

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

◆ setVertices()

void OGLArrayMesh::setVertices ( const std::vector< QVector3D > &  vertices)

Definition at line 55 of file OGLArrayMesh.cpp.

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

◆ setVerticesColors()

void OGLArrayMesh::setVerticesColors ( const std::vector< QColor > &  verticesColors)

Definition at line 61 of file OGLArrayMesh.cpp.

Here is the call graph for this function:

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