Structure Canva

Espace de nom : tsd::vue

Liste des méthodes

tsd::vue::Canva::Canva()

Canva clip(const Rectf &rdi, const Rectf &vue, bouléen log_x=non, bouléen log_y=non) const

Canva clip_alt(const Rectf &rdi, float xmin, float xmax, float ymin, float ymax, bouléen log_x, bouléen log_y) const

Canva vue(const Rectf &vue) const

Pointf v2c(const Pointf &p) const

Rectf v2c(const Rectf &r) const

void forward(Canva dest) const

void clear()

void set_allocation(const Dim &dim)

void set_rdi(const Rectf &rdi)

Dim get_allocation() const

Rectf get_rdi() const

void set_orientation(Orientation orient)

void set_dim_fonte(float echelle)

void set_couleur(const Couleur &coul)

void set_couleur_remplissage(const Couleur &coul)

void set_epaisseur(entier ep)

void set_remplissage(bouléen remplir, const Couleur &coul=Couleur{255, 255, 255})

void active_contours(bouléen contour_actif)

void active_remplissage(bouléen remplissage_actif)

void set_texte_arrière_plan(bouléen actif, const Couleur &coul=Blanc)

void set_dotted(bouléen dotted)

void set_align(Align hor, Align vert)

void rectangle(float x0, float y0, float x1, float y1)

void rectangle(const Rectf &r)

void rectangle(const Pointf &p0, const Pointf &p1)

void ligne(float x0, float y0, float x1, float y1)

void ligne(const Pointf &p0, const Pointf &p1)

void fleche(const Pointf &p0, const Pointf &p1, float dim=5)

void texte(float x0, float y0, cstring texte, float dx_max=-1, float dy_max=-1, sptr<GroupeTextes> grp=sptr<GroupeTextes>())

void texte(const Pointf &p, cstring texte, const Dimf &dim_max={-1.0f, -1.0f}, sptr<GroupeTextes> grp=sptr<GroupeTextes>())

void cercle(float x0, float y0, float r)

void cercle(const Pointf &p, float r)

void ellipse(const Pointf &p, float a, float b, float θ=0, float α0=0, float α1=2 *π)

void remplissage_vertical(float x0, float y0, float x1, float y1, float y2, float y3)

void dessine_accu(const Veccf &pts)

void def_image_fond(Image img)

void dessine_img(float x0, float y0, float y1, float y2, Image img)

void plot_cmap(const Tabf &Z, const Rectf &rdi, sptr<CMap> cmap)

void marqueur(const Pointf &p, Marqueur m, float dim_pixels)

void get_pixel_size(float &width, float &heigth)

Pointf coord_pixel(const Point &p)
Coordonnées pixel vers unités.

Image rendre(const Dim &dim={-1, -1}, const Rectf &rdi={0, 0, 0, 0}, const Couleur &arp=Blanc)

sptr<PointIntermediaire> enregistre_pti()

void restaure_pti(sptr<PointIntermediaire> pti)

sptr<GroupeTextes> groupe_textes()

Rectf calc_rdi_englobante() const