Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

LineSegs Class Reference

#include <lineSegs.h>

Inheritance diagram for LineSegs:

Namable List of all members.

Private Types

typedef pvector< PointSegmentList
typedef pvector< SegmentListLineList

Private Member Functions

 ~LineSegs ()
void reset ()
INLINE void set_color (float r, float g, float b, float a=1.0f)
INLINE void set_color (const Colorf &color)
INLINE void set_thickness (float thick)
INLINE void move_to (float x, float y, float z)
void move_to (const LVecBase3f &v)
INLINE void draw_to (float x, float y, float z)
void draw_to (const LVecBase3f &v)
const Vertexfget_current_position ()
bool is_empty ()
INLINE GeomNodecreate (bool frame_accurate=false)
GeomNodecreate (GeomNode *previous, bool frame_accurate=false)
INLINE int get_num_vertices () const
INLINE Vertexf get_vertex (int vertex) const
INLINE void set_vertex (int vertex, const Vertexf &vert)
INLINE void set_vertex (int vertex, float x, float y, float z)
INLINE Colorf get_vertex_color (int vertex) const
INLINE void set_vertex_color (int vertex, const Colorf &color)
INLINE void set_vertex_color (int vertex, float r, float g, float b, float a=1.0f)

Private Attributes

PUBLISHED __pad0__: LineSegs(const string &name = "lines")
LineList _list
Colorf _color
float _thick
PTA_Vertexf _created_verts
PTA_Colorf _created_colors

Member Typedef Documentation

typedef pvector<SegmentList> LineSegs::LineList [private]
 

Definition at line 88 of file lineSegs.h.

typedef pvector<Point> LineSegs::SegmentList [private]
 

Definition at line 87 of file lineSegs.h.

Referenced by create(), draw_to(), and move_to().


Constructor & Destructor Documentation

LineSegs::~LineSegs  )  [private]
 

Definition at line 44 of file lineSegs.cxx.


Member Function Documentation

GeomNode * LineSegs::create GeomNode previous,
bool  frame_accurate = false
[private]
 

Definition at line 147 of file lineSegs.cxx.

References _created_colors, _created_verts, _list, _thick, GeomNode::add_geom(), PointerToArray< Colorf >::clear(), PointerToArray< Vertexf >::clear(), G_PER_VERTEX, PointerToArray< Colorf >::push_back(), PointerToArray< Vertexf >::push_back(), PointerToArray< int >::push_back(), PointerToArray< unsigned short >::push_back(), reset(), SegmentList, Geom::set_colors(), Geom::set_coords(), Geom::set_lengths(), Geom::set_num_prims(), GeomPoint::set_size(), GeomLinestrip::set_width(), GeomLine::set_width(), and v.

INLINE GeomNode* LineSegs::create bool  frame_accurate = false  )  [private]
 

Referenced by ParametricCurveDrawer::draw(), NurbsCurveDrawer::draw(), and PGEntry::setup().

void LineSegs::draw_to const LVecBase3f &  v  )  [private]
 

Definition at line 88 of file lineSegs.cxx.

References _color, _list, move_to(), SegmentList, and v.

INLINE void LineSegs::draw_to float  x,
float  y,
float  z
[private]
 

Referenced by ParametricCurveDrawer::draw(), NurbsCurveDrawer::draw(), and PGEntry::setup().

const Vertexf & LineSegs::get_current_position  )  [private]
 

Definition at line 122 of file lineSegs.cxx.

References _list, move_to(), and Vertexf.

INLINE int LineSegs::get_num_vertices  )  const [private]
 

Referenced by NurbsCurveDrawer::hilight(), and NurbsCurveDrawer::unhilight().

INLINE Vertexf LineSegs::get_vertex int  vertex  )  const [private]
 

INLINE Colorf LineSegs::get_vertex_color int  vertex  )  const [private]
 

bool LineSegs::is_empty  )  [private]
 

Definition at line 111 of file lineSegs.cxx.

References _list.

void LineSegs::move_to const LVecBase3f &  v  )  [private]
 

Definition at line 69 of file lineSegs.cxx.

References _color, _list, SegmentList, and v.

INLINE void LineSegs::move_to float  x,
float  y,
float  z
[private]
 

Referenced by ParametricCurveDrawer::draw(), NurbsCurveDrawer::draw(), draw_to(), get_current_position(), and PGEntry::setup().

void LineSegs::reset  )  [private]
 

Definition at line 55 of file lineSegs.cxx.

References _list.

Referenced by create().

INLINE void LineSegs::set_color const Colorf color  )  [private]
 

INLINE void LineSegs::set_color float  r,
float  g,
float  b,
float  a = 1.0f
[private]
 

Referenced by ParametricCurveDrawer::set_color(), NurbsCurveDrawer::set_cv_color(), NurbsCurveDrawer::set_hull_color(), NurbsCurveDrawer::set_knot_color(), ParametricCurveDrawer::set_tick_color(), and PGEntry::setup().

INLINE void LineSegs::set_thickness float  thick  )  [private]
 

INLINE void LineSegs::set_vertex int  vertex,
float  x,
float  y,
float  z
[private]
 

INLINE void LineSegs::set_vertex int  vertex,
const Vertexf vert
[private]
 

INLINE void LineSegs::set_vertex_color int  vertex,
float  r,
float  g,
float  b,
float  a = 1.0f
[private]
 

INLINE void LineSegs::set_vertex_color int  vertex,
const Colorf color
[private]
 

Referenced by NurbsCurveDrawer::hilight(), and NurbsCurveDrawer::unhilight().


Member Data Documentation

PUBLISHED LineSegs::__pad0__ [private]
 

Reimplemented from Namable.

Definition at line 44 of file lineSegs.h.

Colorf LineSegs::_color [private]
 

Definition at line 91 of file lineSegs.h.

Referenced by draw_to(), and move_to().

PTA_Colorf LineSegs::_created_colors [private]
 

Definition at line 95 of file lineSegs.h.

Referenced by create().

PTA_Vertexf LineSegs::_created_verts [private]
 

Definition at line 94 of file lineSegs.h.

Referenced by create().

LineList LineSegs::_list [private]
 

Definition at line 90 of file lineSegs.h.

Referenced by create(), draw_to(), get_current_position(), is_empty(), move_to(), and reset().

float LineSegs::_thick [private]
 

Definition at line 92 of file lineSegs.h.

Referenced by create().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:41 2003 for Panda by doxygen1.3