20 INLINE LineSegs::Point::
29 INLINE LineSegs::Point::
31 _point(point[0], point[1], point[2]),
41 INLINE LineSegs::Point::
42 Point(
const LineSegs::Point ©) :
53 INLINE
void LineSegs::Point::
54 operator = (
const LineSegs::Point ©) {
68 set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a) {
69 _color.set(r, g, b, a);
105 move_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
119 draw_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
139 return create(gnode, dynamic);
155 return _created_data->get_num_rows();
168 set_vertex(
int n, PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
This is the base class for all three-component vectors and points.
int get_num_vertices() const
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_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 ...
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 move_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
Moves the pen to the given point without drawing a line.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
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_vertex(int n, const LVertex &vert)
Moves the nth point or vertex of the line segment sequence generated by the last call to create()...
This is the base class for all three-component vectors and points.
void set_vertex_color(int vertex, const LColor &c)
Changes the vertex color of the nth point or vertex.
A node that holds Geom objects, renderable pieces of geometry.