![]() |
|
Class to identify a texture file or a texture within the texture file (e.g., a frame in a movie). More...
#include <textureIdentifier.h>
Public Types | |
| using | ID = size_t |
Public Member Functions | |
| HDST_API | HdStTextureIdentifier (const TfToken &filePath, const VtValue &fallback=VtValue(), bool defaultToFallback=false) |
| C'tor for files that can contain only one texture. | |
| HDST_API | HdStTextureIdentifier (const TfToken &filePath, std::unique_ptr< const HdStSubtextureIdentifier > &&subtextureId, const VtValue &fallback=VtValue(), bool defaultToFallback=false) |
| C'tor for files that can contain more than one texture (e.g., frames in a movie, grids in a VDB file). | |
| HDST_API | HdStTextureIdentifier (const HdStTextureIdentifier &textureId) |
| HDST_API HdStTextureIdentifier & | operator= (HdStTextureIdentifier &&textureId) |
| HDST_API HdStTextureIdentifier & | operator= (const HdStTextureIdentifier &textureId) |
| const TfToken & | GetFilePath () const |
| Get file path of texture file. | |
| const VtValue & | GetFallback () const |
| Get fallback value that's used if loading from _filePath fails. | |
| bool | ShouldDefaultToFallback () const |
| Get if reading from _filePath should be skipped. | |
| const HdStSubtextureIdentifier * | GetSubtextureIdentifier () const |
| Get additional information identifying a texture in a file that can contain more than one texture (e.g., a frame in a movie or a grid in a VDB file). | |
| HDST_API bool | operator== (const HdStTextureIdentifier &other) const |
| HDST_API bool | operator!= (const HdStTextureIdentifier &other) const |
Class to identify a texture file or a texture within the texture file (e.g., a frame in a movie).
The class has value semantics and uses HdStSubtextureIdentifier in a polymorphic way.
Definition at line 31 of file textureIdentifier.h.
| using ID = size_t |
Definition at line 34 of file textureIdentifier.h.
|
explicit |
C'tor for files that can contain only one texture.
| HDST_API HdStTextureIdentifier | ( | const TfToken & | filePath, |
| std::unique_ptr< const HdStSubtextureIdentifier > && | subtextureId, | ||
| const VtValue & | fallback = VtValue(), |
||
| bool | defaultToFallback = false |
||
| ) |
C'tor for files that can contain more than one texture (e.g., frames in a movie, grids in a VDB file).
|
inline |
Get fallback value that's used if loading from _filePath fails.
Definition at line 77 of file textureIdentifier.h.
|
inline |
Get file path of texture file.
Definition at line 71 of file textureIdentifier.h.
|
inline |
Get additional information identifying a texture in a file that can contain more than one texture (e.g., a frame in a movie or a grid in a VDB file).
nullptr for files (e.g., png) that can contain only one texture.
Definition at line 93 of file textureIdentifier.h.
|
inline |
Get if reading from _filePath should be skipped.
Definition at line 83 of file textureIdentifier.h.