AnimPreloadTable

from panda3d.core import AnimPreloadTable
class AnimPreloadTable

Bases: CopyOnWriteObject

This table records data about a list of animations for a particular model, such as number of frames and frame rate. It’s used for implementating asynchronous binding.

This table is normally built by an offline tool, such as egg-optchar.

Inheritance diagram

Inheritance diagram of AnimPreloadTable

__init__(*args, **kwargs)
addAnim()

C++ Interface: add_anim(const AnimPreloadTable self, str basename, float base_frame_rate, int num_frames)

/**
  • Adds a new animation record to the table. If there is already a record of

  • this name, no operation is performed (the original record is unchanged).

  • See find_anim(). This will invalidate existing index numbers.

*/

addAnimsFrom()

C++ Interface: add_anims_from(const AnimPreloadTable self, const AnimPreloadTable other)

/**
  • Copies the animation records from the other table into this one. If a

  • given record name exists in both tables, the record in this one supercedes.

*/

add_anim()

C++ Interface: add_anim(const AnimPreloadTable self, str basename, float base_frame_rate, int num_frames)

/**
  • Adds a new animation record to the table. If there is already a record of

  • this name, no operation is performed (the original record is unchanged).

  • See find_anim(). This will invalidate existing index numbers.

*/

add_anims_from()

C++ Interface: add_anims_from(const AnimPreloadTable self, const AnimPreloadTable other)

/**
  • Copies the animation records from the other table into this one. If a

  • given record name exists in both tables, the record in this one supercedes.

*/

clearAnims()

C++ Interface: clear_anims(const AnimPreloadTable self)

/**
  • Removes all animation records from the table.

*/

clear_anims()

C++ Interface: clear_anims(const AnimPreloadTable self)

/**
  • Removes all animation records from the table.

*/

findAnim()

C++ Interface: find_anim(AnimPreloadTable self, str basename)

/**
  • Returns the index number in the table of the animation record with the

  • indicated name, or -1 if the name is not present. By convention, the

  • basename is the filename of the egg or bam file, without the directory part

  • and without the extension. That is, it is

  • Filename::get_basename_wo_extension().

*/

find_anim()

C++ Interface: find_anim(AnimPreloadTable self, str basename)

/**
  • Returns the index number in the table of the animation record with the

  • indicated name, or -1 if the name is not present. By convention, the

  • basename is the filename of the egg or bam file, without the directory part

  • and without the extension. That is, it is

  • Filename::get_basename_wo_extension().

*/

getBaseFrameRate()

C++ Interface: get_base_frame_rate(AnimPreloadTable self, int n)

/**
  • Returns the frame rate stored for the nth animation record.

*/

getBasename()

C++ Interface: get_basename(AnimPreloadTable self, int n)

/**
  • Returns the basename stored for the nth animation record. See find_anim().

*/

getClassType()

C++ Interface: get_class_type()

getNumAnims()

C++ Interface: get_num_anims(AnimPreloadTable self)

/**
  • Returns the number of animation records in the table.

*/

getNumFrames()

C++ Interface: get_num_frames(AnimPreloadTable self, int n)

/**
  • Returns the number of frames stored for the nth animation record.

*/

get_base_frame_rate()

C++ Interface: get_base_frame_rate(AnimPreloadTable self, int n)

/**
  • Returns the frame rate stored for the nth animation record.

*/

get_basename()

C++ Interface: get_basename(AnimPreloadTable self, int n)

/**
  • Returns the basename stored for the nth animation record. See find_anim().

*/

get_class_type()

C++ Interface: get_class_type()

get_num_anims()

C++ Interface: get_num_anims(AnimPreloadTable self)

/**
  • Returns the number of animation records in the table.

*/

get_num_frames()

C++ Interface: get_num_frames(AnimPreloadTable self, int n)

/**
  • Returns the number of frames stored for the nth animation record.

*/

output()

C++ Interface: output(AnimPreloadTable self, ostream out)

/**

*/

removeAnim()

C++ Interface: remove_anim(const AnimPreloadTable self, int n)

/**
  • Removes the nth animation records from the table. This renumbers indexes

  • for following animations.

*/

remove_anim()

C++ Interface: remove_anim(const AnimPreloadTable self, int n)

/**
  • Removes the nth animation records from the table. This renumbers indexes

  • for following animations.

*/

write()

C++ Interface: write(AnimPreloadTable self, ostream out, int indent_level)

/**

*/