sampled parametric function class (interface)
More...
#include <a_curve.h>
|
| a_curve (double da=1e-6) |
|
| a_curve (const a_curve &) |
|
virtual | ~a_curve () |
|
a_curve & | construct_axis () |
|
void | addpoint (a_point *pt) |
|
int | size () const |
|
a_point * | operator[] (int i) const |
|
std::deque< a_point * > & | x () |
|
virtual a_point | operator() (double a) const =0 |
|
virtual a_point | dx_axis (double a) const |
|
virtual a_point | dy_axis (double a) const |
|
virtual a_point | dz_axis (double a) const |
|
void | invert () |
|
bool | is_closed () const |
| !!!!!! More...
|
|
void | set_horiz (const a_point &p) |
|
a_point | get_horiz () const |
|
a_curve & | translate (const a_point &p) |
|
a_curve & | translate (double x, double y, double z) |
|
a_point | origin () const |
|
a_curve & | origin (a_point &p) |
|
a_curve & | origin (double x, double y, double z) |
|
a_point | centre () const |
|
a_curve & | flatten () |
|
a_curve & | flatten2D () |
|
a_curve & | place3D (a_point &origin, a_point &x_axis, a_point &y_axis) |
|
a_point | x_axis () const |
|
a_point | y_axis () const |
|
a_point | z_axis () const |
|
double | da () const |
|
void | da (double da) |
|
double | dist (const a_point &, int &ref) const |
|
double | dist2 (const a_point &, int &ref, double &m) const |
|
double | dist_last (const a_point &, int &ref) const |
|
double | dist (const a_curve &, int &ref1, int &ref2) const |
|
double | dist_last (const a_curve &, int &ref1, int &ref2) const |
|
double | dist2 (const a_curve &, int &ref1, int &ref2, double &m1, double &m2) const |
|
a_segment | shortest (const a_curve &fn, int &ref1, int &ref2, double &m1, double &m2) const |
|
sampled parametric function class (interface)
- Author
- P.Smars
- Date
- 2000-2001
- Warning
- portability: ansi c++
- Exceptions
-
Definition at line 34 of file a_curve.h.
◆ a_curve() [1/2]
a_curve::a_curve |
( |
double |
da = 1e-6 | ) |
|
◆ a_curve() [2/2]
a_curve::a_curve |
( |
const a_curve & |
ifn | ) |
|
◆ ~a_curve()
◆ addpoint()
void a_curve::addpoint |
( |
a_point * |
pt | ) |
|
|
inline |
◆ centre()
a_point a_curve::centre |
( |
| ) |
const |
◆ construct_axis()
a_curve & a_curve::construct_axis |
( |
| ) |
|
construction of the local axis; beware, order is important
Definition at line 267 of file a_curve.cxx.
◆ construct_x_axis()
a_curve & a_curve::construct_x_axis |
( |
| ) |
|
|
protected |
◆ construct_y_axis()
a_curve & a_curve::construct_y_axis |
( |
| ) |
|
|
protected |
◆ construct_z_axis()
a_curve & a_curve::construct_z_axis |
( |
| ) |
|
|
protected |
◆ da() [1/2]
double a_curve::da |
( |
| ) |
const |
|
inline |
◆ da() [2/2]
void a_curve::da |
( |
double |
da | ) |
|
|
inline |
◆ dist() [1/2]
double a_curve::dist |
( |
const a_curve & |
fn, |
|
|
int & |
ref1, |
|
|
int & |
ref2 |
|
) |
| const |
◆ dist() [2/2]
double a_curve::dist |
( |
const a_point & |
p, |
|
|
int & |
ref |
|
) |
| const |
◆ dist2() [1/2]
double a_curve::dist2 |
( |
const a_curve & |
fn, |
|
|
int & |
ref1, |
|
|
int & |
ref2, |
|
|
double & |
m1, |
|
|
double & |
m2 |
|
) |
| const |
◆ dist2() [2/2]
double a_curve::dist2 |
( |
const a_point & |
p, |
|
|
int & |
ref, |
|
|
double & |
m |
|
) |
| const |
◆ dist_last() [1/2]
double a_curve::dist_last |
( |
const a_curve & |
fn, |
|
|
int & |
ref1, |
|
|
int & |
ref2 |
|
) |
| const |
◆ dist_last() [2/2]
double a_curve::dist_last |
( |
const a_point & |
p, |
|
|
int & |
ref |
|
) |
| const |
◆ dx_axis()
a_point a_curve::dx_axis |
( |
double |
a | ) |
const |
|
virtual |
◆ dy_axis()
a_point a_curve::dy_axis |
( |
double |
a | ) |
const |
|
virtual |
◆ dz_axis()
a_point a_curve::dz_axis |
( |
double |
a | ) |
const |
|
virtual |
◆ flatten()
◆ flatten2D()
◆ get_horiz()
a_point a_curve::get_horiz |
( |
| ) |
const |
|
inline |
◆ init()
◆ invert()
◆ is_closed()
bool a_curve::is_closed |
( |
| ) |
const |
◆ operator()()
virtual a_point a_curve::operator() |
( |
double |
a | ) |
const |
|
pure virtual |
◆ operator[]()
a_point* a_curve::operator[] |
( |
int |
i | ) |
const |
|
inline |
◆ origin() [1/3]
a_point a_curve::origin |
( |
| ) |
const |
|
inline |
◆ origin() [2/3]
a_curve & a_curve::origin |
( |
a_point & |
p | ) |
|
◆ origin() [3/3]
a_curve & a_curve::origin |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
◆ place3D()
a_curve & a_curve::place3D |
( |
a_point & |
origin, |
|
|
a_point & |
x_axis, |
|
|
a_point & |
y_axis |
|
) |
| |
◆ set_horiz()
void a_curve::set_horiz |
( |
const a_point & |
p | ) |
|
|
inline |
if the last point is equal to the first point
Definition at line 62 of file a_curve.h.
◆ shortest()
a_segment a_curve::shortest |
( |
const a_curve & |
fn, |
|
|
int & |
ref1, |
|
|
int & |
ref2, |
|
|
double & |
m1, |
|
|
double & |
m2 |
|
) |
| const |
◆ size()
int a_curve::size |
( |
| ) |
const |
|
inline |
number of points
Definition at line 47 of file a_curve.h.
◆ translate() [1/2]
a_curve & a_curve::translate |
( |
const a_point & |
p | ) |
|
◆ translate() [2/2]
a_curve & a_curve::translate |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
◆ x()
std::deque<a_point *>& a_curve::x |
( |
| ) |
|
|
inline |
◆ x_axis()
a_point a_curve::x_axis |
( |
| ) |
const |
|
inline |
◆ y_axis()
a_point a_curve::y_axis |
( |
| ) |
const |
|
inline |
◆ z_axis()
a_point a_curve::z_axis |
( |
| ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const a_curve & |
m |
|
) |
| |
|
friend |
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
i, |
|
|
a_curve & |
m |
|
) |
| |
|
friend |
◆ da_
◆ horiz_
◆ initialised_
bool a_curve::initialised_ |
|
protected |
◆ n_pts_
◆ orient_
◆ x_
std::deque<a_point *> a_curve::x_ |
|
protected |
◆ x_axis_
◆ y_axis_
◆ z_axis_
The documentation for this class was generated from the following files: