Am5os
 All Classes Functions Pages
Public Member Functions | List of all members
Element Class Reference

Public Member Functions

 Element (std::vector< int > position, std::vector< int > box_size)
 
std::vector< int > GetPosition ()
 
std::vector< int > GetBoxSize ()
 
int GetMinX ()
 
int GetMinY ()
 
int GetMaxX ()
 
int GetMaxY ()
 
int GetCenterX ()
 
int GetCenterY ()
 

Constructor & Destructor Documentation

Element::Element ( std::vector< int >  position,
std::vector< int >  box_size 
)

Constructor

Parameters
positionThe vector with position of the topleft corner of the element (x, y)
box_sizeThe vector with the size of the bounding box of the element (width, height)

Member Function Documentation

std::vector< int > Element::GetBoxSize ( )

Gets the size of the bounding box of the element

Returns
The vector with the size of the bounding box of the element

Here is the caller graph for this function:

int Element::GetCenterX ( )

Gets the x value of center of the bounding box of this element.

Returns
The x position of the center

Here is the caller graph for this function:

int Element::GetCenterY ( )

Gets the y value of center of the bounding box of this element.

Returns
The y position of the center

Here is the caller graph for this function:

int Element::GetMaxX ( )

Gets the maximal x position of the bounding box of this element.

Returns
The maximal x position

Here is the caller graph for this function:

int Element::GetMaxY ( )

Gets the maximal y position of the bounding box of this element.

Returns
The maximal y position

Here is the caller graph for this function:

int Element::GetMinX ( )

Gets the minimal x position of the bounding box of this element.

Returns
The minimal x position

Here is the caller graph for this function:

int Element::GetMinY ( )

Gets the minimal y position of the bounding box of this element.

Returns
The minimal y position

Here is the caller graph for this function:

std::vector< int > Element::GetPosition ( )

Gets the position of the element

Returns
The vector with the position of the element

Here is the caller graph for this function:


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