00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef EGGLINE_H
00016 #define EGGLINE_H
00017
00018 #include "pandabase.h"
00019
00020 #include "eggCompositePrimitive.h"
00021
00022
00023
00024
00025
00026
00027 class EXPCL_PANDAEGG EggLine : public EggCompositePrimitive {
00028 PUBLISHED:
00029 INLINE EggLine(const string &name = "");
00030 INLINE EggLine(const EggLine ©);
00031 INLINE EggLine &operator = (const EggLine ©);
00032 virtual ~EggLine();
00033
00034 virtual void write(ostream &out, int indent_level) const;
00035
00036 INLINE bool has_thick() const;
00037 INLINE double get_thick() const;
00038 INLINE void set_thick(double thick);
00039 INLINE void clear_thick();
00040
00041 protected:
00042 virtual int get_num_lead_vertices() const;
00043
00044 private:
00045 double _thick;
00046 bool _has_thick;
00047
00048 public:
00049 static TypeHandle get_class_type() {
00050 return _type_handle;
00051 }
00052 static void init_type() {
00053 EggCompositePrimitive::init_type();
00054 register_type(_type_handle, "EggLine",
00055 EggCompositePrimitive::get_class_type());
00056 }
00057 virtual TypeHandle get_type() const {
00058 return get_class_type();
00059 }
00060 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00061
00062 private:
00063 static TypeHandle _type_handle;
00064
00065 };
00066
00067 #include "eggLine.I"
00068
00069 #endif