newspeoplefor developersdocumentationdownloads

nAnimationServer Class Reference
[Animation Subsystem]

#include <nanimationserver.h>

Inheritance diagram for nAnimationServer:

nRoot nObject nNode nReferenced nSignalEmitter List of all members.

Detailed Description

The animation server offers central services of the animation subsystem (at the moment it is merely a factory for nAnimation objects).

(C) 2003 RadonLabs GmbH

Definition at line 20 of file nanimationserver.h.


Public Member Functions

 nAnimationServer ()
 constructor
virtual ~nAnimationServer ()
 destructor
virtual nAnimationNewMemoryAnimation (const nString &rsrcName)
 create an in-memory animation object (always shared)
virtual nAnimationNewStreamingAnimation ()
 create a new streaming animation object (never shared)

Static Public Member Functions

static nAnimationServerInstance ()
 return instance pointer

Constructor & Destructor Documentation

nAnimationServer::nAnimationServer  ) 
 

constructor

Definition at line 15 of file nanimationserver_main.cc.

nAnimationServer::~nAnimationServer  )  [virtual]
 

destructor

Definition at line 25 of file nanimationserver_main.cc.


Member Function Documentation

nAnimationServer * nAnimationServer::Instance  )  [inline, static]
 

return instance pointer

Definition at line 45 of file nanimationserver.h.

nAnimation * nAnimationServer::NewMemoryAnimation const nString rsrcName  )  [virtual]
 

create an in-memory animation object (always shared)

Create a new memory animation object. Memory animations keep the entire animation data in memory, but are generally shared. Memory anims should be used when many objects are driven by the same animation.

Parameters:
rsrcName the resource name for resource sharing

Definition at line 45 of file nanimationserver_main.cc.

nAnimation * nAnimationServer::NewStreamingAnimation  )  [virtual]
 

create a new streaming animation object (never shared)

Create a new streaming animation. Streaming animations stream their data from disk, which has the advantage that animations can be very long (hours if you want), but each streaming animation needs its own small streaming buffer, which may add up when many objects are driven by streamed animations, also disk bandwidth and seek latency may become a limiting factor.

Streaming animations generally cannot be shared, thus this method has no resource name parameter.

Definition at line 64 of file nanimationserver_main.cc.


The documentation for this class was generated from the following files:

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