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

Public Types | |
| enum class | TextureBlend { Overlay = 0 , Multiply = 1 } |
| enum class | LightingMode { Flat = 0 , Shaded = 1 } |
Public Member Functions | |
| OGLSimpleMaterial (const QColor &_color=QColor("white"), const std::shared_ptr< QImage > _image=std::shared_ptr< QImage >(), const TextureBlend _textureBlend=TextureBlend::Multiply, const LightingMode _LightingMode=LightingMode::Flat) | |
Public Attributes | |
| QColor | color |
| std::shared_ptr< QImage > | image |
| TextureBlend | textureBlend |
| LightingMode | lightingMode |
Static Public Attributes | |
| static OGLSimpleMaterial | BOUNDING_BOX {QColor(255, 255, 128)} |
Visual material used to render a mesh.
Definition at line 27 of file OGLSimpleMaterial.h.
|
strong |
| Enumerator | |
|---|---|
| Flat | |
| Shaded | |
Definition at line 38 of file OGLSimpleMaterial.h.
|
strong |
| Enumerator | |
|---|---|
| Overlay | |
| Multiply | |
Definition at line 31 of file OGLSimpleMaterial.h.
| OGLSimpleMaterial::OGLSimpleMaterial | ( | const QColor & | _color = QColor("white"), |
| const std::shared_ptr< QImage > | _image = std::shared_ptr<QImage>(), |
||
| const TextureBlend | _textureBlend = TextureBlend::Multiply, |
||
| const LightingMode | _LightingMode = LightingMode::Flat |
||
| ) |
Definition at line 21 of file OGLSimpleMaterial.cpp.
|
static |
Material used to render bounding boxes.
Definition at line 74 of file OGLSimpleMaterial.h.
| QColor OGLSimpleMaterial::color |
Default color of the geometry when not vertex color is specified in the mesh.
Definition at line 52 of file OGLSimpleMaterial.h.
| std::shared_ptr<QImage> OGLSimpleMaterial::image |
Pointer to an image texture that get multiplied by the color. When it equals to a nullptr (default), only the color is used.
Definition at line 58 of file OGLSimpleMaterial.h.
| LightingMode OGLSimpleMaterial::lightingMode |
Whether the mesh should be shaded or displayed as flat color
Definition at line 69 of file OGLSimpleMaterial.h.
| TextureBlend OGLSimpleMaterial::textureBlend |
Whether the texture should be on top of the color or if it should be mixed with the color.
Definition at line 64 of file OGLSimpleMaterial.h.