Panda3D
Public Member Functions | Static Public Member Functions | List of all members
EggBackPointer Class Referenceabstract

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

Public Member Functions

virtual void extend_to (int num_frames)
 Extends the table to the indicated number of frames. More...
 
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. More...
 
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. More...
 
virtual void set_name (const std::string &name)
 Applies the indicated name change to the egg file. More...
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)=default
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer. More...
 
const TypedObjectas_typed_object () const
 Returns the object, upcast (if necessary) to a TypedObject pointer. More...
 
int get_best_parent_from_Set (const std::set< int > &) const
 
int get_type_index () const
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More...
 
bool is_exact_type (TypeHandle handle) const
 Returns true if the current object is the indicated type exactly. More...
 
bool is_of_type (TypeHandle handle) const
 Returns true if the current object is or derives from the indicated type. More...
 
TypedObjectoperator= (const TypedObject &copy)=default
 

Static Public Member Functions

static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from TypedObject
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. More...
 

Additional Inherited Members

- Public Attributes inherited from TypedObject
 get_type
 

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 31 of file eggBackPointer.h.

Member Function Documentation

◆ extend_to()

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 41 of file eggBackPointer.cxx.

◆ get_frame_rate()

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 33 of file eggBackPointer.cxx.

Referenced by EggComponentData::get_frame_rate().

◆ has_vertices()

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 52 of file eggBackPointer.cxx.

◆ set_name()

void EggBackPointer::set_name ( const std::string &  name)
virtual

Applies the indicated name change to the egg file.

Reimplemented in EggMatrixTablePointer, EggJointNodePointer, and EggScalarTablePointer.

Definition at line 60 of file eggBackPointer.cxx.


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