17INLINE LineSegs::Point::
24INLINE LineSegs::Point::
25Point(
const LVecBase3 &point,
const LColor &color) :
26 _point(point[0], point[1], point[2]),
34INLINE LineSegs::Point::
35Point(
const LineSegs::Point ©) :
44INLINE
void LineSegs::Point::
45operator = (
const LineSegs::Point ©) {
56set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a) {
57 _color.set(r, g, b, a);
84move_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
94draw_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
110 return create(gnode, dynamic);
120 if (_created_data ==
nullptr) {
123 return _created_data->get_num_rows();
132set_vertex(
int n, PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
140set_vertex_color(
int n, PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a) {
A node that holds Geom objects, renderable pieces of geometry.
void set_thickness(PN_stdfloat thick)
Establishes the line thickness or point size in pixels that will be assigned to all lines and points ...
void draw_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
Draws a line segment from the pen's last position (the last call to move_to or draw_to) to the indica...
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a=1.0f)
Establishes the color that will be assigned to all vertices created by future calls to move_to() and ...
get_num_vertices
Returns the total number of line segment and point vertices generated by the last call to create().
GeomNode * create(bool dynamic=false)
Creates a new GeomNode that will render the series of line segments and points described via calls to...
void set_vertex(int n, const LVertex &vert)
Moves the nth point or vertex of the line segment sequence generated by the last call to create().
void set_vertex_color(int vertex, const LColor &c)
Changes the vertex color of the nth point or vertex.
void move_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
Moves the pen to the given point without drawing a line.