#include <piave_base.hh>
Public Methods | |
Box (Point ul, Point lr) | |
upper left and lower right | |
Point | ul () const |
upper left | |
Point | lr () const |
lower right | |
double | x () const |
relative coordinates [0.0,1.0] | |
double | y () const |
relative coordinates [0.0,1.0] | |
double | w () const |
relative coordinates [0.0,1.0] | |
double | h () const |
relative coordinates [0.0,1.0] | |
double | x2 () const |
relative coordinates [0.0,1.0] | |
double | y2 () const |
relative coordinates [0.0,1.0] | |
int | lx () const |
absolute coordinates wrt, render size | |
int | ly () const |
absolute coordinates wrt, render size | |
int | lw () const |
absolute coordinates wrt, render size | |
int | lh () const |
absolute coordinates wrt, render size | |
int | lx2 () const |
absolute coordinates wrt, render size | |
int | ly2 () const |
absolute coordinates wrt, render size |
coordinates in constrctor are relative \in [0.0,1.0] lx,ly,... are in the local coordinate system defined be the project render size.