Struct ILLIXR::data_format::rect
ClassList > ILLIXR > data_format > rect
#include <shape.hpp>
Public Attributes
| Type | Name |
|---|---|
| double | height height of the rectangle (parallel to y-axis when rotation angle is 0) |
| double | rotation rotation angle of the rectangle in radians |
| units::measurement_unit | unit |
| bool | valid if the rectangle is valid |
| double | width width of the rectangle (parallel to x-axis when rotation angle is 0) |
| double | x_center x-coordinate of the rectangle's center |
| double | y_center y-coordinate of the rectangle's center |
Public Functions
| Type | Name |
|---|---|
| void | flip_y (const uint im_height=0) |
| rect () |
|
| rect (rect * other) |
|
| rect (const double xc, const double yc, const double w, const double h, const double r, units::measurement_unit unit_=units::UNSET) |
|
| void | set (const double xc, const double yc, const double w, const double h, const double r, units::measurement_unit unit_=units::UNSET) |
Detailed Description
Struct which defines a representation of a rectangle
Public Attributes Documentation
variable height
height of the rectangle (parallel to y-axis when rotation angle is 0)
double ILLIXR::data_format::rect::height;
variable rotation
rotation angle of the rectangle in radians
double ILLIXR::data_format::rect::rotation;
variable unit
units::measurement_unit ILLIXR::data_format::rect::unit;
variable valid
if the rectangle is valid
bool ILLIXR::data_format::rect::valid;
variable width
width of the rectangle (parallel to x-axis when rotation angle is 0)
double ILLIXR::data_format::rect::width;
variable x_center
x-coordinate of the rectangle's center
double ILLIXR::data_format::rect::x_center;
variable y_center
y-coordinate of the rectangle's center
double ILLIXR::data_format::rect::y_center;
Public Functions Documentation
function flip_y
inline void ILLIXR::data_format::rect::flip_y (
const uint im_height=0
)
Flip the y-coordinate about the center axis
Parameters:
im_height
function rect [1/3]
inline ILLIXR::data_format::rect::rect ()
Generic constructor which sets all values to 0
function rect [2/3]
inline explicit ILLIXR::data_format::rect::rect (
rect * other
)
Copy constructor
Parameters:
otherThe rect to copy
function rect [3/3]
inline ILLIXR::data_format::rect::rect (
const double xc,
const double yc,
const double w,
const double h,
const double r,
units::measurement_unit unit_=units::UNSET
)
General constructor
Parameters:
xcthe x-coordinateycthe y-coordinatewthe widthhthe heightrrotation angle
function set
inline void ILLIXR::data_format::rect::set (
const double xc,
const double yc,
const double w,
const double h,
const double r,
units::measurement_unit unit_=units::UNSET
)
Set the rect's values after construction
Parameters:
xcthe x-coordinateycthe y-coordinatewthe widthhthe heightrrotation angle
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/ILLIXR/include/illixr/data_format/shape.hpp