00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef CHARACTERVERTEXSLIDER_H
00016 #define CHARACTERVERTEXSLIDER_H
00017
00018 #include "pandabase.h"
00019 #include "characterSlider.h"
00020 #include "vertexSlider.h"
00021 #include "pointerTo.h"
00022
00023
00024
00025
00026
00027
00028
00029 class EXPCL_PANDA_CHAR CharacterVertexSlider : public VertexSlider {
00030 private:
00031 CharacterVertexSlider();
00032
00033 PUBLISHED:
00034 CharacterVertexSlider(CharacterSlider *char_slider);
00035 virtual ~CharacterVertexSlider();
00036
00037 INLINE const CharacterSlider *get_char_slider() const;
00038
00039 virtual PN_stdfloat get_slider() const;
00040
00041 private:
00042 PT(CharacterSlider) _char_slider;
00043
00044 public:
00045 static void register_with_read_factory();
00046 virtual void write_datagram(BamWriter *manager, Datagram &dg);
00047 virtual int complete_pointers(TypedWritable **plist, BamReader *manager);
00048
00049 protected:
00050 static TypedWritable *make_from_bam(const FactoryParams ¶ms);
00051 void fillin(DatagramIterator &scan, BamReader *manager);
00052
00053 public:
00054 static TypeHandle get_class_type() {
00055 return _type_handle;
00056 }
00057 static void init_type() {
00058 VertexSlider::init_type();
00059 register_type(_type_handle, "CharacterVertexSlider",
00060 VertexSlider::get_class_type());
00061 }
00062 virtual TypeHandle get_type() const {
00063 return get_class_type();
00064 }
00065 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00066
00067 private:
00068 static TypeHandle _type_handle;
00069
00070 friend class CharacterSlider;
00071 };
00072
00073 #include "characterVertexSlider.I"
00074
00075 #endif