HImageRegion

class HImageRegion

The HImageRegion class represents selectable regions inside an image panel.

Methods

HImageRegion::HImageRegion(int identifier, char const *const name)

Constructs an HImageRegion object.

Parameters

identifier: Numeric identifier of image region

name: Name of image region

HImageRegion::~HImageRegion()
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

Parameters

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

Returns

True: Mouse is inside of region
char const *HImageRegion::GetName()

This method returns the name of the image region

Returns

Name of image region
int HImageRegion::GetID()

This method returns the identifier of the image region

Returns

Identifier of image region

Variables

bool HImageRegion::m_bHighlighted

private

bool
char *HImageRegion::m_Name

private

char
int HImageRegion::m_Id

private

int