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 108 of file 3d_cache.cpp.

Constructor & Destructor Documentation

S3D_CACHE_ENTRY::S3D_CACHE_ENTRY ( const S3D_CACHE_ENTRY source)
private
S3D_CACHE_ENTRY::S3D_CACHE_ENTRY ( )

Definition at line 132 of file 3d_cache.cpp.

References renderData, sceneData, and sha1sum.

133 {
134  sceneData = NULL;
135  renderData = NULL;
136  memset( sha1sum, 0, 20 );
137 }
SCENEGRAPH * sceneData
Definition: 3d_cache.cpp:127
S3DMODEL * renderData
Definition: 3d_cache.cpp:128
unsigned char sha1sum[20]
Definition: 3d_cache.cpp:125
S3D_CACHE_ENTRY::~S3D_CACHE_ENTRY ( )

Definition at line 140 of file 3d_cache.cpp.

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

141 {
142  if( NULL != sceneData )
143  delete sceneData;
144 
145  if( NULL != renderData )
147 }
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:543
SCENEGRAPH * sceneData
Definition: 3d_cache.cpp:127
S3DMODEL * renderData
Definition: 3d_cache.cpp:128

Member Function Documentation

const wxString S3D_CACHE_ENTRY::GetCacheBaseName ( void  )

Definition at line 171 of file 3d_cache.cpp.

References m_CacheBaseName, sha1sum, and sha1ToWXString().

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

172 {
173  if( m_CacheBaseName.empty() )
175 
176  return m_CacheBaseName;
177 }
static const wxString sha1ToWXString(const unsigned char *aSHA1Sum)
Definition: 3d_cache.cpp:74
wxString m_CacheBaseName
Definition: 3d_cache.cpp:115
unsigned char sha1sum[20]
Definition: 3d_cache.cpp:125
S3D_CACHE_ENTRY& S3D_CACHE_ENTRY::operator= ( const S3D_CACHE_ENTRY source)
private
void S3D_CACHE_ENTRY::SetSHA1 ( const unsigned char *  aSHA1Sum)

Definition at line 150 of file 3d_cache.cpp.

References MASK_3D_CACHE, and sha1sum.

Referenced by S3D_CACHE::checkCache().

151 {
152  if( NULL == aSHA1Sum )
153  {
154  #ifdef DEBUG
155  do {
156  std::ostringstream ostr;
157  ostr << __FILE__ << ": " << __FUNCTION__ << ": " << __LINE__ << "\n";
158  ostr << " * [BUG] NULL passed for aSHA1Sum";
159  wxLogTrace( MASK_3D_CACHE, "%s\n", ostr.str().c_str() );
160  } while( 0 );
161  #endif
162 
163  return;
164  }
165 
166  memcpy( sha1sum, aSHA1Sum, 20 );
167  return;
168 }
#define MASK_3D_CACHE
Definition: 3d_cache.cpp:51
unsigned char sha1sum[20]
Definition: 3d_cache.cpp:125

Member Data Documentation

wxString S3D_CACHE_ENTRY::m_CacheBaseName
private

Definition at line 115 of file 3d_cache.cpp.

Referenced by GetCacheBaseName().

wxDateTime S3D_CACHE_ENTRY::modTime

Definition at line 124 of file 3d_cache.cpp.

Referenced by S3D_CACHE::checkCache().

std::string S3D_CACHE_ENTRY::pluginInfo

Definition at line 126 of file 3d_cache.cpp.

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

S3DMODEL* S3D_CACHE_ENTRY::renderData

Definition at line 128 of file 3d_cache.cpp.

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

unsigned char S3D_CACHE_ENTRY::sha1sum[20]

Definition at line 125 of file 3d_cache.cpp.

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


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