KiCad PCB EDA Suite
S3D_CACHE_ENTRY Class Reference

Public Member Functions

 S3D_CACHE_ENTRY ()
 
 ~S3D_CACHE_ENTRY ()
 
void SetSHA1 (const unsigned char *aSHA1Sum)
 
const wxString GetCacheBaseName (void)
 

Public Attributes

wxDateTime modTime
 
unsigned char sha1sum [20]
 
std::string pluginInfo
 
SCENEGRAPHsceneData
 
S3DMODELrenderData
 

Private Member Functions

 S3D_CACHE_ENTRY (const S3D_CACHE_ENTRY &source)
 
S3D_CACHE_ENTRYoperator= (const S3D_CACHE_ENTRY &source)
 

Private Attributes

wxString m_CacheBaseName
 

Detailed Description

Definition at line 124 of file 3d_cache.cpp.

Constructor & Destructor Documentation

◆ S3D_CACHE_ENTRY() [1/2]

S3D_CACHE_ENTRY::S3D_CACHE_ENTRY ( const S3D_CACHE_ENTRY source)
private

◆ S3D_CACHE_ENTRY() [2/2]

S3D_CACHE_ENTRY::S3D_CACHE_ENTRY ( )

Definition at line 148 of file 3d_cache.cpp.

149 {
150  sceneData = NULL;
151  renderData = NULL;
152  memset( sha1sum, 0, 20 );
153 }
#define NULL
SCENEGRAPH * sceneData
Definition: 3d_cache.cpp:143
S3DMODEL * renderData
Definition: 3d_cache.cpp:144
unsigned char sha1sum[20]
Definition: 3d_cache.cpp:141

References NULL, renderData, sceneData, and sha1sum.

◆ ~S3D_CACHE_ENTRY()

S3D_CACHE_ENTRY::~S3D_CACHE_ENTRY ( )

Definition at line 156 of file 3d_cache.cpp.

157 {
158  if( NULL != sceneData )
159  delete sceneData;
160 
161  if( NULL != renderData )
163 }
SGLIB_API void Destroy3DModel(S3DMODEL **aModel)
Function Destroy3DModel frees memory used by an S3DMODEL structure and sets the pointer to the struct...
Definition: ifsg_api.cpp:536
#define NULL
SCENEGRAPH * sceneData
Definition: 3d_cache.cpp:143
S3DMODEL * renderData
Definition: 3d_cache.cpp:144

References S3D::Destroy3DModel(), NULL, renderData, and sceneData.

Member Function Documentation

◆ GetCacheBaseName()

const wxString S3D_CACHE_ENTRY::GetCacheBaseName ( void  )

Definition at line 181 of file 3d_cache.cpp.

182 {
183  if( m_CacheBaseName.empty() )
185 
186  return m_CacheBaseName;
187 }
static const wxString sha1ToWXString(const unsigned char *aSHA1Sum)
Definition: 3d_cache.cpp:90
wxString m_CacheBaseName
Definition: 3d_cache.cpp:131
unsigned char sha1sum[20]
Definition: 3d_cache.cpp:141

References m_CacheBaseName, sha1sum, and sha1ToWXString().

Referenced by S3D_CACHE::checkCache(), S3D_CACHE::GetModelHash(), S3D_CACHE::loadCacheData(), and S3D_CACHE::saveCacheData().

◆ operator=()

S3D_CACHE_ENTRY& S3D_CACHE_ENTRY::operator= ( const S3D_CACHE_ENTRY source)
private

◆ SetSHA1()

void S3D_CACHE_ENTRY::SetSHA1 ( const unsigned char *  aSHA1Sum)

Definition at line 166 of file 3d_cache.cpp.

167 {
168  if( NULL == aSHA1Sum )
169  {
170  wxLogTrace( MASK_3D_CACHE, "%s:%s:%d\n * [BUG] NULL passed for aSHA1Sum",
171  __FILE__, __FUNCTION__, __LINE__ );
172 
173  return;
174  }
175 
176  memcpy( sha1sum, aSHA1Sum, 20 );
177  return;
178 }
#define MASK_3D_CACHE
Definition: 3d_cache.cpp:63
#define NULL
unsigned char sha1sum[20]
Definition: 3d_cache.cpp:141

References MASK_3D_CACHE, NULL, and sha1sum.

Referenced by S3D_CACHE::checkCache().

Member Data Documentation

◆ m_CacheBaseName

wxString S3D_CACHE_ENTRY::m_CacheBaseName
private

Definition at line 131 of file 3d_cache.cpp.

Referenced by GetCacheBaseName().

◆ modTime

wxDateTime S3D_CACHE_ENTRY::modTime

Definition at line 140 of file 3d_cache.cpp.

Referenced by S3D_CACHE::checkCache().

◆ pluginInfo

std::string S3D_CACHE_ENTRY::pluginInfo

Definition at line 142 of file 3d_cache.cpp.

Referenced by S3D_CACHE::checkCache(), and S3D_CACHE::saveCacheData().

◆ renderData

S3DMODEL* S3D_CACHE_ENTRY::renderData

Definition at line 144 of file 3d_cache.cpp.

Referenced by S3D_CACHE::GetModel(), S3D_CACHE_ENTRY(), and ~S3D_CACHE_ENTRY().

◆ sceneData

◆ sha1sum

unsigned char S3D_CACHE_ENTRY::sha1sum[20]

Definition at line 141 of file 3d_cache.cpp.

Referenced by GetCacheBaseName(), S3D_CACHE_ENTRY(), and SetSHA1().


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