The HBhvUtility class contains a set of utility functions and data structures used in the behaviour classes.
More...
#include <HBhvUtility.h>
|
static HBhvAnimation * | AddAnimation (HBaseModel *model, char *name, char *targetpath, HPoint *pivot) |
|
static void | AddInstanceCreateKeyframe (HBaseModel *model, char *animname, int tick, char *path, char *include_path, char *color) |
|
static void | AddMatrixKeyframe (HBaseModel *model, HBhvAnimation *ani, int tick, float matrix[]) |
|
static void | AddPosKeyframe (HBaseModel *model, char *animname, int tick, HPoint pos, bool linear) |
|
static void | AddPosRotKeyframe (HBaseModel *model, const char *animname, int tick, HPoint pivot, float matrix[]) |
|
static void | AddPosRotKeyframe (HBaseModel *model, char *animname, int tick, HPoint pos, bool linear, HQuat quat, bool linear2) |
|
static void | AddRotKeyframe (HBaseModel *model, char *animname, int tick, HQuat pos, bool linear) |
|
static void | AddSegmentMoveKeyframe (HBaseModel *model, HBhvAnimation *anim, int tick, char *path) |
|
static void | ConvertHSFtoMorph (const char *filename, HBaseModel *model) |
|
static void | ConvertHSFtoSegSwitch (const char *filename, HBaseModel *model) |
|
static void | GetMatrix (HUtilityTextParser *tp, float matrix[]) |
|
static void | GetMatrix (const char *text, float matrix[]) |
|
static void | GetQuatPoint (HUtilityTextParser *tp, HQuat &quat) |
|
static void | GetQuatPoint (const char *text, HQuat &quat) |
|
static void | MakeCameraKeyframe (HBaseView *view, float timediff, bool targetmode=false) |
|
static void | SetupAnimationReadFromHSF (HStreamFileToolkit *mytool, HBaseModel *model) |
|
static void | SetupAnimationWriteFromHSF (HStreamFileToolkit *mytool, HBaseModel *model) |
|
static void | ShowModellingMatrix (float *segment_modelling_matrix) |
|
The HBhvUtility class contains a set of utility functions and data structures used in the behaviour classes.
◆ ConvertHSFtoMorph()
static void HBhvUtility::ConvertHSFtoMorph |
( |
const char * |
filename, |
|
|
HBaseModel * |
model |
|
) |
| |
|
static |
Converts sequence of HSF files to Vertex Morph Interpolator
- Parameters
-
filename | Name of first file in sequence |
model | Pointer to HBaseModel object |
◆ ConvertHSFtoSegSwitch()
static void HBhvUtility::ConvertHSFtoSegSwitch |
( |
const char * |
filename, |
|
|
HBaseModel * |
model |
|
) |
| |
|
static |
Converts sequence of HSF files to Segment Switch Interpolator
- Parameters
-
filename | Name of first file in sequence |
model | Pointer to HBaseModel object |
◆ GetQuatPoint() [1/2]
static void HBhvUtility::GetQuatPoint |
( |
HUtilityTextParser * |
tp, |
|
|
HQuat & |
quat |
|
) |
| |
|
static |
Extracts Quaternion from string
- Parameters
-
tp | Pointer to text parser object |
quat | Returns extracted quaternion |
◆ GetQuatPoint() [2/2]
static void HBhvUtility::GetQuatPoint |
( |
const char * |
text, |
|
|
HQuat & |
quat |
|
) |
| |
|
static |
Extracts Quaternion from string
- Parameters
-
text | Text to extract quaternion from |
quat | Returns extracted quaternion |
◆ SetupAnimationReadFromHSF()
static void HBhvUtility::SetupAnimationReadFromHSF |
( |
HStreamFileToolkit * |
mytool, |
|
|
HBaseModel * |
model |
|
) |
| |
|
static |
Sets up streaming toolkit for reading of behaviour related XML data
- Parameters
-
mytool | Pointer to streaming toolkit |
model | Pointer to HBaseModel object |
◆ SetupAnimationWriteFromHSF()
static void HBhvUtility::SetupAnimationWriteFromHSF |
( |
HStreamFileToolkit * |
mytool, |
|
|
HBaseModel * |
model |
|
) |
| |
|
static |
Sets up streaming toolkit for writing of behaviour related XML data
- Parameters
-
mytool | Pointer to streaming toolkit |
model | Pointer to HBaseModel object |
◆ ShowModellingMatrix()
static void HBhvUtility::ShowModellingMatrix |
( |
float * |
segment_modelling_matrix | ) |
|
|
static |
Retrieves modelling matrix in currently open segment
- Parameters
-
segment_modelling_matrix | Returns modelling matrix |
The documentation for this class was generated from the following file: