7 #ifndef USD_GENERATED_COLORSPACEAPI_H
8 #define USD_GENERATED_COLORSPACEAPI_H
193 static const TfType &_GetStaticTfType();
195 static bool _IsTypedSchema();
199 const TfType &_GetTfType()
const override;
279 auto it =
_cache.find(prim);
288 _cache[prim] = colorSpace;
312 ColorSpaceCache* cache =
nullptr);
321 ColorSpaceCache* cache =
nullptr);
343 ColorSpaceCache* cache =
nullptr);
353 ColorSpaceCache* cache =
nullptr);
361 ColorSpaceCache* cache =
nullptr);
371 ColorSpaceCache* cache =
nullptr);
static const UsdSchemaKind schemaKind
static USD_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
ColorSpaceCache()=default
static USD_API GfColorSpace ComputeColorSpace(const UsdAttribute &attribute, ColorSpaceCache *cache=nullptr)
GLsizei const GLchar *const * path
USD_API UsdAttribute GetColorSpaceNameAttr() const
virtual ~ColorSpaceCache()=default
virtual USD_API ~UsdColorSpaceAPI()
Destructor.
static USD_API bool CanApply(const UsdPrim &prim, std::string *whyNot=nullptr)
UsdColorSpaceAPI(const UsdPrim &prim=UsdPrim())
USD_API UsdSchemaKind _GetSchemaKind() const override
TfHashMap< SdfPath, TfToken, SdfPath::Hash > _cache
static USD_API UsdColorSpaceAPI Apply(const UsdPrim &prim)
std::vector< TfToken > TfTokenVector
Convenience types.
void Insert(const SdfPath &prim, const TfToken &colorSpace) override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
static USD_API bool IsValidColorSpaceName(UsdPrim prim, const TfToken &colorSpace, ColorSpaceCache *cache=nullptr)
virtual TfToken Find(const SdfPath &prim)=0
static USD_API UsdColorSpaceAPI Get(const UsdStagePtr &stage, const SdfPath &path)
static USD_API TfToken ComputeColorSpaceName(const UsdAttribute &attribute, ColorSpaceCache *cache=nullptr)
#define PXR_NAMESPACE_CLOSE_SCOPE
OIIO_API bool attribute(string_view name, TypeDesc type, const void *val)
USD_API UsdAttribute CreateColorSpaceNameAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
virtual void Insert(const SdfPath &prim, const TfToken &colorSpace)=0
ColorSpaceHashCache()=default
~ColorSpaceHashCache()=default
UsdColorSpaceAPI(const UsdSchemaBase &schemaObj)
TfToken Find(const SdfPath &prim) override