Loading...
Searching...
No Matches
HdPrman_IdMap Class Reference

HdPrman_IdMap associates RenderMan id and id2 instance attribute values with corresponding Hydra scene object identity details. More...

#include <idMap.h>

Public Types

using Key = uint64_t
 

Public Member Functions

void RegisterId (IdDetails const &details, RtParamList *paramList)
 
bool GetDetails (Key key, IdDetails *details) const
 
void Clear ()
 
void WriteIdMap (const std::string &filename)
 

Static Public Member Functions

static void SplitKey (Key key, int *id, int *id2)
 
static Key KeyFromAttrs (int id, int id2)
 

Detailed Description

HdPrman_IdMap associates RenderMan id and id2 instance attribute values with corresponding Hydra scene object identity details.

This is used to support picking objects from id/id2 AOV buffers.

For runtime interactive picking, HdPrmanFramebuffer uses the idMap to translate id/id2 AOV values back to HdRenderIndex primId and instanceId values.

For out-of-process picking against stored rendered images, a separate idMap file can be serialized containing the same information; see WriteIdMap().

Definition at line 30 of file idMap.h.

Member Typedef Documentation

◆ Key

using Key = uint64_t

Definition at line 39 of file idMap.h.

Member Function Documentation

◆ KeyFromAttrs()

static Key KeyFromAttrs ( int id,
int id2 )
inlinestatic

Definition at line 55 of file idMap.h.

◆ SplitKey()

static void SplitKey ( Key key,
int * id,
int * id2 )
inlinestatic

Definition at line 49 of file idMap.h.


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