Panda3D
Public Member Functions | Public Attributes

HermiteCurveCV Class Reference

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

#include "hermiteCurve.h"

List of all members.

Public Member Functions

 HermiteCurveCV (const HermiteCurveCV &c)
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.
void format_egg (ostream &out, int indent, int num_dimensions, bool show_in, bool show_out, PN_stdfloat scale_in, PN_stdfloat scale_out) const
 Formats the CV for output to an egg file.
void set_in (const LVecBase3 &in)
 Sets the CV's in tangent.
void set_name (const string &name)
 Sets the name associated with the CV.
void set_out (const LVecBase3 &out)
 Sets the CV's out tangent.
void set_point (const LVecBase3 &point)
void set_type (int type)
 Sets the continuity type of the CV.
void write_datagram (BamWriter *manager, Datagram &me) const
 Function to write the important information in the particular object to a Datagram.

Public Attributes

LVecBase3 _in
string _name
LVecBase3 _out
LVecBase3 _p
int _type

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 52 of file hermiteCurve.h.


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 250 of file hermiteCurve.cxx.

References DatagramIterator::get_int8(), and DatagramIterator::get_string().

Referenced by HermiteCurve::fillin().

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

Formats the CV for output to an egg file.

Definition at line 183 of file hermiteCurve.cxx.

void HermiteCurveCV::set_in ( const LVecBase3 in)

Sets the CV's in tangent.

Definition at line 90 of file hermiteCurve.cxx.

Referenced by HermiteCurve::append_cv().

void HermiteCurveCV::set_name ( const string &  name)

Sets the name associated with the CV.

Definition at line 172 of file hermiteCurve.cxx.

void HermiteCurveCV::set_out ( const LVecBase3 out)

Sets the CV's out tangent.

Definition at line 116 of file hermiteCurve.cxx.

Referenced by HermiteCurve::append_cv().

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 149 of file hermiteCurve.cxx.

Referenced by HermiteCurve::append_cv().

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 233 of file hermiteCurve.cxx.

References Datagram::add_int8(), and Datagram::add_string().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations