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

#include <GU_Feather.h>

Classes

struct  AttribMap
 

Public Types

enum  BarbSide { BarbSide::NONE = 0, BarbSide::LEFT, BarbSide::RIGHT }
 

Static Public Member Functions

static const UT_StringHoldergetBarbSideString (BarbSide barbside)
 
static UT_StringHolder getBarbAttribName (const UT_StringRef &basename, BarbSide barbside)
 
static GA_AttributecreateBarbAttrib (GU_Detail &detail, const UT_StringRef &name, int value_tuplesize, int barbpts)
 
static GA_ATINumericUPtr createDetachedBarbAttrib (const GU_Detail &detail, GA_Storage storage, int value_tuplesize, int barbpts)
 
static void addFeatherAttribsToCurveSampler (GU_GroomCurveAttribSampler &sampler)
 
static int findFirstBarbIndex (const GEO_PrimPoly &poly, const GU_FeatherBarbROHandle< UT_Vector3 > &barbl, const GU_FeatherBarbROHandle< UT_Vector3 > &barbr, UT_Vector3Array &tempbarbvals)
 
static void findFirstBarbIndex (const GA_RWHandleI &indices, const GU_Detail &detail, const GU_FeatherBarbROHandle< UT_Vector3 > &barbl, const GU_FeatherBarbROHandle< UT_Vector3 > &barbr, const GA_PrimitiveGroup *group=nullptr)
 
static void computeBarbTangents (const GU_Detail &detail, const GU_FeatherBarbROHandle< UT_Vector3 > &barbl, const GU_FeatherBarbROHandle< UT_Vector3 > &barbr, const GU_FeatherBarbRWHandle< UT_Vector3 > &tangentl, const GU_FeatherBarbRWHandle< UT_Vector3 > &tangentr, const GU_FeatherBarbRWHandle< UT_Vector3 > &bitangentl, const GU_FeatherBarbRWHandle< UT_Vector3 > &bitangentr, const GA_ROHandleI &firstbarb_handle)
 
static void deltaDeform (GU_Detail &detail, const GU_Detail &rest_detail, const GU_Detail &anim_detail, int from_barbsegs, int to_barbsegs, const GA_ROHandleI &firstbarb_handle, const GA_ROHandleI &rest_firstbarb_handle, const GA_ROHandleI &anim_firstbarb_handle)
 
static void populateBarbAttribMap (UT_Array< GU_Feather::AttribMap > &attribmaps, GU_Detail &gdp, const GU_Detail &sourcegdp, const UT_StringHolder &attribpattern)
 
static void createDestBarbAttributes (UT_Array< GU_Feather::AttribMap > &attribmaps, GU_Detail &gdp)
 
static void createDestBarbAttributes (UT_Array< GU_Feather::AttribMap > &attribmaps, GU_Detail &gdp, int tuplesize)
 
static void expandTemplateBarbAttribs (GU_Detail &gdp, const GA_PrimitiveGroup *group, const GU_Detail &sourcegdp, int shaft_base_segs, const GA_ROHandleI &shaft_base_segs_attrib)
 
static void expandTemplateBarbAttribs (GU_Detail &gdp, const GA_PrimitiveGroup *group, const GU_Detail &sourcegdp, UT_Array< GU_Feather::AttribMap > &attribmaps, int shaft_base_segs, const GA_ROHandleI &shaft_base_segs_attrib)
 
static void zeroBarbValues (GU_Detail &gdp, const GA_PrimitiveGroup *group)
 

Static Public Attributes

static const UT_StringHolder BarbLAttrib
 
static const UT_StringHolder BarbRAttrib
 
static const UT_StringHolder BarbOrientAttrib
 
static const UT_StringHolder BarbUVLAttrib
 
static const UT_StringHolder BarbUVRAttrib
 
static const UT_StringHolder TemplateNamesAttrib
 
static const UT_StringHolder TemplateWeightsAttrib
 
static const UT_StringHolder SideAttrib
 
static const UT_StringHolder SideLeft
 
static const UT_StringHolder SideCenter
 
static const UT_StringHolder SideRight
 
static const UT_StringArray FeatherAttribs
 
static const UT_StringArray FeatherAttribsLengthScaled
 

Detailed Description

Definition at line 848 of file GU_Feather.h.

Member Enumeration Documentation

enum GU_Feather::BarbSide
strong
Enumerator
NONE 
LEFT 
RIGHT 

Definition at line 851 of file GU_Feather.h.

Member Function Documentation

static void GU_Feather::addFeatherAttribsToCurveSampler ( GU_GroomCurveAttribSampler sampler)
inlinestatic

Definition at line 962 of file GU_Feather.h.

