Class to identify a texture file or a texture within the texture file (e.g., a frame in a movie). More...
Public Types | |
using | ID = size_t |
Public Member Functions | |
HdStTextureIdentifier (const TfToken &filePath) | |
C'tor for files that can contain only one texture. More... | |
HdStTextureIdentifier (const TfToken &filePath, std::unique_ptr< const HdStSubtextureIdentifier > &&subtextureId) | |
C'tor for files that can contain more than one texture (e.g., frames in a movie, grids in a VDB file). More... | |
HdStTextureIdentifier (const HdStTextureIdentifier &textureId) | |
HdStTextureIdentifier & | operator= (HdStTextureIdentifier &&textureId) |
HdStTextureIdentifier & | operator= (const HdStTextureIdentifier &textureId) |
const TfToken & | GetFilePath () const |
Get file path of texture file. More... | |
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). More... | |
bool | operator== (const HdStTextureIdentifier &other) const |
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 47 of file textureIdentifier.h.
|
explicit |
C'tor for files that can contain only one texture.
HdStTextureIdentifier | ( | const TfToken & | filePath, |
std::unique_ptr< const HdStSubtextureIdentifier > && | subtextureId | ||
) |
C'tor for files that can contain more than one texture (e.g., frames in a movie, grids in a VDB file).
|
inline |
Get file path of texture file.
Definition at line 75 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 85 of file textureIdentifier.h.