18 #include "pandabase.h" 23 #include "geomVertexData.h" 38 LineSegs(
const string &name =
"lines");
42 INLINE
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0f);
44 INLINE
void set_thickness(PN_stdfloat thick);
46 INLINE
void move_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
49 INLINE
void draw_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
52 const LVertex &get_current_position();
55 INLINE
GeomNode *create(
bool dynamic =
false);
59 INLINE
int get_num_vertices()
const;
60 LVertex get_vertex(
int n)
const;
61 MAKE_SEQ(get_vertices, get_num_vertices, get_vertex);
62 void set_vertex(
int n,
const LVertex &vert);
63 INLINE
void set_vertex(
int vertex, PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
65 LColor get_vertex_color(
int vertex)
const;
66 MAKE_SEQ(get_vertex_colors, get_num_vertices, get_vertex_color);
67 void set_vertex_color(
int vertex,
const LColor &c);
68 INLINE
void set_vertex_color(
int vertex, PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0f);
75 INLINE Point(
const Point ©);
76 INLINE
void operator = (
const Point ©);
This is the base class for all three-component vectors and points.
This is an "unaligned" LVecBase4.
This is our own Panda specialization on the default STL vector.
A base class for all things which can have a name.
Encapsulates creation of a series of connected or disconnected line segments or points, for drawing paths or rays.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
This is the base class for all three-component vectors and points.
A node that holds Geom objects, renderable pieces of geometry.