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

NurbsCurveEvaluator Class Reference

#include <nurbsCurveEvaluator.h>

Inheritance diagram for NurbsCurveEvaluator:

ReferenceCount List of all members.

Public Member Functions

void get_vertices (pvector< LVecBase4f > &verts, const NodePath &rel_to) const
void get_vertices (pvector< LPoint3f > &verts, const NodePath &rel_to) const

Private Types

typedef pvector< NurbsVertexVertices
typedef vector_float Knots

Private Member Functions

 ~NurbsCurveEvaluator ()
INLINE void set_order (int order)
INLINE int get_order () const
void reset (int num_vertices)
INLINE int get_num_vertices () const
INLINE void set_vertex (int i, const LVecBase4f &vertex)
INLINE void set_vertex (int i, const LVecBase3f &vertex, float weight=1.0)
INLINE const LVecBase4f & get_vertex (int i) const
INLINE void set_vertex_space (int i, const NodePath &space)
INLINE void set_vertex_space (int i, const string &space)
NodePath get_vertex_space (int i, const NodePath &rel_to) const
INLINE int get_num_knots () const
void set_knot (int i, float knot)
float get_knot (int i) const
 PT (NurbsCurveResult) evaluate(const NodePath &rel_to=NodePath()) const
void recompute_knots ()
void recompute_basis ()

Private Attributes

PUBLISHED __pad0__: NurbsCurveEvaluator()
int _order
Vertices _vertices
bool _knots_dirty
Knots _knots
bool _basis_dirty
NurbsMatrixVector _basis

Member Typedef Documentation

typedef vector_float NurbsCurveEvaluator::Knots [private]
 

Definition at line 87 of file nurbsCurveEvaluator.h.

typedef pvector<NurbsVertex> NurbsCurveEvaluator::Vertices [private]
 

Definition at line 83 of file nurbsCurveEvaluator.h.


Constructor & Destructor Documentation

NurbsCurveEvaluator::~NurbsCurveEvaluator  )  [private]
 

Definition at line 39 of file nurbsCurveEvaluator.cxx.


Member Function Documentation

float NurbsCurveEvaluator::get_knot int  i  )  const [private]
 

Definition at line 101 of file nurbsCurveEvaluator.cxx.

References _knots.

INLINE int NurbsCurveEvaluator::get_num_knots  )  const [private]
 

Referenced by recompute_knots().

INLINE int NurbsCurveEvaluator::get_num_vertices  )  const [private]
 

INLINE int NurbsCurveEvaluator::get_order  )  const [private]
 

INLINE const LVecBase4f& NurbsCurveEvaluator::get_vertex int  i  )  const [private]
 

NodePath NurbsCurveEvaluator::get_vertex_space int  i,
const NodePath rel_to
const [private]
 

Definition at line 70 of file nurbsCurveEvaluator.cxx.

References _vertices.

void NurbsCurveEvaluator::get_vertices pvector< LPoint3f > &  verts,
const NodePath rel_to
const
 

Definition at line 166 of file nurbsCurveEvaluator.cxx.

References _vertices, NodePath::get_mat(), and NodePath::is_empty().

void NurbsCurveEvaluator::get_vertices pvector< LVecBase4f > &  verts,
const NodePath rel_to
const
 

Definition at line 141 of file nurbsCurveEvaluator.cxx.

References _vertices, NodePath::get_mat(), and NodePath::is_empty().

Referenced by RopeNode::do_recompute_bound().

NurbsCurveEvaluator::PT NurbsCurveResult   )  const [private]
 

void NurbsCurveEvaluator::recompute_basis  )  [private]
 

Definition at line 221 of file nurbsCurveEvaluator.cxx.

References _basis, _basis_dirty, _knots, _order, _vertices, NurbsMatrixVector::append_segment(), and NurbsMatrixVector::clear().

void NurbsCurveEvaluator::recompute_knots  )  [private]
 

Definition at line 188 of file nurbsCurveEvaluator.cxx.

References _knots, _knots_dirty, _order, and get_num_knots().

Referenced by set_knot().

void NurbsCurveEvaluator::reset int  num_vertices  )  [private]
 

Definition at line 52 of file nurbsCurveEvaluator.cxx.

References _basis_dirty, _knots_dirty, and _vertices.

void NurbsCurveEvaluator::set_knot int  i,
float  knot
[private]
 

Definition at line 87 of file nurbsCurveEvaluator.cxx.

References _knots, and recompute_knots().

INLINE void NurbsCurveEvaluator::set_order int  order  )  [private]
 

INLINE void NurbsCurveEvaluator::set_vertex int  i,
const LVecBase3f &  vertex,
float  weight = 1.0
[private]
 

INLINE void NurbsCurveEvaluator::set_vertex int  i,
const LVecBase4f &  vertex
[private]
 

INLINE void NurbsCurveEvaluator::set_vertex_space int  i,
const string &  space
[private]
 

INLINE void NurbsCurveEvaluator::set_vertex_space int  i,
const NodePath space
[private]
 


Member Data Documentation

PUBLISHED NurbsCurveEvaluator::__pad0__ [private]
 

Reimplemented from ReferenceCount.

Definition at line 50 of file nurbsCurveEvaluator.h.

NurbsMatrixVector NurbsCurveEvaluator::_basis [private]
 

Definition at line 91 of file nurbsCurveEvaluator.h.

Referenced by recompute_basis().

bool NurbsCurveEvaluator::_basis_dirty [private]
 

Definition at line 90 of file nurbsCurveEvaluator.h.

Referenced by recompute_basis(), and reset().

Knots NurbsCurveEvaluator::_knots [private]
 

Definition at line 88 of file nurbsCurveEvaluator.h.

Referenced by get_knot(), recompute_basis(), recompute_knots(), and set_knot().

bool NurbsCurveEvaluator::_knots_dirty [private]
 

Definition at line 86 of file nurbsCurveEvaluator.h.

Referenced by recompute_knots(), and reset().

int NurbsCurveEvaluator::_order [private]
 

Definition at line 81 of file nurbsCurveEvaluator.h.

Referenced by recompute_basis(), and recompute_knots().

Vertices NurbsCurveEvaluator::_vertices [private]
 

Definition at line 84 of file nurbsCurveEvaluator.h.

Referenced by get_vertex_space(), get_vertices(), recompute_basis(), and reset().


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