Panda3D
Public Member Functions | Static Public Member Functions

EggBackPointer Class Reference

This stores a pointer from an EggJointData or EggSliderData object back to the referencing data in an egg file. More...

#include "eggBackPointer.h"

Inheritance diagram for EggBackPointer:
TypedObject MemoryBase EggJointPointer EggSliderPointer EggJointNodePointer EggMatrixTablePointer EggScalarTablePointer EggVertexPointer

List of all members.

Public Member Functions

virtual void extend_to (int num_frames)
 Extends the table to the indicated number of frames.
virtual TypeHandle force_init_type ()
virtual double get_frame_rate () const
 Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state.
virtual int get_num_frames () const =0
virtual TypeHandle get_type () const
virtual bool has_vertices () const
 Returns true if there are any vertices referenced by the node this points to, false otherwise.
virtual void set_name (const string &name)
 Applies the indicated name change to the egg file.

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 stores a pointer from an EggJointData or EggSliderData object back to the referencing data in an egg file.

One of these objects corresponds to each model appearing in an egg file, and may reference either a single node, or a table, or a slew of vertices and primitives, depending on the type of data stored.

This is just an abstract base class. The actual details are stored in the various subclasses.

Definition at line 35 of file eggBackPointer.h.


Member Function Documentation

void EggBackPointer::extend_to ( int  num_frames) [virtual]

Extends the table to the indicated number of frames.

Reimplemented in EggMatrixTablePointer, and EggScalarTablePointer.

Definition at line 46 of file eggBackPointer.cxx.

Referenced by EggComponentData::extend_to().

double EggBackPointer::get_frame_rate ( ) const [virtual]

Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state.

Reimplemented in EggMatrixTablePointer, and EggScalarTablePointer.

Definition at line 36 of file eggBackPointer.cxx.

Referenced by EggComponentData::get_frame_rate().

bool EggBackPointer::has_vertices ( ) const [virtual]

Returns true if there are any vertices referenced by the node this points to, false otherwise.

For certain kinds of back pointers (e.g. table animation entries), this is always false.

Reimplemented in EggJointNodePointer, and EggVertexPointer.

Definition at line 60 of file eggBackPointer.cxx.

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

Reimplemented in EggJointNodePointer, EggJointPointer, EggMatrixTablePointer, EggScalarTablePointer, EggSliderPointer, and EggVertexPointer.

Definition at line 50 of file eggBackPointer.h.

void EggBackPointer::set_name ( const string &  name) [virtual]

Applies the indicated name change to the egg file.

Reimplemented in EggJointNodePointer, EggMatrixTablePointer, and EggScalarTablePointer.

Definition at line 70 of file eggBackPointer.cxx.


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