The HImageRegion class represents selectable regions inside an image panel. More...
#include <HObjects.h>
Public Member Functions | |
int | GetID () |
char const * | GetName () |
HImageRegion (int identifier, char const *const name) | |
bool | IsSelected (float x, float y, HC_KEY region_image_key, int width, int height) |
The HImageRegion class represents selectable regions inside an image panel.
HImageRegion::HImageRegion | ( | int | identifier, |
char const *const | name | ||
) |
Constructs an HImageRegion object.
identifier | Numeric identifier of image region |
name | Name of image region |
int HImageRegion::GetID | ( | ) | [inline] |
This method returns the identifier of the image region
char const* HImageRegion::GetName | ( | ) | [inline] |
This method returns the name of the image region
bool HImageRegion::IsSelected | ( | float | x, |
float | y, | ||
HC_KEY | region_image_key, | ||
int | width, | ||
int | height | ||
) |
This method determines if a region is selected given an x/y position and the associated region iage
x | Mouse X Coordinate |
y | Mouse Y Coordinate |
region_image_key | HOOPS Key to image defining image panel regions |
width | Width of Image Panel |
height | Height of Image Panel |