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

NurbsCurveDrawer Class Reference

#include <nurbsCurveDrawer.h>

Inheritance diagram for NurbsCurveDrawer:

ParametricCurveDrawer TypedObject List of all members.

Public Member Functions

virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Attributes

LVecBase3f _cv_color
LVecBase3f _hull_color
LVecBase3f _knot_color
int _num_cvs
int _num_hull
int _num_knots
LineSegs _hull
LineSegs _knots
LineSegs _cvs
pvector< int > _knotnums
bool _show_cvs
bool _show_hull
bool _show_knots

Private Member Functions

virtual ~NurbsCurveDrawer ()
void set_cv_color (float r, float g, float b)
void set_hull_color (float r, float g, float b)
void set_knot_color (float r, float g, float b)
virtual bool draw ()
virtual bool recompute (float t1, float t2, ParametricCurve *curve=NULL)
void set_show_cvs (bool flag)
bool get_show_cvs () const
void set_show_hull (bool flag)
bool get_show_hull () const
void set_show_knots (bool flag)
bool get_show_knots () const
INLINE bool hilight (int n)
bool hilight (int n, float hr, float hg, float hb)
bool unhilight (int n)

Private Attributes

PUBLISHED __pad0__: NurbsCurveDrawer()

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

NurbsCurveDrawer::~NurbsCurveDrawer  )  [private, virtual]
 

Definition at line 54 of file nurbsCurveDrawer.cxx.


Member Function Documentation

bool NurbsCurveDrawer::draw  )  [private, virtual]
 

Reimplemented from ParametricCurveDrawer.

Definition at line 106 of file nurbsCurveDrawer.cxx.

References _cvs, ParametricCurveDrawer::_frame_accurate, _hull, _knotnums, _knots, _num_cvs, LineSegs::create(), ParametricCurveDrawer::draw(), LineSegs::draw_to(), NurbsCurveInterface::get_cv_point(), NurbsCurveInterface::get_knot(), NurbsCurveInterface::get_num_cvs(), ParametricCurve::get_nurbs_interface(), ParametricCurve::get_point(), LineSegs::move_to(), NULL, and t.

Referenced by recompute().

virtual TypeHandle NurbsCurveDrawer::force_init_type void   )  [inline, virtual]
 

Reimplemented from ParametricCurveDrawer.

Definition at line 77 of file nurbsCurveDrawer.h.

References ParametricCurveDrawer::get_class_type(), and ParametricCurveDrawer::init_type().

TypeHandle NurbsCurveDrawer::get_class_type void   )  [inline, static]
 

Reimplemented from ParametricCurveDrawer.

Definition at line 66 of file nurbsCurveDrawer.h.

bool NurbsCurveDrawer::get_show_cvs  )  const [private]
 

Definition at line 201 of file nurbsCurveDrawer.cxx.

References _show_cvs.

bool NurbsCurveDrawer::get_show_hull  )  const [private]
 

Definition at line 222 of file nurbsCurveDrawer.cxx.

References _show_hull.

bool NurbsCurveDrawer::get_show_knots  )  const [private]
 

Definition at line 243 of file nurbsCurveDrawer.cxx.

References _show_knots.

virtual TypeHandle NurbsCurveDrawer::get_type void   )  const [inline, virtual]
 

Reimplemented from ParametricCurveDrawer.

Definition at line 74 of file nurbsCurveDrawer.h.

References ParametricCurveDrawer::get_class_type().

bool NurbsCurveDrawer::hilight int  n,
float  hr,
float  hg,
float  hb
[private]
 

Definition at line 256 of file nurbsCurveDrawer.cxx.

References _cvs, _knotnums, _knots, LineSegs::get_num_vertices(), n, and LineSegs::set_vertex_color().

INLINE bool NurbsCurveDrawer::hilight int  n  )  [private]
 

void NurbsCurveDrawer::init_type void   )  [inline, static]
 

Reimplemented from ParametricCurveDrawer.

Definition at line 69 of file nurbsCurveDrawer.h.

References ParametricCurveDrawer::get_class_type(), ParametricCurveDrawer::init_type(), and register_type().

Referenced by ConfigureFn().

bool NurbsCurveDrawer::recompute float  t1,
float  t2,
ParametricCurve curve = NULL
[private, virtual]
 

Definition at line 179 of file nurbsCurveDrawer.cxx.

References draw().

void NurbsCurveDrawer::set_cv_color float  r,
float  g,
float  b
[private]
 

