newspeoplefor developersdocumentationdownloads

nAnimBuilder Class Reference
[Nebula Graphics Tools]

#include <nanimbuilder.h>

Inheritance diagram for nAnimBuilder:

nScriptableAnimBuilder List of all members.

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
GroupGetGroupAt (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

nAnimBuilder::nAnimBuilder  ) 
 

constructor

Definition at line 14 of file nanimbuilder.cc.

nAnimBuilder::~nAnimBuilder  ) 
 

destructor

Definition at line 22 of file nanimbuilder.cc.


Member Function Documentation

void nAnimBuilder::FixKeyOffsets  ) 
 

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.

bool nAnimBuilder::Save nFileServer2 fileServer,
const char *  filename
 

save animation file (filename extension decides format)

Definition at line 69 of file nanimbuilder.cc.

bool nAnimBuilder::SaveNanim2 nFileServer2 fileServer,
const char *  filename
 

save nanim2 file

Save ascii nanim2 file. Check animation/nanimation.h for file format specification.

Definition at line 96 of file nanimbuilder.cc.

bool nAnimBuilder::SaveNax2 nFile file  ) 
 

save binary data to existing file

Save binary animation data into existing file.

Definition at line 172 of file nanimbuilder.cc.

bool nAnimBuilder::SaveNax2 nFileServer2 fileServer,
const char *  filename
 

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.

bool nAnimBuilder::Load nFileServer2 fileServer,
const char *  filename
 

load animation file (filename extension decides format)

Load animation from nanim2 or nax2 file.

Definition at line 363 of file nanimbuilder.cc.

bool nAnimBuilder::LoadNanim2 nFileServer2 fileServer,
const char *  filename
 

load nanim2 file

Load animation data from ascii nanim2 file.

Definition at line 389 of file nanimbuilder.cc.

bool nAnimBuilder::LoadNax2 nFileServer2 fileServer,
const char *  filename
 

load nax2 file

Load animation data from ascii nanim2 file.

Definition at line 552 of file nanimbuilder.cc.

void nAnimBuilder::Clear  ) 
 

clear all

Definition at line 31 of file nanimbuilder.cc.

void nAnimBuilder::AddGroup Group group  )  [inline]
 

add an animation group

Definition at line 737 of file nanimbuilder.h.

int nAnimBuilder::GetNumGroups  )  const [inline]
 

get number of groups

Definition at line 747 of file nanimbuilder.h.

nAnimBuilder::Group & nAnimBuilder::GetGroupAt int  i  )  [inline]
 

get group at index

Definition at line 757 of file nanimbuilder.h.

int nAnimBuilder::Optimize  ) 
 

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:

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.