Panda3D
Public Member Functions | Static Public Member Functions | Protected Attributes
EggAnimData Class Reference

A base class for EggSAnimData and EggXfmAnimData, which contain rows and columns of numbers. More...

#include "eggAnimData.h"

Inheritance diagram for EggAnimData:
EggNode EggNamedObject EggObject Namable TypedReferenceCount MemoryBase TypedObject ReferenceCount MemoryBase MemoryBase EggSAnimData EggXfmAnimData

List of all members.

Public Member Functions

 EggAnimData (const string &name="")
 EggAnimData (const EggAnimData &copy)
void add_data (double value)
 Adds a single element to the table.
void clear_data ()
 Removes all data and empties the table.
void clear_fps ()
virtual TypeHandle force_init_type ()
PTA_double get_data () const
 Returns the entire table of data.
double get_fps () const
 This is only valid if has_fps() returns true.
int get_size () const
 Returns the number of elements in the table.
virtual TypeHandle get_type () const
bool has_fps () const
EggAnimDataoperator= (const EggAnimData &copy)
void quantize (double quantum)
 Rounds each element of the table to the nearest multiple of quantum.
void set_data (const PTA_double &data)
 Replaces the entire table of data.
void set_fps (double type)

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96.

Protected Attributes

PTA_double _data

Detailed Description

A base class for EggSAnimData and EggXfmAnimData, which contain rows and columns of numbers.

Definition at line 32 of file eggAnimData.h.


Member Function Documentation

void EggAnimData::add_data ( double  value) [inline]
void EggAnimData::clear_data ( ) [inline]

Removes all data and empties the table.

Definition at line 106 of file eggAnimData.I.

PTA_double EggAnimData::get_data ( ) const [inline]

Returns the entire table of data.

Definition at line 139 of file eggAnimData.I.

double EggAnimData::get_fps ( ) const [inline]

This is only valid if has_fps() returns true.

Definition at line 94 of file eggAnimData.I.

Referenced by EggXfmSAnim::EggXfmSAnim(), EggXfmAnimData::r_transform(), EggSAnimData::write(), and EggXfmAnimData::write().

int EggAnimData::get_size ( ) const [inline]

Returns the number of elements in the table.

Definition at line 128 of file eggAnimData.I.

Referenced by EggSAnimData::get_num_rows(), and EggXfmAnimData::get_num_rows().

static void EggAnimData::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from EggNode.

Reimplemented in EggXfmAnimData, and EggSAnimData.

Definition at line 69 of file eggAnimData.h.

References EggNode::init_type().

Referenced by EggSAnimData::init_type(), and EggXfmAnimData::init_type().

void EggAnimData::quantize ( double  quantum)

Rounds each element of the table to the nearest multiple of quantum.

Definition at line 26 of file eggAnimData.cxx.

Referenced by EggMatrixTablePointer::quantize_channels().

void EggAnimData::set_data ( const PTA_double &  data) [inline]

Replaces the entire table of data.

Definition at line 150 of file eggAnimData.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations