#include <nurbsCurveDrawer.h>
Inheritance diagram for NurbsCurveDrawer:
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 |
|
Definition at line 54 of file nurbsCurveDrawer.cxx. |
|
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(). |
|
Reimplemented from ParametricCurveDrawer. Definition at line 77 of file nurbsCurveDrawer.h. References ParametricCurveDrawer::get_class_type(), and ParametricCurveDrawer::init_type(). |
|
Reimplemented from ParametricCurveDrawer. Definition at line 66 of file nurbsCurveDrawer.h. |
|
Definition at line 201 of file nurbsCurveDrawer.cxx. References _show_cvs. |
|
Definition at line 222 of file nurbsCurveDrawer.cxx. References _show_hull. |
|
Definition at line 243 of file nurbsCurveDrawer.cxx. References _show_knots. |
|
Reimplemented from ParametricCurveDrawer. Definition at line 74 of file nurbsCurveDrawer.h. References ParametricCurveDrawer::get_class_type(). |
|
Definition at line 256 of file nurbsCurveDrawer.cxx. References _cvs, _knotnums, _knots, LineSegs::get_num_vertices(), n, and LineSegs::set_vertex_color(). |
|
|
|
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(). |
|
Definition at line 179 of file nurbsCurveDrawer.cxx. References draw(). |
|
Definition at line 65 of file nurbsCurveDrawer.cxx. References _cv_color, _cvs, b, g, r, ParametricCurveDrawer::redraw(), and LineSegs::set_color(). |
|
Definition at line 91 of file nurbsCurveDrawer.cxx. References _hull, _hull_color, b, g, r, ParametricCurveDrawer::redraw(), and LineSegs::set_color(). |
|
Definition at line 78 of file nurbsCurveDrawer.cxx. References _knot_color, _knots, b, g, r, ParametricCurveDrawer::redraw(), and LineSegs::set_color(). |
|
Definition at line 190 of file nurbsCurveDrawer.cxx. References _show_cvs, and ParametricCurveDrawer::redraw(). |
|
Definition at line 211 of file nurbsCurveDrawer.cxx. References _show_hull, and ParametricCurveDrawer::redraw(). |
|
Definition at line 232 of file nurbsCurveDrawer.cxx. References _show_knots, and ParametricCurveDrawer::redraw(). |
|
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(). |
|
Reimplemented from ParametricCurveDrawer. Definition at line 35 of file nurbsCurveDrawer.h. |
|
Definition at line 57 of file nurbsCurveDrawer.h. Referenced by set_cv_color(), and unhilight(). |
|
Definition at line 59 of file nurbsCurveDrawer.h. Referenced by draw(), hilight(), set_cv_color(), and unhilight(). |
|
Definition at line 59 of file nurbsCurveDrawer.h. Referenced by draw(), and set_hull_color(). |
|
Definition at line 57 of file nurbsCurveDrawer.h. Referenced by set_hull_color(). |
|
Definition at line 57 of file nurbsCurveDrawer.h. Referenced by set_knot_color(), and unhilight(). |
|
Definition at line 60 of file nurbsCurveDrawer.h. Referenced by draw(), hilight(), and unhilight(). |
|
Definition at line 59 of file nurbsCurveDrawer.h. Referenced by draw(), hilight(), set_knot_color(), and unhilight(). |
|
Definition at line 58 of file nurbsCurveDrawer.h. Referenced by draw(). |
|
Definition at line 58 of file nurbsCurveDrawer.h. |
|
Definition at line 58 of file nurbsCurveDrawer.h. |
|
Definition at line 62 of file nurbsCurveDrawer.h. Referenced by get_show_cvs(), and set_show_cvs(). |
|
Definition at line 62 of file nurbsCurveDrawer.h. Referenced by get_show_hull(), and set_show_hull(). |
|
Definition at line 62 of file nurbsCurveDrawer.h. Referenced by get_show_knots(), and set_show_knots(). |
|
Reimplemented from ParametricCurveDrawer. Definition at line 24 of file nurbsCurveDrawer.cxx. |