HRegionSelItem

class HRegionSelItem

The HRegionSelItem - region selection item which can handle instancing.

This implementation of HSmartSelItem class handles instanced regions. It also uses the ‘conditional styling’ mechanism to highlight the selection

Inherits from: HSmartSelItem

Methods

HRegionSelItem::HRegionSelItem(HShellObject const &oShellObj, HSelectionSet *selection_set, int incl_count, HC_KEY incl_keys[], int region)

Constructs a HRegionSelItem object.

Parameters

key: HOOPS key to selection item.

selection_set: A pointer to the HOOPS selection set which owns this selection item.

incl_count: Number of include keys in the selection item segment path.

incl_keys: An array of HOOPS keys of all the include keys in the selection item path.

HRegionSelItem::~HRegionSelItem()
virtual char const *HRegionSelItem::GetName() const

const virtual

Returns

A character pointer denoting the name which is “HRegionSelItem.”
virtual int const HRegionSelItem::GetRegion() const

const virtual

Returns

The shell region which is selected.
virtual bool HRegionSelItem::Equals(HSelectionItem const *i2) const

const virtual

Parameters

i2: An HRegionSelItem object to be compared with this object.

Returns

True if the two region selection elements are equal.
virtual bool HRegionSelItem::Highlight()

virtual

Call this function to highlight the selection region.

Returns

A true if the item was successfully highlighted.
virtual bool HRegionSelItem::UnHighlight()

virtual

Call this function to unhighlight the selection item.

Returns

A true if the item was successfully unhighlighted.
virtual int HRegionSelItem::IncrEdgeHighlightCount(HC_KEY key, HShellEdge const &Edge)

private virtual

Call this to increase the edge highlight count. This is a helper function for the HighlightEdges method.

Returns

Rhe number of times the item has been highlighted.
virtual int HRegionSelItem::DecrEdgeHighlightCount(HC_KEY key, HShellEdge const &Edge)

private virtual

Call this to decrease the edge highlight count. This is a helper function for the UnHighlightEdges method.

Returns

The number of times the item is highlighted.
virtual void HRegionSelItem::HighlightEdges()

private virtual

Call this function to highlight the selection region’s edges. This is a helper function for Highlight.

virtual void HRegionSelItem::UnHighlightEdges()

private virtual

Call this function to highlight the selection region’s edges. This is a helper function for UnHighlight.

virtual void HRegionSelItem::HighlightFaces()

private virtual

Call this function to highlight the selection region’s faces. This is a helper function for Highlight.

virtual void HRegionSelItem::UnHighlightFaces()

private virtual

Call this function to highlight the selection region’s faces. This is a helper function for UnHighlight.

Variables

int HRegionSelItem::m_Region

private

int

The shell region which is selected.

HShellObject HRegionSelItem::m_oShellObj

private

HShellRegion HRegionSelItem::m_oRegionObj

private