Classes |
| class | DataPoint |
Public Types |
|
typedef pvector< DataPoint > | Data |
Public Member Functions |
| void | add_hpr (float t, const LVecBase3f &hpr) |
| | Adds a single sample hpr.
|
| void | add_xyz (float t, const LVecBase3f &xyz) |
| | Adds a single sample xyz.
|
| void | add_xyz_hpr (float t, const LVecBase3f &xyz, const LVecBase3f &hpr) |
| | Adds a single sample xyz & hpr simultaneously.
|
| void | compute_tangents (float scale) |
| | Once a set of points has been built, and prior to calling MakeHermite() or MakeNurbs(), ComputeTangents() must be called to set up the tangents correctly (unless the tangents were defined as the points were added).
|
| void | desample (float factor) |
| | Removes sample points in order to reduce the complexity of a sampled curve.
|
| int | get_num_samples () const |
| | Returns the number of sample points that have been added.
|
| LVecBase3f | get_sample_hpr (int n) const |
| | Returns the orientation of the nth sample added.
|
| float | get_sample_t (int n) const |
| | Returns the parametric value of the nth sample added.
|
| LVecBase3f | get_sample_tangent (int n) const |
| | Returns the tangent associated with the nth sample added.
|
| LVecBase3f | get_sample_xyz (int n) const |
| | Returns the point in space of the nth sample added.
|
|
void | output (ostream &out) const |
|
| PT (ParametricCurveCollection) make_nurbs() const |
|
| PT (ParametricCurveCollection) make_hermite() const |
| void | remove_samples (int begin, int end) |
| | Eliminates all samples from index begin, up to but not including index end, from the database.
|
| void | reset () |
| | Removes all the data points previously added to the CurveFitter, and initializes it for a new curve.
|
| void | sample (ParametricCurveCollection *curves, int count) |
| | Generates a series of data points by sampling the given curve (or xyz/hpr curves) the indicated number of times.
|
| void | sort_points () |
| | Sorts all the data points in order by parametric time, in case they were added in an incorrect order.
|
| void | wrap_hpr () |
| | Resets each HPR data point so that the maximum delta between any two consecutive points is 180 degrees, which should prevent incorrect HPR wrapping.
|
|
void | write (ostream &out) const |
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
Public Attributes |
|
Data | _data |
|
bool | _got_hpr |
|
bool | _got_xyz |
Definition at line 35 of file curveFitter.h.