Panda3D
Public Member Functions | Static Public Member Functions

EggAnimPreload Class Reference

This corresponds to an <AnimPreload> entry. More...

#include "eggAnimPreload.h"

Inheritance diagram for EggAnimPreload:
EggNode EggNamedObject EggObject Namable TypedReferenceCount MemoryBase TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 EggAnimPreload (const string &name="")
 EggAnimPreload (const EggAnimPreload &copy)
void clear_fps ()
void clear_num_frames ()
virtual TypeHandle force_init_type ()
double get_fps () const
 This is only valid if has_fps() returns true.
int get_num_frames () const
 This is only valid if has_num_frames() returns true.
virtual TypeHandle get_type () const
bool has_fps () const
bool has_num_frames () const
EggAnimPreloadoperator= (const EggAnimPreload &copy)
void set_fps (double fps)
void set_num_frames (int num_frames)
virtual void write (ostream &out, int indent_level) const
 Writes the table and all of its children to the indicated output stream in Egg format.

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.

Detailed Description

This corresponds to an <AnimPreload> entry.

Definition at line 26 of file eggAnimPreload.h.


Member Function Documentation

double EggAnimPreload::get_fps ( ) const [inline]

This is only valid if has_fps() returns true.

Definition at line 99 of file eggAnimPreload.I.

Referenced by write().

int EggAnimPreload::get_num_frames ( ) const [inline]

This is only valid if has_num_frames() returns true.

Definition at line 142 of file eggAnimPreload.I.

Referenced by write().

static void EggAnimPreload::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.

Definition at line 54 of file eggAnimPreload.h.

References EggNode::init_type().

void EggAnimPreload::write ( ostream &  out,
int  indent_level 
) const [virtual]

Writes the table and all of its children to the indicated output stream in Egg format.

Implements EggNode.

Definition at line 29 of file eggAnimPreload.cxx.

References get_fps(), get_num_frames(), and EggNamedObject::write_header().


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