Panda3D
Public Member Functions | Static Public Member Functions

EggSliderData Class Reference

This corresponds to a single morph slider control. More...

#include "eggSliderData.h"

Inheritance diagram for EggSliderData:
EggComponentData EggObject Namable TypedReferenceCount MemoryBase TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 EggSliderData (EggCharacterCollection *collection, EggCharacterData *char_data)
virtual void add_back_pointer (int model_index, EggObject *egg_object)
 Adds the indicated vertex, primitive, or morph table to the data.
virtual TypeHandle force_init_type ()
double get_frame (int model_index, int n) const
 Returns the value corresponding to this slider position in the nth frame in the indicated model.
virtual TypeHandle get_type () const
virtual void write (ostream &out, int indent_level=0) const

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 a single morph slider control.

It contains back pointers to all the vertices and primitives that reference this slider across all models, as well as all the tables in which it appears in all animation files.

Definition at line 31 of file eggSliderData.h.


Member Function Documentation

void EggSliderData::add_back_pointer ( int  model_index,
EggObject egg_object 
) [virtual]

Adds the indicated vertex, primitive, or morph table to the data.

Implements EggComponentData.

Definition at line 65 of file eggSliderData.cxx.

References EggComponentData::get_model(), TypedObject::is_of_type(), and EggComponentData::set_model().

double EggSliderData::get_frame ( int  model_index,
int  n 
) const

Returns the value corresponding to this slider position in the nth frame in the indicated model.

Definition at line 46 of file eggSliderData.cxx.

References EggComponentData::get_model().

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

Definition at line 46 of file eggSliderData.h.


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