# HBhvUtility

## Functions

void | `GetQuatPoint`
void | `GetMatrix`
void | `GetQuatPoint`
void | `GetMatrix`
void | `ConvertHSFtoMorph`
void | `ConvertHSFtoSegSwitch`
void | `SetupAnimationReadFromHSF`
void | `SetupAnimationWriteFromHSF`
void | `ShowModellingMatrix`
void | `MakeCameraKeyframe`
HBhvAnimation * | `AddAnimation`
void | `AddPosKeyframe`
void | `AddRotKeyframe`
void | `AddPosRotKeyframe`
void | `AddMatrixKeyframe`
void | `AddPosRotKeyframe`
void | `AddInstanceCreateKeyframe`
void | `AddSegmentMoveKeyframe`

## Detailed Description

class `HBhvUtility`

  The HBhvUtility class contains a set of utility functions and data structures used in the behaviour classes.

  Public Static Functions

  static void `GetQuatPoint`(HUtilityTextParser *tp, HQuat &quat)

    Extracts Quaternion from string

    Parameters: | tp – Pointer to text parser object quat – Returns extracted quaternion

  static void `GetMatrix`(HUtilityTextParser *tp, float matrix[])
  static void `GetQuatPoint`(char const *text, HQuat &quat)

    Extracts Quaternion from string

    Parameters: | text – Text to extract quaternion from quat – Returns extracted quaternion

  static void `GetMatrix`(char const *text, float matrix[])
  static void `ConvertHSFtoMorph`(char const *filename, HBaseModel *model)

    Converts sequence of HSF files to Vertex Morph Interpolator

    Parameters: | filename – Name of first file in sequence model – Pointer to HBaseModel object

  static void `ConvertHSFtoSegSwitch`(char const *filename, HBaseModel *model)

    Converts sequence of HSF files to Segment Switch Interpolator

    Parameters: | filename – Name of first file in sequence model – Pointer to HBaseModel object

  static void `SetupAnimationReadFromHSF`(HStreamFileToolkit *mytool, HBaseModel *model)

    Sets up streaming toolkit for reading of behaviour related XML data

    Parameters: | mytool – Pointer to streaming toolkit model – Pointer to HBaseModel object

  static void `SetupAnimationWriteFromHSF`(HStreamFileToolkit *mytool, HBaseModel *model)

    Sets up streaming toolkit for writing of behaviour related XML data

    Parameters: | mytool – Pointer to streaming toolkit model – Pointer to HBaseModel object

  static void `ShowModellingMatrix`(float segment_modelling_matrix[])

    Retrieves modelling matrix in currently open segment

    Parameters: | segment_modelling_matrix – Returns modelling matrix

  static void `MakeCameraKeyframe`(HBaseView *view, float timediff, bool targetmode = false)
  static HBhvAnimation *`AddAnimation`(HBaseModel *model, char *name, char *targetpath, HPoint *pivot)
  static void `AddPosKeyframe`(HBaseModel *model, char *animname, int tick, HPoint pos, bool linear)
  static void `AddRotKeyframe`(HBaseModel *model, char *animname, int tick, HQuat pos, bool linear)
  static void `AddPosRotKeyframe`(HBaseModel *model, char const *animname, int tick, HPoint pivot, float matrix[])
  static void `AddMatrixKeyframe`(HBaseModel *model, HBhvAnimation *ani, int tick, float matrix[])
  static void `AddPosRotKeyframe`(HBaseModel *model, char *animname, int tick, HPoint pos, bool linear, HQuat quat, bool linear2)
  static void `AddInstanceCreateKeyframe`(HBaseModel *model, char *animname, int tick, char *path, char *include_path, char *color)
  static void `AddSegmentMoveKeyframe`(HBaseModel *model, HBhvAnimation *anim, int tick, char *path)

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize 3DF or choose a sample question below to start a conversation:

What is HOOPS Visualize 3DF?
What are the latest release notes for HOOPS Visualize 3DF?
How do I start evaluating HOOPS Visualize 3DF?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...