Logo Search packages:      
Sourcecode: inkscape version File versions

FloatLigne Class Reference

#include <float-line.h>

List of all members.


Detailed Description

Coverage with floating-point boundaries.

The goal is to salvage exact coverage info in the sweepline performed by Scan() or QuickScan(), then clean up a bit, convert floating point bounds to integer bounds, because pixel have integer bounds, and then raster runs of the type:

   position on the (pixel) line:                st         en
                                                |          |
   coverage value (0=empty, 1=full)            vst   ->   ven   

Definition at line 62 of file float-line.h.


Public Member Functions

int AddBord (float spos, float sval, float epos, float eval, float pente, int guess=-1)
int AddBord (float spos, float sval, float epos, float eval, int guess=-1)
int AddBordR (float spos, float sval, float epos, float eval, float pente, int guess=-1)
int AddRun (float st, float en, float vst, float ven, float pente)
void Affiche ()
 Debug dump of the instance.
int AppendBord (float spos, float sval, float epos, float eval, float pente)
void Copy (FloatLigne *a)
void Copy (IntLigne *a)
void Flatten ()
void Max (FloatLigne *a, float tresh, bool addIt)
void Min (FloatLigne *a, float tresh, bool addIt)
 Cuts the parts having less than tresh coverage.
void Over (FloatLigne *a, float tresh)
 Extract the parts where coverage > tresh.
float RemainingValAt (float at, int pending)
void Reset ()
 Reset the line to empty (boundaries and runs).
void Split (FloatLigne *a, float tresh, FloatLigne *over)

Static Public Member Functions

static int CmpBord (float_ligne_bord const &d1, float_ligne_bord const &d2)

Public Attributes

std::vector< float_ligne_bordbords
 vector of coverage boundaries
std::vector< float_ligne_runruns
 vector of runs
int s_first
 first boundary in the doubly-linked list
int s_last
 last boundary in the doubly-linked list

Private Member Functions

int AddRun (float st, float en, float vst, float ven)
void InsertBord (int no, float p, int guess)
float ValAt (float at, float ps, float pe, float vs, float ve)

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

Generated by  Doxygen 1.6.0   Back to index