00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef EGGJOINTPOINTER_H
00016 #define EGGJOINTPOINTER_H
00017
00018 #include "pandatoolbase.h"
00019 #include "eggBackPointer.h"
00020 #include "eggGroup.h"
00021 #include "luse.h"
00022
00023 class EggCharacterDb;
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class EggJointPointer : public EggBackPointer {
00035 public:
00036 virtual int get_num_frames() const=0;
00037 virtual LMatrix4d get_frame(int n) const=0;
00038 virtual void set_frame(int n, const LMatrix4d &mat)=0;
00039 virtual bool add_frame(const LMatrix4d &mat);
00040
00041 virtual void do_finish_reparent(EggJointPointer *new_parent)=0;
00042 virtual void move_vertices_to(EggJointPointer *new_joint);
00043
00044 virtual bool do_rebuild(EggCharacterDb &db);
00045
00046 virtual void optimize();
00047 virtual void expose(EggGroup::DCSType dcs_type);
00048 virtual void zero_channels(const string &components);
00049 virtual void quantize_channels(const string &components, double quantum);
00050 virtual void apply_default_pose(EggJointPointer *source_joint, int frame);
00051
00052 virtual EggJointPointer *make_new_joint(const string &name)=0;
00053
00054 public:
00055 static TypeHandle get_class_type() {
00056 return _type_handle;
00057 }
00058 static void init_type() {
00059 EggBackPointer::init_type();
00060 register_type(_type_handle, "EggJointPointer",
00061 EggBackPointer::get_class_type());
00062 }
00063 virtual TypeHandle get_type() const {
00064 return get_class_type();
00065 }
00066 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00067
00068 private:
00069 static TypeHandle _type_handle;
00070 };
00071
00072 #include "eggJointPointer.I"
00073
00074 #endif
00075
00076