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

CurveFitter Class Reference

#include <curveFitter.h>

List of all members.

Public Types

typedef pvector< DataPointData

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Public Attributes

Data _data
bool _got_xyz
bool _got_hpr

Private Member Functions

 ~CurveFitter ()
void reset ()
void add_xyz (float t, const LVecBase3f &xyz)
void add_hpr (float t, const LVecBase3f &hpr)
void add_xyz_hpr (float t, const LVecBase3f &xyz, const LVecBase3f &hpr)
int get_num_samples () const
float get_sample_t (int n) const
LVecBase3f get_sample_xyz (int n) const
LVecBase3f get_sample_hpr (int n) const
LVecBase3f get_sample_tangent (int n) const
void remove_samples (int begin, int end)
void sample (ParametricCurveCollection *curves, int count)
void wrap_hpr ()
void sort_points ()
void desample (float factor)
void compute_tangents (float scale)
 PT (ParametricCurveCollection) make_hermite() const
 PT (ParametricCurveCollection) make_nurbs() const
void output (ostream &out) const
void write (ostream &out) const

Private Attributes

PUBLISHED __pad0__: CurveFitter()

Static Private Attributes

TypeHandle _type_handle


Member Typedef Documentation

typedef pvector<DataPoint> CurveFitter::Data
 

Definition at line 82 of file curveFitter.h.


Constructor & Destructor Documentation

CurveFitter::~CurveFitter  )  [private]
 

Definition at line 48 of file curveFitter.cxx.


Member Function Documentation

void CurveFitter::add_hpr float  t,
const LVecBase3f &  hpr
[private]
 

Definition at line 82 of file curveFitter.cxx.

References _data, _got_hpr, CurveFitter::DataPoint::_hpr, CurveFitter::DataPoint::_t, and t.

Referenced by ParametricCurveCollection::face_forward().

void CurveFitter::add_xyz float  t,
const LVecBase3f &  xyz
[private]
 

Definition at line 68 of file curveFitter.cxx.

References _data, _got_xyz, CurveFitter::DataPoint::_t, CurveFitter::DataPoint::_xyz, and t.

Referenced by ParametricCurveCollection::make_even().

void CurveFitter::add_xyz_hpr float  t,
const LVecBase3f &  xyz,
const LVecBase3f &  hpr
[private]
 

Definition at line 96 of file curveFitter.cxx.

References _data, _got_hpr, _got_xyz, CurveFitter::DataPoint::_hpr, CurveFitter::DataPoint::_t, CurveFitter::DataPoint::_xyz, and t.

void CurveFitter::compute_tangents float  scale  )  [private]
 

Definition at line 298 of file curveFitter.cxx.

References _data, len, and scale.

Referenced by ParametricCurveCollection::face_forward(), and ParametricCurveCollection::make_even().

void CurveFitter::desample float  factor  )  [private]
 

Definition at line 268 of file curveFitter.cxx.

References _data, and count.

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

Definition at line 89 of file curveFitter.h.

References _type_handle.

int CurveFitter::get_num_samples  )  const [private]
 

Definition at line 113 of file curveFitter.cxx.

References _data.

LVecBase3f CurveFitter::get_sample_hpr int  n  )  const [private]
 

Definition at line 145 of file curveFitter.cxx.

References _data, n, and zero.

float CurveFitter::get_sample_t int  n  )  const [private]
 

Definition at line 123 of file curveFitter.cxx.

References _data, and n.

LVecBase3f CurveFitter::get_sample_tangent int  n  )  const [private]
 

Definition at line 158 of file curveFitter.cxx.

References _data, n, and zero.

LVecBase3f CurveFitter::get_sample_xyz int  n  )  const [private]
 

Definition at line 134 of file curveFitter.cxx.

References _data, n, and zero.

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

Definition at line 92 of file curveFitter.h.

References _type_handle, and register_type().

Referenced by ConfigureFn().

void CurveFitter::output ostream &  out  )  const [private]
 

Definition at line 470 of file curveFitter.cxx.

References _data.

Referenced by operator<<().

CurveFitter::PT ParametricCurveCollection   )  const [private]
 

CurveFitter::PT ParametricCurveCollection   )  const [private]
 

void CurveFitter::remove_samples int  begin,
int  end
[private]
 

Definition at line 170 of file curveFitter.cxx.

References _data, and end.

void CurveFitter::reset  )  [private]
 

Definition at line 58 of file curveFitter.cxx.

References _data.

void CurveFitter::sample ParametricCurveCollection curves,
int  count
[private]
 

Definition at line 188 of file curveFitter.cxx.

References _data, _got_hpr, _got_xyz, CurveFitter::DataPoint::_hpr, CurveFitter::DataPoint::_t, CurveFitter::DataPoint::_xyz, count, ParametricCurveCollection::evaluate(), ParametricCurveCollection::get_hpr_curve(), ParametricCurveCollection::get_max_t(), ParametricCurveCollection::get_xyz_curve(), NULL, and t.

void CurveFitter::sort_points  )  [private]
 

Definition at line 255 of file curveFitter.cxx.

References _data.

void CurveFitter::wrap_hpr  )  [private]
 

Definition at line 223 of file curveFitter.cxx.

References _data.

Referenced by ParametricCurveCollection::face_forward().

void CurveFitter::write ostream &  out  )  const [private]
 

Definition at line 480 of file curveFitter.cxx.

References _data.


Member Data Documentation

PUBLISHED CurveFitter::__pad0__ [private]
 

Definition at line 41 of file curveFitter.h.

Data CurveFitter::_data
 

Definition at line 83 of file curveFitter.h.

Referenced by add_hpr(), add_xyz(), add_xyz_hpr(), compute_tangents(), desample(), get_num_samples(), get_sample_hpr(), get_sample_t(), get_sample_tangent(), get_sample_xyz(), output(), remove_samples(), reset(), sample(), sort_points(), wrap_hpr(), and write().

bool CurveFitter::_got_hpr
 

Definition at line 86 of file curveFitter.h.

Referenced by add_hpr(), add_xyz_hpr(), and sample().

bool CurveFitter::_got_xyz
 

Definition at line 85 of file curveFitter.h.

Referenced by add_xyz(), add_xyz_hpr(), and sample().

TypeHandle CurveFitter::_type_handle [static, private]
 

Definition at line 29 of file curveFitter.cxx.

Referenced by get_class_type(), and init_type().


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