CFx SDK Documentation 2024 SP0
|
#include <GiTraitsCache.h>
Classes | |
struct | CacheEntry |
Public Types | |
enum | CacheType { kCacheNone = 0 , kCacheByMask = 1 , kCacheAll = 2 } |
Public Member Functions | |
OdGiTraitsCache () | |
OdGiTraitsCache (CacheType cacheType) | |
~OdGiTraitsCache () | |
void | setCacheType (CacheType cacheType) |
CacheType | cacheType () const |
void | setAttributes (OdDbStub *objId, OdGiContext &giCtx, bool forceCaching=false) |
void | setFlags (OdUInt32 uAttrib) |
OdUInt32 | getFlags () const |
void | clear () |
Protected Types | |
typedef std::map< OdDbStub *, CacheEntry > | _mmap |
Protected Attributes | |
CacheType | m_cacheType |
_mmap | m_cacheData |
OdUInt32 | m_traitsAttrib |
<group OdGi_Classes>
Definition at line 44 of file GiTraitsCache.h.
|
protected |
Definition at line 69 of file GiTraitsCache.h.
enum OdGiTraitsCache::CacheType |
Represents cache types.
Enumerator | |
---|---|
kCacheNone | No caching will be performed. |
kCacheByMask | Cache traits by mask. |
kCacheAll | Cache all traits. |
Definition at line 50 of file GiTraitsCache.h.
|
inline |
Default constructor for the OdGiTraitsCache class. Initializes parent object properties with default values, specifies that no caching will be performed and sets traits attributes to 0.
Definition at line 77 of file GiTraitsCache.h.
|
inlineexplicit |
Constructor for the OdGiTraitsCache class. Initializes parent object properties with default values, sets the passed traits type and sets traits attributes to 0.
Definition at line 87 of file GiTraitsCache.h.
|
inline |
Destructor for the OdGiTraitsCache class.
Definition at line 96 of file GiTraitsCache.h.
|
inline |
Retrieves cache type that is used for caching traits.
Definition at line 113 of file GiTraitsCache.h.
|
inline |
Clears the cached data.
Definition at line 172 of file GiTraitsCache.h.
|
inline |
Retrieves a set of flags that represents attributes to cache.
Definition at line 164 of file GiTraitsCache.h.
|
inline |
Sets attributes for caching.
objId | [in] Pointer to the identifier of the drawable, traits of which to cache. |
giCtx | [in] Drawable context. |
forceCaching | [in] Flag that specifies whether to force traits caching. |
Definition at line 124 of file GiTraitsCache.h.
|
inline |
Sets the cache type for caching. This method allows you to specify whether all traits are cached or specific traits are cached by mask or traits are not cached at all.
cacheType | [in] Cache type. |
Definition at line 105 of file GiTraitsCache.h.
|
inline |
Sets a set of flags that represents attributes to cache.
uAttrib | [in] Attributes to cache. |
Definition at line 156 of file GiTraitsCache.h.
|
protected |
Definition at line 70 of file GiTraitsCache.h.
|
protected |
Definition at line 68 of file GiTraitsCache.h.
|
protected |
Definition at line 71 of file GiTraitsCache.h.