HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UsdColorSpaceAPI::ColorSpaceCache Class Referenceabstract

#include <colorSpaceAPI.h>

+ Inheritance diagram for UsdColorSpaceAPI::ColorSpaceCache:

Public Member Functions

 ColorSpaceCache ()=default
 
virtual ~ColorSpaceCache ()=default
 
virtual TfToken Find (const SdfPath &prim)=0
 
virtual void Insert (const SdfPath &prim, const TfToken &colorSpace)=0
 

Detailed Description

A minimalistic cache for color space lookups. An application may provide its own cache implementation to avoid redundant color space lookups. The cache should be cleared or updated when the color space properties have changed. A typical use pattern would be to create a temporary cache at the beginning of a traversal, and pass it to the color space API methods.

Definition at line 244 of file colorSpaceAPI.h.

Constructor & Destructor Documentation

UsdColorSpaceAPI::ColorSpaceCache::ColorSpaceCache ( )
default
virtual UsdColorSpaceAPI::ColorSpaceCache::~ColorSpaceCache ( )
virtualdefault

Member Function Documentation

virtual TfToken UsdColorSpaceAPI::ColorSpaceCache::Find ( const SdfPath prim)
pure virtual
virtual void UsdColorSpaceAPI::ColorSpaceCache::Insert ( const SdfPath prim,
const TfToken colorSpace 
)
pure virtual

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