Panda3D
|
A line segment, or a series of connected line segments, defined by a <Line> entry. More...
#include "eggLine.h"
Public Member Functions | |
EggLine (const string &name="") | |
EggLine (const EggLine ©) | |
void | clear_thick () |
virtual TypeHandle | force_init_type () |
double | get_thick () const |
Returns the thickness set on this particular line. | |
virtual TypeHandle | get_type () const |
bool | has_thick () const |
EggLine & | operator= (const EggLine ©) |
void | set_thick (double thick) |
virtual void | write (ostream &out, int indent_level) const |
Writes the point to the indicated output stream in Egg format. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Protected Member Functions | |
virtual int | get_num_lead_vertices () const |
Returns the number of initial vertices that are not used in defining any component; the first component is defined by the (n + 1)th vertex, and then a new component at each vertex thereafter. |
A line segment, or a series of connected line segments, defined by a <Line> entry.
int EggLine::get_num_lead_vertices | ( | ) | const [protected, virtual] |
Returns the number of initial vertices that are not used in defining any component; the first component is defined by the (n + 1)th vertex, and then a new component at each vertex thereafter.
Implements EggCompositePrimitive.
Definition at line 60 of file eggLine.cxx.
double EggLine::get_thick | ( | ) | const [inline] |
Returns the thickness set on this particular line.
If there is no thickness set, returns 1.0.
Definition at line 71 of file eggLine.I.
Referenced by EggRenderState::fill_state(), and write().
void EggLine::write | ( | ostream & | out, |
int | indent_level | ||
) | const [virtual] |
Writes the point to the indicated output stream in Egg format.
Implements EggPrimitive.
Definition at line 39 of file eggLine.cxx.
References get_thick(), EggCompositePrimitive::write_body(), and EggNamedObject::write_header().