#include <nurbsPPCurve.h>
Inheritance diagram for NurbsPPCurve:
Public Member Functions | |
NurbsPPCurve (int order, int num_cvs, const float knots[], const LVecBase4f cvs[]) | |
virtual float | get_max_t () const |
virtual void | set_order (int order) |
virtual int | get_order () const |
virtual int | get_num_cvs () const |
virtual int | get_num_knots () const |
virtual bool | insert_cv (float t) |
virtual bool | remove_cv (int n) |
virtual void | remove_all_cvs () |
virtual bool | set_cv (int n, const LVecBase4f &v) |
virtual LVecBase4f | get_cv (int n) const |
virtual bool | set_knot (int n, float t) |
virtual float | get_knot (int n) const |
virtual bool | recompute () |
virtual bool | get_point (float t, LVecBase3f &point) const |
virtual bool | get_tangent (float t, LVecBase3f &tangent) const |
virtual bool | get_pt (float t, LVecBase3f &point, LVecBase3f &tangent) const |
virtual bool | get_2ndtangent (float t, LVecBase3f &tangent2) const |
virtual bool | stitch (const ParametricCurve *a, const ParametricCurve *b) |
virtual NurbsCurveInterface * | get_nurbs_interface () |
virtual bool | convert_to_nurbs (ParametricCurve *nc) const |
virtual void | write (ostream &out, int indent_level=0) const |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad1__: virtual ~NurbsPPCurve() |
Protected Member Functions | |
virtual int | append_cv_impl (const LVecBase4f &v) |
virtual bool | format_egg (ostream &out, const string &name, const string &curve_type, int indent_level) const |
Private Types | |
typedef pvector< LVecBase4f > | Points |
typedef pvector< float > | Knots |
Private Member Functions | |
NurbsPPCurve (const ParametricCurve &pc) | |
bool | make_nurbs_valid () |
void | make_arrays_valid () |
bool | copy_nurbs (PLib::NurbsCurvef &nurbs) const |
void | copy_arrays (Points &points, Knots &knots, int &order) const |
Static Private Member Functions | |
bool | make_nurbs_from (PLib::NurbsCurvef &nurbs, const Points &points, const Knots &knots, int order) |
void | make_arrays_from (const PLib::NurbsCurvef &nurbs, Points &points, Knots &knots, int &order) |
Private Attributes | |
PUBLISHED | __pad0__: NurbsPPCurve() |
PLib::NurbsCurvef | _nurbs |
int | _order |
Points | _points |
Knots | _knots |
bool | _nurbs_valid |
Static Private Attributes | |
TypeHandle | _type_handle |
|
Definition at line 94 of file nurbsPPCurve.h. Referenced by NurbsPPCurve(), and stitch(). |
|
Definition at line 93 of file nurbsPPCurve.h. Referenced by NurbsPPCurve(), and stitch(). |
|
Definition at line 46 of file nurbsPPCurve.cxx. References _nurbs_valid, _order, and ParametricCurve::convert_to_nurbs(). Referenced by stitch(). |
|
Definition at line 63 of file nurbsPPCurve.cxx. References _knots, _nurbs_valid, _order, _points, Knots, and Points. |
|
Implements NurbsCurveInterface. Definition at line 535 of file nurbsPPCurve.cxx. References _knots, _order, _points, and make_arrays_valid(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 512 of file nurbsPPCurve.cxx. References ParametricCurve::_curve_type, NurbsCurveInterface::convert_to_nurbs(), and ParametricCurve::set_curve_type(). |
|
Definition at line 628 of file nurbsPPCurve.cxx. References _knots, _nurbs, _order, _points, make_arrays_from(), and points. |
|
Definition at line 613 of file nurbsPPCurve.cxx. References _knots, _nurbs, _order, _points, and make_nurbs_from(). |
|
Reimplemented from ParametricCurve. Definition at line 128 of file nurbsPPCurve.h. References NurbsCurveInterface::get_class_type(), and NurbsCurveInterface::init_type(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 560 of file nurbsPPCurve.cxx. References NurbsCurveInterface::format_egg(). |
|
Implements ParametricCurve. Definition at line 407 of file nurbsPPCurve.cxx. References _nurbs, _nurbs_valid, get_max_t(), p, and t. |
|
Reimplemented from NurbsCurveInterface. Definition at line 115 of file nurbsPPCurve.h. |
|
Implements NurbsCurveInterface. Definition at line 248 of file nurbsPPCurve.cxx. References _nurbs, _points, get_num_cvs(), n, and p. |
|
Implements NurbsCurveInterface. Definition at line 281 of file nurbsPPCurve.cxx. References _knots, _nurbs, get_num_knots(), and n. |
|
Reimplemented from ParametricCurve. Definition at line 89 of file nurbsPPCurve.cxx. References _knots, and _nurbs. Referenced by get_2ndtangent(), get_point(), get_pt(), and get_tangent(). |
|
Implements NurbsCurveInterface. Definition at line 138 of file nurbsPPCurve.cxx. |
|
Implements NurbsCurveInterface. Definition at line 152 of file nurbsPPCurve.cxx. References _knots, and _nurbs. Referenced by get_knot(), and set_knot(). |
|
Reimplemented from ParametricCurve. Definition at line 500 of file nurbsPPCurve.cxx. |
|
Implements NurbsCurveInterface. Definition at line 123 of file nurbsPPCurve.cxx. |
|
Implements ParametricCurve. Definition at line 317 of file nurbsPPCurve.cxx. References _nurbs, _nurbs_valid, get_max_t(), p, and t. |
|
Implements ParametricCurve. Definition at line 374 of file nurbsPPCurve.cxx. References _nurbs, _nurbs_valid, get_max_t(), p, and t. |
|
Implements ParametricCurve. Definition at line 347 of file nurbsPPCurve.cxx. References _nurbs, _nurbs_valid, get_max_t(), p, and t. |
|
Reimplemented from ParametricCurve. Definition at line 125 of file nurbsPPCurve.h. References NurbsCurveInterface::get_class_type(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 118 of file nurbsPPCurve.h. References NurbsCurveInterface::get_class_type(), ParametricCurve::get_class_type(), NurbsCurveInterface::init_type(), ParametricCurve::init_type(), and register_type(). Referenced by ConfigureFn(). |
|
Implements NurbsCurveInterface. Definition at line 172 of file nurbsPPCurve.cxx. References _nurbs, make_nurbs_valid(), and t. |
|
Definition at line 681 of file nurbsPPCurve.cxx. Referenced by copy_arrays(), and make_arrays_valid(). |
|
Definition at line 595 of file nurbsPPCurve.cxx. References _knots, _nurbs, _nurbs_valid, _order, _points, and make_arrays_from(). Referenced by append_cv_impl(), and set_knot(). |
|
Definition at line 646 of file nurbsPPCurve.cxx. Referenced by copy_nurbs(), make_nurbs_valid(), and stitch(). |
|
Definition at line 573 of file nurbsPPCurve.cxx. References _knots, _nurbs, _nurbs_valid, _order, _points, and make_nurbs_from(). Referenced by insert_cv(), and recompute(). |
|
Reimplemented from ParametricCurve. Definition at line 303 of file nurbsPPCurve.cxx. References make_nurbs_valid(). |
|
Implements NurbsCurveInterface. Definition at line 216 of file nurbsPPCurve.cxx. References _knots, _nurbs_valid, and _points. |
|
Implements NurbsCurveInterface. Definition at line 191 of file nurbsPPCurve.cxx. |
|
Implements NurbsCurveInterface. Definition at line 230 of file nurbsPPCurve.cxx. References _nurbs, _points, get_num_cvs(), n, and v. |
|
Implements NurbsCurveInterface. Definition at line 265 of file nurbsPPCurve.cxx. References _knots, get_num_knots(), make_arrays_valid(), n, and t. |
|
Definition at line 109 of file nurbsPPCurve.cxx. References _nurbs_valid, _order, and _points. |
|
Reimplemented from ParametricCurve. Definition at line 438 of file nurbsPPCurve.cxx. References _nurbs, _nurbs_valid, a, b, Knots, make_nurbs_from(), NurbsPPCurve(), Points, and PandaNode::PT(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 523 of file nurbsPPCurve.cxx. References NurbsCurveInterface::write(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 43 of file nurbsPPCurve.h. |
|
Reimplemented from ParametricCurve. Definition at line 49 of file nurbsPPCurve.h. |
|
Definition at line 111 of file nurbsPPCurve.h. Referenced by append_cv_impl(), copy_arrays(), copy_nurbs(), get_knot(), get_max_t(), get_num_knots(), make_arrays_valid(), make_nurbs_valid(), NurbsPPCurve(), remove_all_cvs(), remove_cv(), and set_knot(). |
|
Definition at line 107 of file nurbsPPCurve.h. Referenced by copy_arrays(), copy_nurbs(), get_2ndtangent(), get_cv(), get_knot(), get_max_t(), get_num_cvs(), get_num_knots(), get_order(), get_point(), get_pt(), get_tangent(), insert_cv(), make_arrays_valid(), make_nurbs_valid(), remove_cv(), set_cv(), and stitch(). |
|
Definition at line 112 of file nurbsPPCurve.h. Referenced by get_2ndtangent(), get_point(), get_pt(), get_tangent(), make_arrays_valid(), make_nurbs_valid(), NurbsPPCurve(), remove_all_cvs(), set_order(), and stitch(). |
|
Definition at line 109 of file nurbsPPCurve.h. Referenced by append_cv_impl(), copy_arrays(), copy_nurbs(), get_order(), make_arrays_valid(), make_nurbs_valid(), NurbsPPCurve(), remove_cv(), and set_order(). |
|
Definition at line 110 of file nurbsPPCurve.h. Referenced by append_cv_impl(), copy_arrays(), copy_nurbs(), get_cv(), get_num_cvs(), make_arrays_valid(), make_nurbs_valid(), NurbsPPCurve(), remove_all_cvs(), remove_cv(), set_cv(), and set_order(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 25 of file nurbsPPCurve.cxx. |