Panda3D
Public Member Functions | Public Attributes | List of all members
HermiteCurveCV Class Reference

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

#include "hermiteCurve.h"

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. More...
 
void format_egg (std::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. More...
 
void set_in (const LVecBase3 &in)
 Sets the CV's in tangent. More...
 
void set_name (const std::string &name)
 Sets the name associated with the CV. More...
 
void set_out (const LVecBase3 &out)
 Sets the CV's out tangent. More...
 
void set_point (const LVecBase3 &point)
 
void set_type (int type)
 Sets the continuity type of the CV. More...
 
void write_datagram (BamWriter *manager, Datagram &me) const
 Function to write the important information in the particular object to a Datagram. More...
 

Public Attributes

LVecBase3 _in
 
std::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 50 of file hermiteCurve.h.

Member Function Documentation

◆ fillin()

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

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

◆ format_egg()

void HermiteCurveCV::format_egg ( std::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 166 of file hermiteCurve.cxx.

References indent().

◆ set_in()

void HermiteCurveCV::set_in ( const LVecBase3 &  in)

Sets the CV's in tangent.

Definition at line 83 of file hermiteCurve.cxx.

◆ set_name()

void HermiteCurveCV::set_name ( const std::string &  name)

Sets the name associated with the CV.

Definition at line 157 of file hermiteCurve.cxx.

◆ set_out()

void HermiteCurveCV::set_out ( const LVecBase3 &  out)

Sets the CV's out tangent.

Definition at line 107 of file hermiteCurve.cxx.

◆ set_type()

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

Referenced by HermiteCurve::append_cv().

◆ write_datagram()

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

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


The documentation for this class was generated from the following files: