HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_PointMatch Class Reference

#include <GU_PointMatch.h>

Public Member Functions

 GU_PointMatch (GA_AttributeOwner dict, const GU_Detail *src, const GU_Detail *dst, const char *idname, const char *dstidname=0)
 
GA_Offset matchOffset (GA_Offset srcoff) const
 
GA_Index matchIndex (GA_Index srcindex) const
 
bool fallbackUsed () const
 

Protected Attributes

GA_ROHandleI mySrcId
 
GA_ROHandleI myDstId
 
GA_ROHandleS mySrcName
 
GA_ROHandleS myDstName
 
GA_AttributeOwner myDict
 
GA_Size myNumDstIndices
 
const GU_DetailmySrcGdp
 
const GU_DetailmyDstGdp
 
const
GU_Detail::AttribSingleValueLookupTable
myLutId
 
const
GU_Detail::AttribSingleValueLookupTable
myLutName
 

Detailed Description

Definition at line 20 of file GU_PointMatch.h.

Constructor & Destructor Documentation

GU_PointMatch::GU_PointMatch ( GA_AttributeOwner  dict,
const GU_Detail src,
const GU_Detail dst,
const char *  idname,
const char *  dstidname = 0 
)

Initialize a lookup from src to dst on the given dictionary. The idname attribute will be matched if it is a string or integer, if not found in both it will match by raw index. dst must remain unchanged as we stash LUT pointers built by it.

Member Function Documentation

bool GU_PointMatch::fallbackUsed ( ) const

Determine if any fallback macthing was done or if this is a fully specified match.

GA_Index GU_PointMatch::matchIndex ( GA_Index  srcindex) const

Given index in src, return correspnding index in dst, or GA_INVALID_INDEX if none exists

GA_Offset GU_PointMatch::matchOffset ( GA_Offset  srcoff) const

Given offset in src, return correspnding offset in dst, or GA_INVALID_OFFSET if none exists

Member Data Documentation

GA_AttributeOwner GU_PointMatch::myDict
protected

Definition at line 44 of file GU_PointMatch.h.

const GU_Detail * GU_PointMatch::myDstGdp
protected

Definition at line 46 of file GU_PointMatch.h.

GA_ROHandleI GU_PointMatch::myDstId
protected

Definition at line 41 of file GU_PointMatch.h.

GA_ROHandleS GU_PointMatch::myDstName
protected

Definition at line 42 of file GU_PointMatch.h.

const GU_Detail::AttribSingleValueLookupTable* GU_PointMatch::myLutId
protected

Definition at line 49 of file GU_PointMatch.h.

const GU_Detail::AttribSingleValueLookupTable* GU_PointMatch::myLutName
protected

Definition at line 50 of file GU_PointMatch.h.

GA_Size GU_PointMatch::myNumDstIndices
protected

Definition at line 45 of file GU_PointMatch.h.

const GU_Detail* GU_PointMatch::mySrcGdp
protected

Definition at line 46 of file GU_PointMatch.h.

GA_ROHandleI GU_PointMatch::mySrcId
protected

Definition at line 41 of file GU_PointMatch.h.

GA_ROHandleS GU_PointMatch::mySrcName
protected

Definition at line 42 of file GU_PointMatch.h.


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