KiCad PCB EDA Suite
Loading...
Searching...
No Matches
MODEL_3D_DEFERRED Class Reference

Allows to defer the creation of the 3D model until it is needed and in the GL context. More...

#include <3d_model.h>

Public Member Functions

 MODEL_3D_DEFERRED (const S3DMODEL &a3DModel, MATERIAL_MODE aMaterialMode)
 
 ~MODEL_3D_DEFERRED ()
 
void Reset ()
 
std::shared_ptr< MODEL_3DMakeOrGet ()
 

Private Attributes

std::shared_ptr< MODEL_3Dm_openglModel3D
 
std::recursive_mutex m_mutex
 
std::shared_ptr< S3DMODELm_s3dModel
 
MATERIAL_MODE m_materialNode
 

Detailed Description

Allows to defer the creation of the 3D model until it is needed and in the GL context.

Definition at line 180 of file 3d_model.h.

Constructor & Destructor Documentation

◆ MODEL_3D_DEFERRED()

MODEL_3D_DEFERRED::MODEL_3D_DEFERRED ( const S3DMODEL & a3DModel,
MATERIAL_MODE aMaterialMode )
inline

Definition at line 183 of file 3d_model.h.

References m_materialNode, and m_s3dModel.

◆ ~MODEL_3D_DEFERRED()

MODEL_3D_DEFERRED::~MODEL_3D_DEFERRED ( )
inline

Definition at line 189 of file 3d_model.h.

Member Function Documentation

◆ MakeOrGet()

std::shared_ptr< MODEL_3D > MODEL_3D_DEFERRED::MakeOrGet ( )
inline

Definition at line 199 of file 3d_model.h.

References m_materialNode, m_mutex, m_openglModel3D, and m_s3dModel.

◆ Reset()

void MODEL_3D_DEFERRED::Reset ( )
inline

Definition at line 191 of file 3d_model.h.

References m_mutex, m_openglModel3D, and m_s3dModel.

Member Data Documentation

◆ m_materialNode

MATERIAL_MODE MODEL_3D_DEFERRED::m_materialNode
private

Definition at line 219 of file 3d_model.h.

Referenced by MakeOrGet(), and MODEL_3D_DEFERRED().

◆ m_mutex

std::recursive_mutex MODEL_3D_DEFERRED::m_mutex
private

Definition at line 216 of file 3d_model.h.

Referenced by MakeOrGet(), and Reset().

◆ m_openglModel3D

std::shared_ptr<MODEL_3D> MODEL_3D_DEFERRED::m_openglModel3D
private

Definition at line 215 of file 3d_model.h.

Referenced by MakeOrGet(), and Reset().

◆ m_s3dModel

std::shared_ptr<S3DMODEL> MODEL_3D_DEFERRED::m_s3dModel
private

Definition at line 218 of file 3d_model.h.

Referenced by MakeOrGet(), MODEL_3D_DEFERRED(), and Reset().


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