00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GEOMVERTEXANIMATIONSPEC_H
00016 #define GEOMVERTEXANIMATIONSPEC_H
00017
00018 #include "pandabase.h"
00019 #include "geomEnums.h"
00020
00021 class BamWriter;
00022 class BamReader;
00023 class Datagram;
00024 class DatagramIterator;
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 class EXPCL_PANDA_GOBJ GeomVertexAnimationSpec : public GeomEnums {
00043 PUBLISHED:
00044 INLINE GeomVertexAnimationSpec();
00045 INLINE GeomVertexAnimationSpec(const GeomVertexAnimationSpec &other);
00046 INLINE void operator = (const GeomVertexAnimationSpec &other);
00047
00048 INLINE AnimationType get_animation_type() const;
00049
00050 INLINE int get_num_transforms() const;
00051 INLINE bool get_indexed_transforms() const;
00052
00053 INLINE void set_none();
00054 INLINE void set_panda();
00055 INLINE void set_hardware(int num_transforms, bool indexed_transforms);
00056
00057 void output(ostream &out) const;
00058
00059 public:
00060 INLINE bool operator < (const GeomVertexAnimationSpec &other) const;
00061 INLINE bool operator == (const GeomVertexAnimationSpec &other) const;
00062 INLINE bool operator != (const GeomVertexAnimationSpec &other) const;
00063 INLINE int compare_to(const GeomVertexAnimationSpec &other) const;
00064
00065 public:
00066 void write_datagram(BamWriter *manager, Datagram &dg);
00067 void fillin(DatagramIterator &scan, BamReader *manager);
00068
00069 private:
00070 AnimationType _animation_type;
00071
00072 int _num_transforms;
00073 bool _indexed_transforms;
00074 };
00075
00076 INLINE ostream &
00077 operator << (ostream &out, const GeomVertexAnimationSpec &animation);
00078
00079 #include "geomVertexAnimationSpec.I"
00080
00081 #endif