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

#include <OGLPolygonMesh.h>

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

Public Member Functions

 OGLPolygonMesh ()
 
void setVertices (const std::vector< QVector3D > &vertices)
 
void setIndices (const std::vector< unsigned int > &indices)
 
- 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
 

Private Attributes

std::vector< QVector3D > contour
 

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

OGLMesh specific to Polygon shapes.

Definition at line 28 of file OGLPolygonMesh.h.

Constructor & Destructor Documentation

◆ OGLPolygonMesh()

OGLPolygonMesh::OGLPolygonMesh ( )

Definition at line 24 of file OGLPolygonMesh.cpp.

Member Function Documentation

◆ setIndices()

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

Definition at line 38 of file OGLPolygonMesh.cpp.

Here is the call graph for this function:

◆ setVertices()

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

Definition at line 29 of file OGLPolygonMesh.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ contour

std::vector<QVector3D> OGLPolygonMesh::contour
private

Definition at line 37 of file OGLPolygonMesh.h.


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