// Filename: eggMatrixTablePointer.h // Created by: drose (26Feb01) // //////////////////////////////////////////////////////////////////// #ifndef EGGMATRIXTABLEPOINTER_H #define EGGMATRIXTABLEPOINTER_H #include #include "eggJointPointer.h" #include #include #include //////////////////////////////////////////////////////////////////// // Class : EggMatrixTablePointer // Description : This stores a pointer back to an EggXfmSAnim table // (i.e. an entry in an egg file), // corresponding to the animation data from a single // bundle for this joint. //////////////////////////////////////////////////////////////////// class EggMatrixTablePointer : public EggJointPointer { public: EggMatrixTablePointer(EggObject *object); virtual int get_num_frames() const; virtual LMatrix4d get_frame(int n) const; virtual void set_frame(int n, const LMatrix4d &mat); virtual bool add_frame(const LMatrix4d &mat); private: PT(EggTable) _table; PT(EggXfmSAnim) _xform; public: static TypeHandle get_class_type() { return _type_handle; } static void init_type() { EggJointPointer::init_type(); register_type(_type_handle, "EggMatrixTablePointer", EggJointPointer::get_class_type()); } virtual TypeHandle get_type() const { return get_class_type(); } virtual TypeHandle force_init_type() {init_type(); return get_class_type();} private: static TypeHandle _type_handle; }; #endif