#include <classicNurbsCurve.h>
Inheritance diagram for ClassicNurbsCurve:
Public Member Functions | |
ClassicNurbsCurve (int order, int num_cvs, const float knots[], const LVecBase4f cvs[]) | |
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 | rebuild_curveseg (int rtype0, float t0, const LVecBase4f &v0, int rtype1, float t1, const LVecBase4f &v1, int rtype2, float t2, const LVecBase4f &v2, int rtype3, float t3, const LVecBase4f &v3) |
virtual bool | stitch (const ParametricCurve *a, const ParametricCurve *b) |
INLINE CubicCurveseg * | get_curveseg (int ti) |
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 | |
void | register_with_read_factory () |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad1__: virtual ~ClassicNurbsCurve() |
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 |
int | find_cv (float t) |
virtual void | write_datagram (BamWriter *manager, Datagram &me) |
void | fillin (DatagramIterator &scan, BamReader *manager) |
Static Protected Member Functions | |
TypedWritable * | make_ClassicNurbsCurve (const FactoryParams ¶ms) |
Protected Attributes | |
int | _order |
pvector< CV > | _cvs |
Private Member Functions | |
ClassicNurbsCurve (const ParametricCurve &pc) | |
Private Attributes | |
PUBLISHED | __pad0__: ClassicNurbsCurve() |
Static Private Attributes | |
TypeHandle | _type_handle |
TypeHandle | _orig_type_handle |
|
Definition at line 57 of file classicNurbsCurve.cxx. References _order, and ParametricCurve::convert_to_nurbs(). Referenced by stitch(). |
|
Definition at line 73 of file classicNurbsCurve.cxx. References _cvs, _order, NurbsCurveInterface::append_cv(), recompute(), and set_knot(). |
|
Implements NurbsCurveInterface. Definition at line 516 of file classicNurbsCurve.cxx. References _cvs, get_knot(), and v. |
|
Reimplemented from NurbsCurveInterface. Definition at line 493 of file classicNurbsCurve.cxx. References ParametricCurve::_curve_type, NurbsCurveInterface::convert_to_nurbs(), and ParametricCurve::set_curve_type(). |
|
Reimplemented from PiecewiseCurve. Definition at line 610 of file classicNurbsCurve.cxx. References _cvs, _order, ClassicNurbsCurve::CV::_p, ClassicNurbsCurve::CV::_t, PiecewiseCurve::fillin(), DatagramIterator::get_float64(), DatagramIterator::get_int8(), and DatagramIterator::get_uint32(). Referenced by make_ClassicNurbsCurve(). |
|
Definition at line 541 of file classicNurbsCurve.cxx. References _cvs, _order, and t. Referenced by insert_cv(). |
|
Reimplemented from PiecewiseCurve. Definition at line 144 of file classicNurbsCurve.h. References NurbsCurveInterface::get_class_type(), and NurbsCurveInterface::init_type(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 529 of file classicNurbsCurve.cxx. References NurbsCurveInterface::format_egg(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 128 of file classicNurbsCurve.h. Referenced by register_with_read_factory(). |
|
Reimplemented from PiecewiseCurve. |
|
Implements NurbsCurveInterface. Definition at line 257 of file classicNurbsCurve.cxx. References _cvs, get_num_cvs(), and n. |
|
Implements NurbsCurveInterface. Definition at line 290 of file classicNurbsCurve.cxx. References _cvs, _order, and n. Referenced by append_cv_impl(), insert_cv(), rebuild_curveseg(), and recompute(). |
|
Implements NurbsCurveInterface. Definition at line 131 of file classicNurbsCurve.cxx. References _cvs. |
|
Implements NurbsCurveInterface. Definition at line 141 of file classicNurbsCurve.cxx. Referenced by set_knot(). |
|
Reimplemented from ParametricCurve. Definition at line 481 of file classicNurbsCurve.cxx. |
|
Implements NurbsCurveInterface. Definition at line 121 of file classicNurbsCurve.cxx. References _order. |
|
Reimplemented from PiecewiseCurve. Definition at line 141 of file classicNurbsCurve.h. References NurbsCurveInterface::get_class_type(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 131 of file classicNurbsCurve.h. References NurbsCurveInterface::get_class_type(), PiecewiseCurve::get_class_type(), NurbsCurveInterface::init_type(), PiecewiseCurve::init_type(), and register_type(). Referenced by ConfigureFn(). |
|
Implements NurbsCurveInterface. Definition at line 158 of file classicNurbsCurve.cxx. References _cvs, _order, a, NurbsCurveInterface::append_cv(), find_cv(), get_knot(), and t. |
|
Definition at line 570 of file classicNurbsCurve.cxx. References fillin(), params, and parse_params(). Referenced by register_with_read_factory(). |
|
Reimplemented from PiecewiseCurve. Definition at line 351 of file classicNurbsCurve.cxx. References _cvs, PiecewiseCurve::_last_ti, _order, c, compute_nurbs_basis(), CubicCurveseg::compute_seg(), get_knot(), invert, RT_KEEP_ORIG, and s. |
|
Reimplemented from ParametricCurve. Definition at line 312 of file classicNurbsCurve.cxx. References _cvs, _order, PiecewiseCurve::_segs, c, get_knot(), and PiecewiseCurve::insert_curveseg(). Referenced by ClassicNurbsCurve(), and stitch(). |
|
Reimplemented from PandaNode. Definition at line 559 of file classicNurbsCurve.cxx. References _orig_type_handle, get_class_type(), BamReader::get_factory(), make_ClassicNurbsCurve(), and Factory< TypedWritable >::register_factory(). Referenced by ConfigureFn(). |
|
Implements NurbsCurveInterface. Definition at line 231 of file classicNurbsCurve.cxx. References _cvs. |
|
Implements NurbsCurveInterface. Definition at line 216 of file classicNurbsCurve.cxx. |
|
Implements NurbsCurveInterface. Definition at line 243 of file classicNurbsCurve.cxx. References _cvs, get_num_cvs(), n, and v. |
|
Implements NurbsCurveInterface. Definition at line 274 of file classicNurbsCurve.cxx. References _cvs, _order, get_num_knots(), n, and t. Referenced by ClassicNurbsCurve(). |
|
Definition at line 108 of file classicNurbsCurve.cxx. |
|
Reimplemented from ParametricCurve. Definition at line 426 of file classicNurbsCurve.cxx. References _cvs, ClassicNurbsCurve::CV::_t, a, b, ClassicNurbsCurve(), PandaNode::PT(), recompute(), and t. |
|
Reimplemented from NurbsCurveInterface. Definition at line 504 of file classicNurbsCurve.cxx. References NurbsCurveInterface::write(). |
|
Reimplemented from PiecewiseCurve. Definition at line 587 of file classicNurbsCurve.cxx. References _cvs, _order, ClassicNurbsCurve::CV::_p, ClassicNurbsCurve::CV::_t, Datagram::add_float64(), Datagram::add_int8(), Datagram::add_uint32(), and PiecewiseCurve::write_datagram(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 53 of file classicNurbsCurve.h. |
|
Reimplemented from ParametricCurve. Definition at line 59 of file classicNurbsCurve.h. |
|
Definition at line 115 of file classicNurbsCurve.h. Referenced by append_cv_impl(), ClassicNurbsCurve(), fillin(), find_cv(), get_cv(), get_knot(), get_num_cvs(), get_num_knots(), insert_cv(), rebuild_curveseg(), recompute(), remove_all_cvs(), remove_cv(), set_cv(), set_knot(), set_order(), stitch(), and write_datagram(). |
|
Definition at line 105 of file classicNurbsCurve.h. Referenced by ClassicNurbsCurve(), fillin(), find_cv(), get_knot(), get_num_knots(), get_order(), insert_cv(), rebuild_curveseg(), recompute(), set_knot(), set_order(), and write_datagram(). |
|
Definition at line 33 of file classicNurbsCurve.cxx. Referenced by register_with_read_factory(). |
|
Reimplemented from NurbsCurveInterface. Definition at line 32 of file classicNurbsCurve.cxx. |