#include <lib_hair.h>
Public Member Functions | |
| Int32 | GetMode (BaseDocument *doc) |
| void | SetMode (BaseDocument *doc, Int32 mode) |
| Bool | GetHairGlobal (BaseDocument *doc) |
| void | SetHairGlobal (BaseDocument *doc, Bool enable) |
| Vector | BlendColors (Int32 mode, const Vector &colA, const Vector &colB) |
| Vector | MixST (Float s, Float t, const Vector &pa, const Vector &pb, const Vector &pc, const Vector &pd, Bool bQuad) |
| Float | MixST (Float s, Float t, Float va, Float vb, Float vc, Float vd, Bool bQuad) |
| void | GetPolyPointST (const Vector &p, Float &s, Float &t, const Vector &pa, const Vector &pb, const Vector &pc, const Vector &pd, Bool bQuad) |
| void * | GetHook (BaseDocument *doc, Int32 type) |
| void * | SetHook (BaseDocument *doc, Int32 type, void *fn) |
| BaseContainer * | GetPrefsInstance () |
| Int32 | GetHairVersion () |
| Int32 GetMode | ( | BaseDocument * | doc | ) |
| void SetMode | ( | BaseDocument * | doc, |
| Int32 | mode | ||
| ) |
Sets the hair mode.
| [in] | doc | The document. |
| [in] | mode | The new hair mode: HAIR_MODE |
| Bool GetHairGlobal | ( | BaseDocument * | doc | ) |
Checks the hair global settings enable state.
| [in] | doc | The document. |
| 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. |
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. |
| Vector MixST | ( | Float | s, |
| Float | t, | ||
| const Vector & | pa, | ||
| const Vector & | pb, | ||
| const Vector & | pc, | ||
| const Vector & | 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. |
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. |
| void GetPolyPointST | ( | const Vector & | p, |
| Float & | s, | ||
| Float & | t, | ||
| const Vector & | pa, | ||
| const Vector & | pb, | ||
| const Vector & | pc, | ||
| const Vector & | 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. |
| void* GetHook | ( | BaseDocument * | doc, |
| Int32 | type | ||
| ) |
Retrieves a hair hook.
| [in] | doc | The document. |
| [in] | type | The hair hook type: HAIR_HOOK_TYPE |
| 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. |
| BaseContainer* GetPrefsInstance | ( | ) |
Retrieves the hair preferences container.
| Int32 GetHairVersion | ( | ) |
Gets the hair version number.