static void GU_Feather::computeBarbTangents ( const GU_Detail detail,
const GU_FeatherBarbROHandle< UT_Vector3 > &  barbl,
const GU_FeatherBarbROHandle< UT_Vector3 > &  barbr,
const GU_FeatherBarbRWHandle< UT_Vector3 > &  tangentl,
const GU_FeatherBarbRWHandle< UT_Vector3 > &  tangentr,
const GU_FeatherBarbRWHandle< UT_Vector3 > &  bitangentl,
const GU_FeatherBarbRWHandle< UT_Vector3 > &  bitangentr,
const GA_ROHandleI firstbarb_handle 
)
static
static GA_Attribute* GU_Feather::createBarbAttrib ( GU_Detail detail,
const UT_StringRef name,
int  value_tuplesize,
int  barbpts 
)
inlinestatic

Definition at line 936 of file GU_Feather.h.

static void GU_Feather::createDestBarbAttributes ( UT_Array< GU_Feather::AttribMap > &  attribmaps,
GU_Detail gdp 
)
static
static void GU_Feather::createDestBarbAttributes ( UT_Array< GU_Feather::AttribMap > &  attribmaps,
GU_Detail gdp,
int  tuplesize 
)
static
static GA_ATINumericUPtr GU_Feather::createDetachedBarbAttrib ( const GU_Detail detail,
GA_Storage  storage,
int  value_tuplesize,
int  barbpts 
)
inlinestatic

Definition at line 949 of file GU_Feather.h.

static void GU_Feather::deltaDeform ( GU_Detail detail,
const GU_Detail rest_detail,
const GU_Detail anim_detail,
int  from_barbsegs,
int  to_barbsegs,
const GA_ROHandleI firstbarb_handle,
const GA_ROHandleI rest_firstbarb_handle,
const GA_ROHandleI anim_firstbarb_handle 
)
static
static void GU_Feather::expandTemplateBarbAttribs ( GU_Detail gdp,
const GA_PrimitiveGroup group,
const GU_Detail sourcegdp,
int  shaft_base_segs,
const GA_ROHandleI shaft_base_segs_attrib 
)
static
static void GU_Feather::expandTemplateBarbAttribs ( GU_Detail gdp,
const GA_PrimitiveGroup group,
const GU_Detail sourcegdp,
UT_Array< GU_Feather::AttribMap > &  attribmaps,
int  shaft_base_segs,
const GA_ROHandleI shaft_base_segs_attrib 
)
static
static int GU_Feather::findFirstBarbIndex ( const GEO_PrimPoly poly,
const GU_FeatherBarbROHandle< UT_Vector3 > &  barbl,
const GU_FeatherBarbROHandle< UT_Vector3 > &  barbr,
UT_Vector3Array tempbarbvals 
)
static
static void GU_Feather::findFirstBarbIndex ( const GA_RWHandleI indices,
const GU_Detail detail,
const GU_FeatherBarbROHandle< UT_Vector3 > &  barbl,
const GU_FeatherBarbROHandle< UT_Vector3 > &  barbr,
const GA_PrimitiveGroup group = nullptr 
)
static
static UT_StringHolder GU_Feather::getBarbAttribName ( const UT_StringRef basename,
BarbSide  barbside 
)
inlinestatic

Definition at line 927 of file GU_Feather.h.

static const UT_StringHolder& GU_Feather::getBarbSideString ( BarbSide  barbside)
inlinestatic

Definition at line 916 of file GU_Feather.h.

static void GU_Feather::populateBarbAttribMap ( UT_Array< GU_Feather::AttribMap > &  attribmaps,
GU_Detail gdp,
const GU_Detail sourcegdp,
const UT_StringHolder attribpattern 
)
static
static void GU_Feather::zeroBarbValues ( GU_Detail gdp,
const GA_PrimitiveGroup group 
)
static

Member Data Documentation

const UT_StringHolder GU_Feather::BarbLAttrib
static

Definition at line 898 of file GU_Feather.h.

const UT_StringHolder GU_Feather::BarbOrientAttrib
static

Definition at line 900 of file GU_Feather.h.

const UT_StringHolder GU_Feather::BarbRAttrib
static

Definition at line 899 of file GU_Feather.h.

const UT_StringHolder GU_Feather::BarbUVLAttrib
static

Definition at line 901 of file GU_Feather.h.

const UT_StringHolder GU_Feather::BarbUVRAttrib
static

Definition at line 902 of file GU_Feather.h.

const UT_StringArray GU_Feather::FeatherAttribs
static

Definition at line 909 of file GU_Feather.h.

const UT_StringArray GU_Feather::FeatherAttribsLengthScaled
static

Definition at line 913 of file GU_Feather.h.

const UT_StringHolder GU_Feather::SideAttrib
static

Definition at line 906 of file GU_Feather.h.

const UT_StringHolder GU_Feather::SideCenter
static

Definition at line 908 of file GU_Feather.h.

const UT_StringHolder GU_Feather::SideLeft
static

Definition at line 907 of file GU_Feather.h.

const UT_StringHolder GU_Feather::SideRight
static

Definition at line 909 of file GU_Feather.h.

const UT_StringHolder GU_Feather::TemplateNamesAttrib
static

Definition at line 903 of file GU_Feather.h.

const UT_StringHolder GU_Feather::TemplateWeightsAttrib
static

Definition at line 904 of file GU_Feather.h.


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