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

#include <OGLMeshInstance.h>

Collaboration diagram for OGLMeshInstance:
Collaboration graph
[legend]

Public Member Functions

 OGLMeshInstance (std::shared_ptr< const OGLMesh > mesh, const QMatrix4x4 &globalMatrix)
 
std::shared_ptr< const OGLMeshmesh () const
 
const QMatrix4x4 & globalMatrix () const
 

Protected Attributes

const QMatrix4x4 _globalMatrix
 
const std::shared_ptr< const OGLMesh_pMesh
 

Detailed Description

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.

Definition at line 28 of file OGLMeshInstance.h.

Constructor & Destructor Documentation

◆ OGLMeshInstance()

OGLMeshInstance::OGLMeshInstance ( std::shared_ptr< const OGLMesh mesh,
const QMatrix4x4 &  globalMatrix 
)

Definition at line 21 of file OGLMeshInstance.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ globalMatrix()

const QMatrix4x4 & OGLMeshInstance::globalMatrix ( ) const

Definition at line 35 of file OGLMeshInstance.cpp.

Here is the caller graph for this function:

◆ mesh()

std::shared_ptr< const OGLMesh > OGLMeshInstance::mesh ( ) const

Definition at line 30 of file OGLMeshInstance.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _globalMatrix

const QMatrix4x4 OGLMeshInstance::_globalMatrix
protected

Definition at line 37 of file OGLMeshInstance.h.

◆ _pMesh

const std::shared_ptr<const OGLMesh> OGLMeshInstance::_pMesh
protected

Definition at line 38 of file OGLMeshInstance.h.


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