qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Classes | Public Member Functions | Public Attributes | Protected Attributes | List of all members
ccMaterialDB Class Reference

Smart texture database. More...

#include <ccMaterialDB.h>

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

Classes

struct  TextureInfo
 

Public Member Functions

void init ()
 
void onFileChanged (const QString &filename)
 
bool hasTexture (const QString &filename) const
 
QImage getTexture (const QString &filename) const
 
void addTexture (const QString &filename, const QImage &image)
 
void increaseTextureCounter (const QString &filename)
 
void releaseTexture (const QString &filename)
 
void removeTexture (const QString &filename)
 

Public Attributes

QMap< QString, QSharedPointer< QOpenGLTexture > > openGLTextures
 

Protected Attributes

bool m_initialized
 
QFileSystemWatcher m_watcher
 
QMap< QString, TextureInfom_textures
 

Detailed Description

Smart texture database.


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