Definition at line 65 of file nurbsCurveDrawer.cxx.

References _cv_color, _cvs, b, g, r, ParametricCurveDrawer::redraw(), and LineSegs::set_color().

void NurbsCurveDrawer::set_hull_color float  r,
float  g,
float  b
[private]
 

Definition at line 91 of file nurbsCurveDrawer.cxx.

References _hull, _hull_color, b, g, r, ParametricCurveDrawer::redraw(), and LineSegs::set_color().

void NurbsCurveDrawer::set_knot_color float  r,
float  g,
float  b
[private]
 

Definition at line 78 of file nurbsCurveDrawer.cxx.

References _knot_color, _knots, b, g, r, ParametricCurveDrawer::redraw(), and LineSegs::set_color().

void NurbsCurveDrawer::set_show_cvs bool  flag  )  [private]
 

Definition at line 190 of file nurbsCurveDrawer.cxx.

References _show_cvs, and ParametricCurveDrawer::redraw().

void NurbsCurveDrawer::set_show_hull bool  flag  )  [private]
 

Definition at line 211 of file nurbsCurveDrawer.cxx.

References _show_hull, and ParametricCurveDrawer::redraw().

void NurbsCurveDrawer::set_show_knots bool  flag  )  [private]
 

Definition at line 232 of file nurbsCurveDrawer.cxx.

References _show_knots, and ParametricCurveDrawer::redraw().

bool NurbsCurveDrawer::unhilight int  n  )  [private]
 

Definition at line 280 of file nurbsCurveDrawer.cxx.

References _cv_color, _cvs, _knot_color, _knotnums, _knots, LineSegs::get_num_vertices(), n, and LineSegs::set_vertex_color().


Member Data Documentation

PUBLISHED NurbsCurveDrawer::__pad0__ [private]
 

Reimplemented from ParametricCurveDrawer.

Definition at line 35 of file nurbsCurveDrawer.h.

LVecBase3f NurbsCurveDrawer::_cv_color [protected]
 

Definition at line 57 of file nurbsCurveDrawer.h.

Referenced by set_cv_color(), and unhilight().

LineSegs NurbsCurveDrawer::_cvs [protected]
 

Definition at line 59 of file nurbsCurveDrawer.h.

Referenced by draw(), hilight(), set_cv_color(), and unhilight().

LineSegs NurbsCurveDrawer::_hull [protected]
 

Definition at line 59 of file nurbsCurveDrawer.h.

Referenced by draw(), and set_hull_color().

LVecBase3f NurbsCurveDrawer::_hull_color [protected]
 

Definition at line 57 of file nurbsCurveDrawer.h.

Referenced by set_hull_color().

LVecBase3f NurbsCurveDrawer::_knot_color [protected]
 

Definition at line 57 of file nurbsCurveDrawer.h.

Referenced by set_knot_color(), and unhilight().

pvector<int> NurbsCurveDrawer::_knotnums [protected]
 

Definition at line 60 of file nurbsCurveDrawer.h.

Referenced by draw(), hilight(), and unhilight().

LineSegs NurbsCurveDrawer::_knots [protected]
 

Definition at line 59 of file nurbsCurveDrawer.h.

Referenced by draw(), hilight(), set_knot_color(), and unhilight().

int NurbsCurveDrawer::_num_cvs [protected]
 

Definition at line 58 of file nurbsCurveDrawer.h.

Referenced by draw().

int NurbsCurveDrawer::_num_hull [protected]
 

Definition at line 58 of file nurbsCurveDrawer.h.

int NurbsCurveDrawer::_num_knots [protected]
 

Definition at line 58 of file nurbsCurveDrawer.h.

bool NurbsCurveDrawer::_show_cvs [protected]
 

Definition at line 62 of file nurbsCurveDrawer.h.

Referenced by get_show_cvs(), and set_show_cvs().

bool NurbsCurveDrawer::_show_hull [protected]
 

Definition at line 62 of file nurbsCurveDrawer.h.

Referenced by get_show_hull(), and set_show_hull().

bool NurbsCurveDrawer::_show_knots [protected]
 

Definition at line 62 of file nurbsCurveDrawer.h.

Referenced by get_show_knots(), and set_show_knots().

TypeHandle NurbsCurveDrawer::_type_handle [static, private]
 

Reimplemented from ParametricCurveDrawer.

Definition at line 24 of file nurbsCurveDrawer.cxx.


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