Panda3D

characterJointBundle.h

00001 // Filename: characterJointBundle.h
00002 // Created by:  drose (23Feb99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef CHARACTERJOINTBUNDLE_H
00016 #define CHARACTERJOINTBUNDLE_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "partBundle.h"
00021 #include "partGroup.h"
00022 #include "animControl.h"
00023 
00024 class Character;
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : CharacterJointBundle
00028 // Description : The collection of all the joints and sliders in the
00029 //               character.
00030 ////////////////////////////////////////////////////////////////////
00031 class EXPCL_PANDA_CHAR CharacterJointBundle : public PartBundle {
00032 protected:
00033   INLINE CharacterJointBundle(const CharacterJointBundle &copy);
00034 
00035 PUBLISHED:
00036   CharacterJointBundle(const string &name = "");
00037   virtual ~CharacterJointBundle();
00038 
00039 PUBLISHED:
00040   INLINE Character *get_node(int n) const;
00041 
00042 protected:
00043   virtual PartGroup *make_copy() const;
00044   virtual void add_node(PartBundleNode *node);
00045   virtual void remove_node(PartBundleNode *node);
00046 
00047 private:
00048   void r_set_character(PartGroup *group, Character *character);
00049 
00050 public:
00051   static void register_with_read_factory();
00052 
00053   static TypedWritable *make_CharacterJointBundle(const FactoryParams &params);
00054 
00055 public:
00056   virtual TypeHandle get_type() const {
00057     return get_class_type();
00058   }
00059   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00060   static TypeHandle get_class_type() {
00061     return _type_handle;
00062   }
00063   static void init_type() {
00064     PartBundle::init_type();
00065     register_type(_type_handle, "CharacterJointBundle",
00066                   PartBundle::get_class_type());
00067   }
00068 
00069 private:
00070   static TypeHandle _type_handle;
00071 };
00072 
00073 #include "characterJointBundle.I"
00074 
00075 #endif
00076 
00077 
 All Classes Functions Variables Enumerations