Panda3D
Loading...
Searching...
No Matches
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.
 
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.
 
void set_in (const LVecBase3 &in)
 Sets the CV's in tangent.
 
void set_name (const std::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
 
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.

Constructor & Destructor Documentation

◆ HermiteCurveCV() [1/2]

HermiteCurveCV::HermiteCurveCV ( )

Definition at line 54 of file hermiteCurve.cxx.

◆ HermiteCurveCV() [2/2]

HermiteCurveCV::HermiteCurveCV ( const HermiteCurveCV & c)

Definition at line 62 of file hermiteCurve.cxx.

◆ ~HermiteCurveCV()

HermiteCurveCV::~HermiteCurveCV ( )

Definition at line 73 of file hermiteCurve.cxx.

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

References indent().

◆ set_in()

void HermiteCurveCV::set_in ( const LVecBase3 & in)

Sets the CV's in tangent.

Definition at line 82 of file hermiteCurve.cxx.

Referenced by HermiteCurve::append_cv().

◆ set_name()

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

Sets the name associated with the CV.

Definition at line 156 of file hermiteCurve.cxx.

◆ set_out()

void HermiteCurveCV::set_out ( const LVecBase3 & out)

Sets the CV's out tangent.

Definition at line 106 of file hermiteCurve.cxx.

Referenced by HermiteCurve::append_cv().

◆ set_point()

void HermiteCurveCV::set_point ( const LVecBase3 & point)
inline

Definition at line 56 of file hermiteCurve.h.

◆ 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 135 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 213 of file hermiteCurve.cxx.

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

Member Data Documentation

◆ _in

LVecBase3 HermiteCurveCV::_in

Definition at line 69 of file hermiteCurve.h.

◆ _name

std::string HermiteCurveCV::_name

Definition at line 71 of file hermiteCurve.h.

◆ _out

LVecBase3 HermiteCurveCV::_out

Definition at line 69 of file hermiteCurve.h.

◆ _p

LVecBase3 HermiteCurveCV::_p

Definition at line 69 of file hermiteCurve.h.

◆ _type

int HermiteCurveCV::_type

Definition at line 70 of file hermiteCurve.h.


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