# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CAnimation Class Reference

This class describes animations for several tracks. More...

#include <animation.h>

List of all members.

Public Types

enum  {
  NotFound = 0xffffffff
}

Public Methods

 ~CAnimation ()
 Destructor. More...

uint getIdTrackByName (const std::string& name) const
 Get track with its name. More...

void getTrackNames (std::set<std::string>& setString) const
 Fill the set of string with the name of the channels. More...

const ITrackgetTrack (uint trackId) const
 Get a track pointer. More...

void addTrack (const std::string& name, ITrack* pChannel)
 Add a track at the end of the track list. More...

CAnimationTime getBeginTime () const
 Get begin time of the track. More...

CAnimationTime getEndTime () const
 Get end time of the track. More...

void serial (NLMISC::IStream& f)
 Serial the template. More...


Private Types

typedef std::map<std::string,
uint32
TMapStringUInt
typedef std::vector<ITrack* > TVectAPtrTrack

Private Attributes

std::string _Name
TMapStringUInt _IdByName
TVectAPtrTrack _TrackVector


Detailed Description

This class describes animations for several tracks.

Each track works with a IChannel for the IAnimatable objects.

Author(s):
Cyril 'Hulud' Corvazier , Nevrax France
Date:
2001

Definition at line 55 of file animation.h.


Member Typedef Documentation

typedef std::map<std::string, uint32> NL3D::CAnimation::TMapStringUInt [private]
 

Definition at line 129 of file animation.h.

typedef std::vector<ITrack* > NL3D::CAnimation::TVectAPtrTrack [private]
 

Definition at line 130 of file animation.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
NotFound  

Definition at line 64 of file animation.h.


Constructor & Destructor Documentation

NL3D::CAnimation::~CAnimation ( )
 

Destructor.

Definition at line 36 of file animation.cpp.


Member Function Documentation

void NL3D::CAnimation::addTrack ( const std::string & name,
ITrack * pChannel )
 

Add a track at the end of the track list.

This method is used to insert tracks in the animation. Tracks must be allocated with new. The pointer is then handeled by the CAnimation.

Definition at line 46 of file animation.cpp.

CAnimationTime NL3D::CAnimation::getBeginTime ( ) const
 

Get begin time of the track.

Returns:
the begin time.

Definition at line 94 of file animation.cpp.

Referenced by CSlotDlg::computeLength(), and CObjectViewer::setSingleAnimation().

CAnimationTime NL3D::CAnimation::getEndTime ( ) const
 

Get end time of the track.

Returns:
the end time.

Definition at line 118 of file animation.cpp.

Referenced by CSlotDlg::computeLength(), and CObjectViewer::setSingleAnimation().

uint NL3D::CAnimation::getIdTrackByName ( const std::string & name ) const [inline]
 

Get track with its name.

Parameters:
name   is the name of the desired track.
Returns:
CAnimation::NotFound if the track doesn't exist else the the id of the track.

Definition at line 71 of file animation.h.

const ITrack * NL3D::CAnimation::getTrack ( uint trackId ) const [inline]
 

Get a track pointer.

Parameters:
channelId   is the id of the desired channel.

Definition at line 96 of file animation.h.

void NL3D::CAnimation::getTrackNames ( std::set< std::string >& setString ) const
 

Fill the set of string with the name of the channels.

Returns:
the count of track in this animation

Definition at line 78 of file animation.cpp.

Referenced by CAnimationSetDlg::addAnimation().

void NL3D::CAnimation::serial ( NLMISC::IStream & f )
 

Serial the template.

Definition at line 57 of file animation.cpp.


Member Data Documentation

TMapStringUInt NL3D::CAnimation::_IdByName [private]
 

Definition at line 136 of file animation.h.

std::string NL3D::CAnimation::_Name [private]
 

Definition at line 133 of file animation.h.

TVectAPtrTrack NL3D::CAnimation::_TrackVector [private]
 

Definition at line 139 of file animation.h.


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