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

#include <GU_Feather.h>

Classes

struct  TempData
 

Public Types

using TemplateOffsetMap = UT_Map< UT_StringHolder, GA_Offset >
 

Public Member Functions

 GU_FeatherTemplateInterpolate (const GU_Detail &gdp, const GU_Detail &templategdp, const GU_FeatherTemplateSet &templateinterp, const UT_StringHolder &indices_attrib_name, const UT_StringHolder &weights_attrib_name)
 
 GU_FeatherTemplateInterpolate (const GU_Detail &gdp, const GU_FeatherTemplateSet &templateinterp, const GA_Attribute &templatenamesattrib, const GA_Attribute &templateweightattrib)
 
bool isValid () const
 
bool hasTemplateNames () const
 
bool hasTemplateIndices () const
 
const GU_DetailgetTemplateDetail () const
 
void getNames (GA_Offset primoff, UT_StringArray &templatenames) const
 
void getIndices (GA_Offset primoff, UT_Int64Array &templateindices) const
 
void getWeights (GA_Offset primoff, UT_FloatArray &templateweights) const
 
void getTemplateOffsets (GA_OffsetArray &templateoffsets, const UT_StringArray &templatenames, GA_Offset primoff) const
 
void getTemplateOffsets (GA_OffsetArray &templateoffsets, const UT_Int64Array &templateindices, GA_Offset primoff) const
 
void makeTemplateOffsetMap (UT_Map< UT_StringHolder, GA_Offset > &templatemap, const GU_Detail *templategdp, GA_ROHandleS &templatenameattrib)
 
void normalizeWeights (GA_OffsetArray &templateoffsets, UT_FloatArray &templateweights) const
 
void getTemplateOffsetsAndWeights (GA_Offset primoff, GA_OffsetArray &offsets, UT_FloatArray &weights, TempData &temp) const
 
float computeBlendedCurveParam (int i, int vtxcount, GA_OffsetArray &templateoffsets, UT_FloatArray &templateweights, GA_ROHandleI &template_firstbarb_handle, int shaftsegs, fpreal curvelength, UT_FloatArray &curveedgelengths)
 

Detailed Description

Definition at line 546 of file GU_Feather.h.

Member Typedef Documentation

Constructor & Destructor Documentation

GU_FeatherTemplateInterpolate::GU_FeatherTemplateInterpolate ( const GU_Detail gdp,
const GU_Detail templategdp,
const GU_FeatherTemplateSet templateinterp,
const UT_StringHolder indices_attrib_name,
const UT_StringHolder weights_attrib_name 
)
inline

Definition at line 557 of file GU_Feather.h.

GU_FeatherTemplateInterpolate::GU_FeatherTemplateInterpolate ( const GU_Detail gdp,
const GU_FeatherTemplateSet templateinterp,
const GA_Attribute templatenamesattrib,
const GA_Attribute templateweightattrib 
)
inline

Definition at line 589 of file GU_Feather.h.

Member Function Documentation

float GU_FeatherTemplateInterpolate::computeBlendedCurveParam ( int  i,
int  vtxcount,
GA_OffsetArray templateoffsets,
UT_FloatArray templateweights,
GA_ROHandleI template_firstbarb_handle,
int  shaftsegs,
fpreal  curvelength,
UT_FloatArray curveedgelengths 
)
inline

Definition at line 770 of file GU_Feather.h.

void GU_FeatherTemplateInterpolate::getIndices ( GA_Offset  primoff,
UT_Int64Array templateindices 
) const
inline

Definition at line 635 of file GU_Feather.h.

void GU_FeatherTemplateInterpolate::getNames ( GA_Offset  primoff,
UT_StringArray templatenames 
) const
inline

Definition at line 628 of file GU_Feather.h.

const GU_Detail& GU_FeatherTemplateInterpolate::getTemplateDetail ( ) const
inline

Definition at line 623 of file GU_Feather.h.

void GU_FeatherTemplateInterpolate::getTemplateOffsets ( GA_OffsetArray templateoffsets,
const UT_StringArray templatenames,
GA_Offset  primoff 
) const
inline

Definition at line 649 of file GU_Feather.h.

void GU_FeatherTemplateInterpolate::getTemplateOffsets ( GA_OffsetArray templateoffsets,
const UT_Int64Array templateindices,
GA_Offset  primoff 
) const
inline

Definition at line 669 of file GU_Feather.h.

void GU_FeatherTemplateInterpolate::getTemplateOffsetsAndWeights ( GA_Offset  primoff,
GA_OffsetArray offsets,
UT_FloatArray weights,
TempData temp 
) const
inline

Definition at line 731 of file GU_Feather.h.

void GU_FeatherTemplateInterpolate::getWeights ( GA_Offset  primoff,
UT_FloatArray templateweights 
) const
inline

Definition at line 642 of file GU_Feather.h.

bool GU_FeatherTemplateInterpolate::hasTemplateIndices ( ) const
inline

Definition at line 617 of file GU_Feather.h.

bool GU_FeatherTemplateInterpolate::hasTemplateNames ( ) const
inline

Definition at line 612 of file GU_Feather.h.

bool GU_FeatherTemplateInterpolate::isValid ( ) const
inline

Definition at line 604 of file GU_Feather.h.

void GU_FeatherTemplateInterpolate::makeTemplateOffsetMap ( UT_Map< UT_StringHolder, GA_Offset > &  templatemap,
const GU_Detail templategdp,
GA_ROHandleS templatenameattrib 
)
inline

Definition at line 687 of file GU_Feather.h.

void GU_FeatherTemplateInterpolate::normalizeWeights ( GA_OffsetArray templateoffsets,
UT_FloatArray templateweights 
) const
inline

Definition at line 705 of file GU_Feather.h.


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