Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
inverted_curve_rep Struct Reference
Inheritance diagram for inverted_curve_rep:
Inheritance graph
[legend]
Collaboration diagram for inverted_curve_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 inverted_curve_rep (curve c2)
int nr_components ()
point evaluate (double t)
void rectify_cumul (array< point > &a, double eps)
double bound (double t, double eps)
point grad (double t, bool &error)
double curvature (double t1, double t2)
int get_control_points (array< double > &abs, array< point > &pts, array< path > &cip)
array< pointrectify (double eps)
virtual array< double > find_closest_points (double t1, double t2, point p, double eps)
virtual double find_closest_point (double t1, double t2, point p, double eps, bool &found)

Public Attributes

curve c
int n
int ref_count

Detailed Description

Definition at line 846 of file curve.cpp.


Constructor & Destructor Documentation

Definition at line 849 of file curve.cpp.

: c (c2), n (c->nr_components()) {}

Member Function Documentation

double inverted_curve_rep::bound ( double  t,
double  eps 
) [inline, virtual]

Implements curve_rep.

Definition at line 857 of file curve.cpp.

                                      {
    return curve_rep::bound (t, eps);
  }
double inverted_curve_rep::curvature ( double  t1,
double  t2 
) [inline, virtual]

Implements curve_rep.

Definition at line 863 of file curve.cpp.

                                          {
    return c->curvature (1-t2, 1-t1);
  }
point inverted_curve_rep::evaluate ( double  t) [inline, virtual]

Implements curve_rep.

Definition at line 851 of file curve.cpp.

{ return c (1.0 - t); }
double curve_rep::find_closest_point ( double  t1,
double  t2,
point  p,
double  eps,
bool &  found 
) [virtual, inherited]

Definition at line 138 of file curve.cpp.

{
  array<double> res= find_closest_points (t1, t2, p, eps);
  found= N(res)>0;
  if (found)
    return res[0];
  else
    return -1;
}

Here is the call graph for this function:

array< double > curve_rep::find_closest_points ( double  t1,
double  t2,
point  p,
double  eps 
) [virtual, inherited]

Definition at line 125 of file curve.cpp.

{
  array<curvet> res= curvet_closest_points (curve (this), t1, t2, p, eps);
  merge_sort_leq <curvet, less_eq_curvet> (res);
  array<double> rest= array<double> (N(res));
  int i;
  for (i=0; i<N(res); i++)
    rest[i]= res[i].t;
  return rest;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int inverted_curve_rep::get_control_points ( array< double > &  abs,
array< point > &  pts,
array< path > &  cip 
) [virtual]

Reimplemented from curve_rep.

Definition at line 871 of file curve.cpp.

{
  int res= c->get_control_points (abs, pts, cip);
  int i;
  abs= copy (abs);
  for (i=0; i<res; i++)
    abs[i]= 1 - abs[i];
  return res;
}

Here is the call graph for this function:

point inverted_curve_rep::grad ( double  t,
bool &  error 
) [inline, virtual]

Implements curve_rep.

Definition at line 860 of file curve.cpp.

                                     {
    return - c->grad (1.0 - t, error);
  }
int inverted_curve_rep::nr_components ( ) [inline, virtual]

Reimplemented from curve_rep.

Definition at line 850 of file curve.cpp.

{ return n; }
array< point > curve_rep::rectify ( double  eps) [inherited]

Definition at line 25 of file curve.cpp.

                              {
  array<point> a (1);
  a[0]= evaluate (0.0);
  rectify_cumul (a, eps);
  return a;
}

Here is the call graph for this function:

void inverted_curve_rep::rectify_cumul ( array< point > &  a,
double  eps 
) [inline, virtual]

Implements curve_rep.

Definition at line 852 of file curve.cpp.

                                                   {
    array<point> b= c->rectify (eps);
    int i, k= N(b);
    for (i=k-1; i>=0; i--) a << b[i];
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 847 of file curve.cpp.

Definition at line 848 of file curve.cpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.


The documentation for this struct was generated from the following file: