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

#include <OGLRectangleMesh.h>

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

Public Member Functions

 OGLRectangleMesh (const QSizeF &dimensions)
 
 OGLRectangleMesh (const std::array< std::array< double, 3 >, 4 > &verticesCoords)
 
void setDimensions (const QSizeF &dimensions)
 
const QSizeF & dimensions () const
 
void setVertices (const std::array< std::array< double, 3 >, 4 > &verticesCoords)
 Set vertices from coords. More...
 
- 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

QSizeF _dimensions
 

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 Rectangle shapes.

Definition at line 27 of file OGLRectangleMesh.h.

Constructor & Destructor Documentation

◆ OGLRectangleMesh() [1/2]

OGLRectangleMesh::OGLRectangleMesh ( const QSizeF &  dimensions)

Definition at line 23 of file OGLRectangleMesh.cpp.

Here is the call graph for this function:

◆ OGLRectangleMesh() [2/2]

OGLRectangleMesh::OGLRectangleMesh ( const std::array< std::array< double, 3 >, 4 > &  verticesCoords)

Definition at line 32 of file OGLRectangleMesh.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ dimensions()

const QSizeF & OGLRectangleMesh::dimensions ( ) const

Get the rectangle dimensions.

Definition at line 59 of file OGLRectangleMesh.cpp.

Here is the caller graph for this function:

◆ setDimensions()

void OGLRectangleMesh::setDimensions ( const QSizeF &  dimensions)

Set the rectangle dimensions.

Definition at line 41 of file OGLRectangleMesh.cpp.

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

◆ setVertices()

void OGLRectangleMesh::setVertices ( const std::array< std::array< double, 3 >, 4 > &  verticesCoords)

Set vertices from coords.

Parameters
verticesCoords

Definition at line 64 of file OGLRectangleMesh.cpp.

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

Member Data Documentation

◆ _dimensions

QSizeF OGLRectangleMesh::_dimensions
private

Definition at line 51 of file OGLRectangleMesh.h.


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