nAnimBuilder Class Reference
[Nebula Graphics Tools]
#include <nanimbuilder.h>
Inheritance diagram for nAnimBuilder:

Detailed Description
The nAnimBuilder class is similar to the nMeshBuilder class, but assists in creating, loading, saving and processing of animation data.Supported file formats are nanim2 and nax2 (ASCII and binary animation file formats).
(C) 2003 RadonLabs GmbH
Definition at line 25 of file nanimbuilder.h.
Public Member Functions | |
| nAnimBuilder () | |
| constructor | |
| ~nAnimBuilder () | |
| destructor | |
| void | FixKeyOffsets () |
| updates the first key index and key stride members (call before saving the file) | |
| bool | Save (nFileServer2 *fileServer, const char *filename) |
| save animation file (filename extension decides format) | |
| bool | SaveNanim2 (nFileServer2 *fileServer, const char *filename) |
| save nanim2 file | |
| bool | SaveNax2 (nFile *file) |
| save binary data to existing file | |
| bool | SaveNax2 (nFileServer2 *fileServer, const char *filename) |
| save nax2 file | |
| bool | Load (nFileServer2 *fileServer, const char *filename) |
| load animation file (filename extension decides format) | |
| bool | LoadNanim2 (nFileServer2 *fileServer, const char *filename) |
| load nanim2 file | |
| bool | LoadNax2 (nFileServer2 *fileServer, const char *filename) |
| load nax2 file | |
| void | Clear () |
| clear all | |
| void | AddGroup (Group &group) |
| add an animation group | |
| int | GetNumGroups () const |
| get number of groups | |
| Group & | GetGroupAt (int i) |
| get group at index | |
| int | Optimize () |
| optimize the animation data | |
Classes | |
| class | Curve |
| an animation curve More... | |
| class | Group |
| an animation curve group More... | |
| class | Key |
| an animation key More... | |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 14 of file nanimbuilder.cc. |
|
|
destructor
Definition at line 22 of file nanimbuilder.cc. |
Member Function Documentation
|
|
updates the first key index and key stride members (call before saving the file) Fixes the first key index and key stride members in the contained groups and curves. Definition at line 327 of file nanimbuilder.cc. |
|
||||||||||||
|
save animation file (filename extension decides format)
Definition at line 69 of file nanimbuilder.cc. |
|
||||||||||||
|
save nanim2 file Save ascii nanim2 file. Check animation/nanimation.h for file format specification. Definition at line 96 of file nanimbuilder.cc. |
|
|
save binary data to existing file Save binary animation data into existing file. Definition at line 172 of file nanimbuilder.cc. |
|
||||||||||||
|
save nax2 file Save animation data as binary NAX2 file. Check animation/nanimation.h for file format specification. Definition at line 273 of file nanimbuilder.cc. |
|
||||||||||||
|
load animation file (filename extension decides format) Load animation from nanim2 or nax2 file. Definition at line 363 of file nanimbuilder.cc. |
|
||||||||||||
|
load nanim2 file Load animation data from ascii nanim2 file. Definition at line 389 of file nanimbuilder.cc. |
|
||||||||||||
|
load nax2 file Load animation data from ascii nanim2 file. Definition at line 552 of file nanimbuilder.cc. |
|
|
clear all
Definition at line 31 of file nanimbuilder.cc. |
|
|
add an animation group
Definition at line 737 of file nanimbuilder.h. |
|
|
get number of groups
Definition at line 747 of file nanimbuilder.h. |
|
|
get group at index
Definition at line 757 of file nanimbuilder.h. |
|
|
optimize the animation data Optimize curves. At the moment this will just collapse curves where all keys are identical. Returns number of collapsed curves. Definition at line 299 of file nanimbuilder.cc. |
The documentation for this class was generated from the following files: