Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

WPCG::WP_AnimationManager Class Reference

#include <WP_AnimationManager.h>

List of all members.

Public Methods

 ~WP_AnimationManager ()
unsigned short getCurrentFrame (const WP_Object *object)
string getCategory (const WP_Object *object)
bool addObject (const WP_Object *object)
bool isObjectPresent (const WP_Object *object)
bool removeObject (const WP_Object *object)
void setInterpolation (float i)
bool setCategory (const WP_Object *object, const string &category)
void updateAnimation (const WP_Object *object)
bool animateObject (const WP_Object *object, unsigned short *start_frame, unsigned short *next_frame, scalar *interpolation)

Static Public Methods

WP_AnimationManager * getInstance ()


Detailed Description

this singleton class is in charge of animating the 3D models
Author:
Copyright (C) 2001-2003 W.P. van Paassen peter@paassen.tmfweb.nl
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


Constructor & Destructor Documentation

WPCG::WP_AnimationManager::~WP_AnimationManager   [inline]
 


Member Function Documentation

bool WPCG::WP_AnimationManager::addObject const WP_Object   object
 

bool WPCG::WP_AnimationManager::animateObject const WP_Object   object,
unsigned short *    start_frame,
unsigned short *    next_frame,
scalar   interpolation
 

string WPCG::WP_AnimationManager::getCategory const WP_Object   object [inline]
 

unsigned short WPCG::WP_AnimationManager::getCurrentFrame const WP_Object   object [inline]
 

WP_AnimationManager* WPCG::WP_AnimationManager::getInstance   [inline, static]
 

this function is used to obtain a pointer to the only instance of this class (singleton)

Returns:
a pointer to the only instance of this class

bool WPCG::WP_AnimationManager::isObjectPresent const WP_Object   object [inline]
 

bool WPCG::WP_AnimationManager::removeObject const WP_Object   object [inline]
 

bool WPCG::WP_AnimationManager::setCategory const WP_Object   object,
const string &    category
[inline]
 

void WPCG::WP_AnimationManager::setInterpolation float    i [inline]
 

void WPCG::WP_AnimationManager::updateAnimation const WP_Object   object
 


The documentation for this class was generated from the following files:
Generated on Tue Jan 28 20:26:37 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002