This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
HdStTextureIdentifier Class Referencefinal

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)
 C'tor for files that can contain only one texture.
 
HDST_API 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).
 
HDST_API HdStTextureIdentifier (const HdStTextureIdentifier &textureId)
 
HDST_API HdStTextureIdentifieroperator= (HdStTextureIdentifier &&textureId)
 
HDST_API HdStTextureIdentifieroperator= (const HdStTextureIdentifier &textureId)
 
const TfTokenGetFilePath () const
 Get file path of texture file.
 
const HdStSubtextureIdentifierGetSubtextureIdentifier () 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
 

Detailed Description

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 30 of file textureIdentifier.h.

Member Typedef Documentation

◆ ID

using ID = size_t

Definition at line 33 of file textureIdentifier.h.

Constructor & Destructor Documentation

◆ HdStTextureIdentifier() [1/2]

HDST_API HdStTextureIdentifier ( const TfToken filePath)
explicit

C'tor for files that can contain only one texture.

◆ HdStTextureIdentifier() [2/2]

HDST_API 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).

Member Function Documentation

◆ GetFilePath()

const TfToken & GetFilePath ( ) const
inline

Get file path of texture file.

Definition at line 65 of file textureIdentifier.h.

◆ GetSubtextureIdentifier()

const HdStSubtextureIdentifier * GetSubtextureIdentifier ( ) const
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 75 of file textureIdentifier.h.


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