#include <var_rad.hxx>


Public Member Functions | |
| virtual void | append (var_radius &var_rad) |
Appends the given var_radius. | |
| virtual void | calibrate_radius (double t0, double t1) |
| Calibrates the variable radius between the two given parameters. | |
| logical | calibrated (void) const |
Returns TRUE if the ends are calibrated; otherwise, it returns FALSE. | |
| virtual var_radius * | copy () const |
Copies a var_rad_const. | |
| virtual void | debug (const char *leader, FILE *fp=debug_file_ptr) const |
Outputs a title line and information about var_rad_const to the debug file or to the specified file. | |
| virtual double | end_deriv1 () const |
| Returns the first derivative at the end parameter. | |
| virtual double | end_radius () const |
| Returns the radius at the end parameter. | |
| virtual void | eval (double, double *val, evaluate_curve_side, double *der1, double *der2, double *der3, double *der4) const |
| Evaluates a variable radius at a given parameter value. | |
| virtual logical | explicit_var_radius () const |
Returns TRUE if the radius function is an explicit function of v. | |
| virtual int | form () const |
Returns the form VAR_RAD_CONST. | |
| virtual void | get_disc_info (discontinuity_info &di) const |
| Get the discontinuities of the radius function. | |
| double | get_max_radius () const |
| Returns the maximum radius. | |
| double | get_min_radius () const |
| Returns the minimum radius. | |
| virtual logical | implicit_var_radius () const |
Returns FALSE for a var_rad_const. | |
| virtual logical | is_constant (double *rad_value=NULL) const |
| Determines whether the input is constant. | |
| virtual logical | is_zero (double eps) const |
Returns TRUE if a radius function is zero everywhere, to within a given tolerance - else, it returns FALSE. | |
| virtual bs2_curve | make_bs2 () const |
Returns a bs2_curve representation of this radius function. | |
| virtual void | negate () |
| Reverses this variable radius, front to back. | |
| virtual logical | operator!= (var_radius const &other) const |
| Determines whether two variable radii are not equal. | |
| virtual void | operator*= (SPAtransf const &trans) |
Transforms the var_rad_const by the given transformation. | |
| virtual logical | operator== (var_radius const &other) const |
Implements an assignment operator, which tests to see if a var_rad_const is equal to a var_radius. | |
| SPAinterval | param_range (void) const |
| Returns the parameter range. | |
| virtual void | reparam (double start, double end) |
| Reparameterizes the variable radius with new start and end parameter values. | |
| virtual void | restore_data () |
Restores the data for a var_rad_const from a save file. | |
| virtual void | save () const |
Calls var_radius::save_data method, then saves the start and end radius data. | |
| void | save_data () const |
Saves the information for the var_radius to a save file. | |
| void | set_end_param (double new_param) |
| Sets the end parameter. | |
| void | set_max_radius (double max_rad) |
| Sets the maximum radius. | |
| void | set_min_radius (double min_rad) |
| Sets the minimum radius. | |
| void | set_start_param (double new_param) |
| Sets the start parameter. | |
| virtual void | shift (double delta) |
| Shifts the variable radius by the given value. | |
| virtual void | split (double param, var_radius *pieces[2]) |
| Splits a variable radius into two pieces. | |
| virtual double | start_deriv1 () const |
| Returns the first derivative at the start parameter. | |
| virtual double | start_radius () const |
| Returns the radius at the start parameter. | |
| virtual void | trim_to_range (SPAinterval const &r) |
| Trims the variable radius to the specified range. | |
| virtual char const * | type_name () const |
| Returns the string "const". | |
| virtual void | uncalibrate_radius () |
| Un-calibrates the radius function(s). | |
| var_rad_const (var_rad_const const &old) | |
| C++ copy constructor requests memory for this object and populates it with the data from the object supplied as an argument. | |
| var_rad_const (double const_rad=-1.) | |
| C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments. | |
| virtual logical | zero_end_deriv1 (logical, double) const |
Returns TRUE if the first derivative at the start or end point of the var_rad_const is zero ( less than SPAresabs). | |
| virtual logical | zero_end_radius (logical, double tol) const |
Returns TRUE if the radius at the start or end point of the var_rad_const is zero (less than SPAresabs). | |
| var_rad_const::var_rad_const | ( | double | const_rad = -1. |
) |
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
| const_rad | constant radius. |
| var_rad_const::var_rad_const | ( | var_rad_const const & | old | ) |
C++ copy constructor requests memory for this object and populates it with the data from the object supplied as an argument.
| old | old. |
| virtual void var_rad_const::append | ( | var_radius & | var_rad | ) | [virtual] |
| virtual void var_radius::calibrate_radius | ( | double | t0, | |
| double | t1 | |||
| ) | [virtual, inherited] |
Calibrates the variable radius between the two given parameters.
| t0 | start parameter. | |
| t1 | end parameter. |
Reimplemented in var_rad_functional.
| logical var_radius::calibrated | ( | void | ) | const [inline, inherited] |
Returns TRUE if the ends are calibrated; otherwise, it returns FALSE.
| virtual var_radius* var_rad_const::copy | ( | ) | const [inline, virtual] |
| virtual void var_rad_const::debug | ( | const char * | leader, | |
| FILE * | fp = debug_file_ptr | |||
| ) | const [virtual] |
Outputs a title line and information about var_rad_const to the debug file or to the specified file.
| leader | leader string. | |
| fp | file pointer. |
Reimplemented from var_radius.
| virtual double var_rad_const::end_deriv1 | ( | ) | const [inline, virtual] |
| virtual double var_rad_const::end_radius | ( | ) | const [inline, virtual] |
| virtual void var_rad_const::eval | ( | double | , | |
| double * | val, | |||
| evaluate_curve_side | , | |||
| double * | der1, | |||
| double * | der2, | |||
| double * | der3, | |||
| double * | der4 | |||
| ) | const [inline, virtual] |
Evaluates a variable radius at a given parameter value.
| v_param | point. | |
| val | variable radius. | |
| der1 | first derivative. | |
| der2 | second derivative. | |
| der3 | third derivative. | |
| der4 | fourth derivative. |
Reimplemented from var_radius.
| virtual logical var_radius::explicit_var_radius | ( | ) | const [inline, virtual, inherited] |
Returns TRUE if the radius function is an explicit function of v.
Role: The function is an explicit function if it can be evaluated independently of the blend surface.
| virtual int var_rad_const::form | ( | ) | const [inline, virtual] |
| virtual void var_radius::get_disc_info | ( | discontinuity_info & | di | ) | const [virtual, inherited] |
| double var_radius::get_max_radius | ( | ) | const [inline, inherited] |
Returns the maximum radius.
| double var_radius::get_min_radius | ( | ) | const [inline, inherited] |
Returns the minimum radius.
| virtual logical var_rad_const::implicit_var_radius | ( | ) | const [inline, virtual] |
| virtual logical var_rad_const::is_constant | ( | double * | rad_value = NULL |
) | const [inline, virtual] |
| virtual logical var_rad_const::is_zero | ( | double | eps | ) | const [inline, virtual] |
Returns TRUE if a radius function is zero everywhere, to within a given tolerance - else, it returns FALSE.
| eps | zero tolerance. |
Reimplemented from var_radius.
| virtual bs2_curve var_rad_const::make_bs2 | ( | ) | const [virtual] |
| virtual void var_radius::negate | ( | ) | [virtual, inherited] |
Reverses this variable radius, front to back.
Reimplemented in var_rad_two_ends, var_rad_functional, and var_rad_rot_ellipse.
| virtual logical var_radius::operator!= | ( | var_radius const & | other | ) | const [inline, virtual, inherited] |
Determines whether two variable radii are not equal.
| other | variable radius. |
Reimplemented in var_rad_two_ends, var_rad_functional, var_rad_rot_ellipse, and var_rad_fixed_width.
| virtual void var_rad_const::operator*= | ( | SPAtransf const & | trans | ) | [virtual] |
Transforms the var_rad_const by the given transformation.
| trans | transformation. |
Reimplemented from var_radius.
| virtual logical var_rad_const::operator== | ( | var_radius const & | other | ) | const [virtual] |
Implements an assignment operator, which tests to see if a var_rad_const is equal to a var_radius.
| other | variable radius. |
Reimplemented from var_radius.
| SPAinterval var_radius::param_range | ( | void | ) | const [inline, inherited] |
Returns the parameter range.
| virtual void var_radius::reparam | ( | double | start, | |
| double | end | |||
| ) | [virtual, inherited] |
Reparameterizes the variable radius with new start and end parameter values.
| start | start parameter. | |
| end | end parameter. |
Reimplemented in var_rad_functional.
| virtual void var_rad_const::restore_data | ( | ) | [virtual] |
Restores the data for a var_rad_const from a save file.
Role:
var_radius::restore_data | Generic information |
read_real | radius data |
Reimplemented from var_radius.
| virtual void var_rad_const::save | ( | ) | const [virtual] |
Calls var_radius::save_data method, then saves the start and end radius data.
Reimplemented from var_radius.
| void var_radius::save_data | ( | ) | const [inherited] |
Saves the information for the var_radius to a save file.
| void var_radius::set_end_param | ( | double | new_param | ) | [inline, inherited] |
Sets the end parameter.
| new_param | end parameter. |
| void var_radius::set_max_radius | ( | double | max_rad | ) | [inline, inherited] |
Sets the maximum radius.
| max_rad | maximum radius. |
| void var_radius::set_min_radius | ( | double | min_rad | ) | [inline, inherited] |
Sets the minimum radius.
| min_rad | minimum radius. |
| void var_radius::set_start_param | ( | double | new_param | ) | [inline, inherited] |
Sets the start parameter.
| new_param | start parameter. |
| virtual void var_radius::shift | ( | double | delta | ) | [virtual, inherited] |
Shifts the variable radius by the given value.
| delta | shift delta. |
Reimplemented in var_rad_functional.
| virtual void var_radius::split | ( | double | param, | |
| var_radius * | pieces[2] | |||
| ) | [virtual, inherited] |
Splits a variable radius into two pieces.
| param | parameter value. | |
| pieces | the two pieces. |
Reimplemented in var_rad_two_ends, var_rad_functional, and var_rad_rot_ellipse.
| virtual double var_rad_const::start_deriv1 | ( | ) | const [inline, virtual] |
| virtual double var_rad_const::start_radius | ( | ) | const [inline, virtual] |
| virtual void var_radius::trim_to_range | ( | SPAinterval const & | r | ) | [virtual, inherited] |
Trims the variable radius to the specified range.
| inter | interval. |
Reimplemented in var_rad_two_ends, and var_rad_rot_ellipse.
| virtual char const* var_rad_const::type_name | ( | ) | const [virtual] |
| virtual void var_radius::uncalibrate_radius | ( | ) | [virtual, inherited] |
Un-calibrates the radius function(s).
| virtual logical var_rad_const::zero_end_deriv1 | ( | logical | , | |
| double | ||||
| ) | const [inline, virtual] |
Returns TRUE if the first derivative at the start or end point of the var_rad_const is zero ( less than SPAresabs).
| at_start | at start point if true. | |
| tol | tolerance. |
Implements var_radius.
| virtual logical var_rad_const::zero_end_radius | ( | logical | , | |
| double | tol | |||
| ) | const [inline, virtual] |
Returns TRUE if the radius at the start or end point of the var_rad_const is zero (less than SPAresabs).
| at_start | at start point if true. | |
| tol | tolerance. |
Implements var_radius.