All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStTextureIdentifier Class Referencefinal

#include <textureIdentifier.h>

Public Types

using ID = size_t

Public Member Functions

 HdStTextureIdentifier ()
 HdStTextureIdentifier (const TfToken &filePath)
 HdStTextureIdentifier (const TfToken &filePath, std::unique_ptr< const HdStSubtextureIdentifier > &&subtextureId)
 HdStTextureIdentifier (const HdStTextureIdentifier &textureId)
HdStTextureIdentifieroperator= (HdStTextureIdentifier &&textureId)
HdStTextureIdentifieroperator= (const HdStTextureIdentifier &textureId)
 ~HdStTextureIdentifier ()
const TfTokenGetFilePath () const
const HdStSubtextureIdentifierGetSubtextureIdentifier () const
bool operator== (const HdStTextureIdentifier &other) const
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 47 of file textureIdentifier.h.

Member Typedef Documentation

using HdStTextureIdentifier::ID = size_t

Definition at line 50 of file textureIdentifier.h.

Constructor & Destructor Documentation

HdStTextureIdentifier::HdStTextureIdentifier ( )
HdStTextureIdentifier::HdStTextureIdentifier ( const TfToken filePath)

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

HdStTextureIdentifier::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).

HdStTextureIdentifier::HdStTextureIdentifier ( const HdStTextureIdentifier textureId)
HdStTextureIdentifier::~HdStTextureIdentifier ( )

Member Function Documentation

const TfToken& HdStTextureIdentifier::GetFilePath ( ) const

Get file path of texture file.

Definition at line 75 of file textureIdentifier.h.

const HdStSubtextureIdentifier* HdStTextureIdentifier::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).

nullptr for files (e.g., png) that can contain only one texture.

Definition at line 85 of file textureIdentifier.h.

HdStTextureIdentifier& HdStTextureIdentifier::operator= ( HdStTextureIdentifier &&  textureId)
HdStTextureIdentifier& HdStTextureIdentifier::operator= ( const HdStTextureIdentifier textureId)
bool HdStTextureIdentifier::operator== ( const HdStTextureIdentifier other) const

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