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

HermiteCurveCV Class Reference

A single CV of a Hermite curve. More...

#include <hermiteCurve.h>

List of all members.

Public Member Functions

 HermiteCurveCV ()
 HermiteCurveCV (const HermiteCurveCV &c)
 ~HermiteCurveCV ()
void set_point (const LVecBase3f &point)
void set_in (const LVecBase3f &in)
 Sets the CV's in tangent.

void set_out (const LVecBase3f &out)
 Sets the CV's out tangent.

void set_type (int type)
 Sets the continuity type of the CV.

void set_name (const string &name)
 Sets the name associated with the CV.

void format_egg (ostream &out, int indent, int num_dimensions, bool show_in, bool show_out, float scale_in, float scale_out) const
 Formats the CV for output to an egg file.

void write_datagram (BamWriter *manager, Datagram &me) const
 Function to write the important information in the particular object to a Datagram.

void fillin (DatagramIterator &scan, BamReader *manager)
 Function that reads out of the datagram (or asks manager to read) all of the data that is needed to re-create this object and stores it in the appropiate place.


Public Attributes

LVecBase3f _p
LVecBase3f _in
LVecBase3f _out
int _type
string _name


Detailed Description

A single CV of a Hermite curve.

Hermite curve CV's include an in and out tangent, as well as a position.

Definition at line 63 of file hermiteCurve.h.


Constructor & Destructor Documentation

HermiteCurveCV::HermiteCurveCV  ) 
 

Definition at line 69 of file hermiteCurve.cxx.

HermiteCurveCV::HermiteCurveCV const HermiteCurveCV &  c  ) 
 

Definition at line 81 of file hermiteCurve.cxx.

HermiteCurveCV::~HermiteCurveCV  ) 
 

Definition at line 96 of file hermiteCurve.cxx.


Member Function Documentation

void HermiteCurveCV::fillin DatagramIterator scan,
BamReader manager
 

Function that reads out of the datagram (or asks manager to read) all of the data that is needed to re-create this object and stores it in the appropiate place.

Definition at line 299 of file hermiteCurve.cxx.

Referenced by wrap_hpr().

void HermiteCurveCV::format_egg ostream &  out,
int  indent,
int  num_dimensions,
bool  show_in,
bool  show_out,
float  scale_in,
float  scale_out
const
 

Formats the CV for output to an egg file.

Definition at line 222 of file hermiteCurve.cxx.

References _out, _p, indent(), and show_vec3().

void HermiteCurveCV::set_in const LVecBase3f &  in  ) 
 

Sets the CV's in tangent.

Definition at line 110 of file hermiteCurve.cxx.

Referenced by HermiteCurve::get_num_cvs().

void HermiteCurveCV::set_name const string &  name  ) 
 

Sets the name associated with the CV.

Definition at line 208 of file hermiteCurve.cxx.

References HC_G1, and HC_SMOOTH.

void HermiteCurveCV::set_out const LVecBase3f &  out  ) 
 

Sets the CV's out tangent.

Definition at line 139 of file hermiteCurve.cxx.

References _type.

Referenced by HermiteCurve::get_num_cvs().

void HermiteCurveCV::set_point const LVecBase3f &  point  )  [inline]
 

Definition at line 69 of file hermiteCurve.h.

References _in, _name, _out, _p, and _type.

Referenced by HermiteCurve::get_num_cvs().

void HermiteCurveCV::set_type int  type  ) 
 

Sets the continuity type of the CV.

Values may be HC_CUT, indicating a discontinous break in the curve, HC_FREE, for unconstrained in and out tangents, HC_G1, for in and out tangents constrained to be collinear, and HC_SMOOTH, for in and out tangents constrained to be equal. Other than HC_CUT, these are for documentation only; setting this has no direct effect on the tangents.

Definition at line 182 of file hermiteCurve.cxx.

References _in, _p, HC_CUT, HC_FREE, indent(), and show_vec3().

Referenced by HermiteCurve::get_num_cvs().

void HermiteCurveCV::write_datagram BamWriter manager,
Datagram me
const
 

Function to write the important information in the particular object to a Datagram.

Definition at line 276 of file hermiteCurve.cxx.

References ParametricCurve::convert_to_hermite().


Member Data Documentation

LVecBase3f HermiteCurveCV::_in
 

Definition at line 82 of file hermiteCurve.h.

Referenced by CubicCurveseg::get_pt(), HermiteCurve::HermiteCurve(), set_point(), and set_type().

string HermiteCurveCV::_name
 

Definition at line 84 of file hermiteCurve.h.

Referenced by set_point().

LVecBase3f HermiteCurveCV::_out
 

Definition at line 82 of file hermiteCurve.h.

Referenced by format_egg(), CubicCurveseg::get_pt(), HermiteCurve::HermiteCurve(), and set_point().

LVecBase3f HermiteCurveCV::_p
 

Definition at line 82 of file hermiteCurve.h.

Referenced by format_egg(), CubicCurveseg::get_pt(), HermiteCurve::HermiteCurve(), HermiteCurve::rebuild_curveseg(), set_point(), and set_type().

int HermiteCurveCV::_type
 

Definition at line 83 of file hermiteCurve.h.

Referenced by HermiteCurve::HermiteCurve(), HermiteCurve::rebuild_curveseg(), set_out(), and set_point().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:51:32 2003 for Panda by doxygen1.3