Panda3D
 All Classes Functions Variables Enumerations
eggLine.h
1 // Filename: eggLine.h
2 // Created by: drose (14Oct03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef EGGLINE_H
16 #define EGGLINE_H
17 
18 #include "pandabase.h"
19 
20 #include "eggCompositePrimitive.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : EggLine
24 // Description : A line segment, or a series of connected line
25 // segments, defined by a <Line> entry.
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_PANDAEGG EggLine : public EggCompositePrimitive {
28 PUBLISHED:
29  INLINE EggLine(const string &name = "");
30  INLINE EggLine(const EggLine &copy);
31  INLINE EggLine &operator = (const EggLine &copy);
32  virtual ~EggLine();
33 
34  virtual void write(ostream &out, int indent_level) const;
35 
36  INLINE bool has_thick() const;
37  INLINE double get_thick() const;
38  INLINE void set_thick(double thick);
39  INLINE void clear_thick();
40 
41 protected:
42  virtual int get_num_lead_vertices() const;
43 
44 private:
45  double _thick;
46  bool _has_thick;
47 
48 public:
49  static TypeHandle get_class_type() {
50  return _type_handle;
51  }
52  static void init_type() {
53  EggCompositePrimitive::init_type();
54  register_type(_type_handle, "EggLine",
55  EggCompositePrimitive::get_class_type());
56  }
57  virtual TypeHandle get_type() const {
58  return get_class_type();
59  }
60  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
61 
62 private:
63  static TypeHandle _type_handle;
64 
65 };
66 
67 #include "eggLine.I"
68 
69 #endif
The base class for primitives such as triangle strips and triangle fans, which include several compon...
A line segment, or a series of connected line segments, defined by a &lt;Line&gt; entry.
Definition: eggLine.h:27
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85