HairLibrary Class Reference Library » 头发

#include <lib_hair.h>

公共成员函数

Int32   GetMode ( BaseDocument *doc)
void  SetMode ( BaseDocument *doc, Int32 mode)
Bool   GetHairGlobal ( BaseDocument *doc)
void  SetHairGlobal ( BaseDocument *doc, Bool enable)
向量   BlendColors ( Int32 mode, const 向量 &colA, const 向量 &colB)
向量   MixST ( Float s, Float t, const 向量 &pa, const 向量 &pb, const 向量 &pc, const 向量 &pd, Bool bQuad)
Float   MixST ( Float s, Float t, Float va, Float vb, Float vc, Float vd, Bool bQuad)
void  GetPolyPointST (const 向量 &p, Float &s, Float &t, const 向量 &pa, const 向量 &pb, const 向量 &pc, const 向量 &pd, Bool bQuad)
void *  GetHook ( BaseDocument *doc, Int32 type)
void *  SetHook ( BaseDocument *doc, Int32 type, void *fn)
BaseContainer GetPrefsInstance ()
Int32   GetHairVersion ()

成员函数文档编制

◆  GetMode()

Int32 GetMode ( BaseDocument doc )

Gets the hair mode.

参数
[in] doc The document.
返回
The hair mode: HAIR_MODE

◆  SetMode()

void SetMode ( BaseDocument doc ,
Int32   mode  
)

Sets the hair mode.

参数
[in] doc The document.
[in] mode The new hair mode: HAIR_MODE

◆  GetHairGlobal()

Bool GetHairGlobal ( BaseDocument doc )

Checks the hair global settings enable state.

参数
[in] doc The document.
返回
The hair global enable state.

◆  SetHairGlobal()

void SetHairGlobal ( BaseDocument doc ,
Bool   enable  
)

Sets the hair global settings enable state.

参数
[in] doc The document.
[in] enable true to enable the hair global settings, otherwise false .

◆  BlendColors()

向量 BlendColors ( Int32   mode ,
const 向量 colA ,
const 向量 colB  
)

Blend colors.

参数
[in] mode The blend mode. See description/mhairmaterial.h for modes, e.g. HAIRMATERIAL_BLENDMODE_AVERAGE .
[in] colA The first color.
[in] colB The second color.
返回
The resulting color.

◆  MixST() [1/2]

向量 MixST ( Float   s ,
Float   t ,
const 向量 pa ,
const 向量 pb ,
const 向量 pc ,
const 向量 pd ,
Bool   bQuad  
)

Mixes by the s and t coordinates among pa , pb , pc and pd .

参数
[in] s The S coordinate.
[in] t The T coordinate.
[in] pa The first point value.
[in] pb The second point value.
[in] pc The third point value.
[in] pd The fourth point value.
[in] bQuad true means quadrangle, false means triangle.
返回
The resulting vector.

◆  MixST() [2/2]

Float MixST ( Float   s ,
Float   t ,
Float   va ,
Float   vb ,
Float   vc ,
Float   vd ,
Bool   bQuad  
)

Mixes by the s and t coordinates among va , vb , vc and vd .

参数
[in] s The S coordinate.
[in] t The T coordinate.
[in] va The first value.
[in] vb The second value.
[in] vc The third value.
[in] vd The fourth value.
[in] bQuad true means quadrangle, false means triangle.
返回
The resulting value.

◆  GetPolyPointST()

void GetPolyPointST ( const 向量 p ,
Float s ,
Float t ,
const 向量 pa ,
const 向量 pb ,
const 向量 pc ,
const 向量 pd ,
Bool   bQuad  
)

Calculates the s and t coordinates of the point p in the polygon described by pa , pb , pc and pd .

参数
[in] p The point to get the coordinates for.
[out] s Assigned the S coordinate.
[out] t Assigned the T coordinate.
[in] pa The first point value.
[in] pb The second point value.
[in] pc The third point value.
[in] pd The fourth point value.
[in] bQuad true means quadrangle, false means triangle.

◆  GetHook()

void* GetHook ( BaseDocument doc ,
Int32   type  
)

Retrieves a hair hook.

参数
[in] doc The document.
[in] type The hair hook type: HAIR_HOOK_TYPE
返回
The retrieved hair hook.

◆  SetHook()

void* SetHook ( BaseDocument doc ,
Int32   type ,
void *  fn  
)

Sets a hair hook.

参数
[in] doc The document.
[in] type The hair hook type: HAIR_HOOK_TYPE
[in] fn The new hair hook.
返回
The old hair hook.

◆  GetPrefsInstance()

BaseContainer * GetPrefsInstance ( )

Retrieves the hair preferences container.

返回
The hair preferences container. See Thairprefs.res .

◆  GetHairVersion()

Int32 GetHairVersion ( )

Gets the hair version number.

返回
The hair version.