Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions

EggLine Class Reference

A line segment, or a series of connected line segments, defined by a <Line> entry. More...

#include "eggLine.h"

Inheritance diagram for EggLine:
EggCompositePrimitive EggPrimitive EggNode EggAttributes EggRenderMode EggNamedObject MemoryBase EggObject Namable TypedReferenceCount MemoryBase TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 EggLine (const string &name="")
 EggLine (const EggLine &copy)
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
EggLineoperator= (const EggLine &copy)
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.

Detailed Description

A line segment, or a series of connected line segments, defined by a <Line> entry.

Definition at line 27 of file eggLine.h.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations