HOpSelectAreaOOC

template<typename SelectionSet>
class HOpSelectAreaOOC

The HOpSelectAreaOOC class computes a selection list for OOC points inside a rectangular area. If this class is used by an HBaseView, the view must have an HSelectionSetOOC<SelectionSet> instance for its selection set.

Inherits from: HOpSelectArea

Methods

template<typename SelectionSet>
HOpSelectAreaOOC<SelectionSet>::HOpSelectAreaOOC(HBaseView &view)

Constructs an HOpSelectAreaOOC.

Parameters

view: A reference to an HBaseView object.
template<typename SelectionSet>
virtual char const *HOpSelectAreaOOC<SelectionSet>::GetName()

virtual

Returns

A pointer to a character string denoting the name of the operator, which is “HOpSelectAreaOOC”.
template<typename SelectionSet>
virtual HBaseOperator *HOpSelectAreaOOC<SelectionSet>::Clone()

virtual

Creates a new operator which is associated with the same view as the current operator. The user is responsible for deleting the newly created operator.

Returns

A pointer to a copy of this operator.
template<typename SelectionSet>
virtual int HOpSelectAreaOOC<SelectionSet>::OnLButtonDown(HEventInfo &e)

virtual

Starts to create a selection box that will select points inside it.

Parameters

e: An HEventInfo object containing information about the current event.

Returns

A value indicating the status of the event.
template<typename SelectionSet>
virtual int HOpSelectAreaOOC<SelectionSet>::OnLButtonUp(HEventInfo &e)

virtual

Finalizes the selection box created by OnLButtonDown and selects points that lie inside the box.

Parameters

e: An HEventInfo object containing information about the current event.

Returns

A value indicating the status of the event.
template<typename SelectionSet>
HSelectionSetOOC<SelectionSet> &HOpSelectAreaOOC<SelectionSet>::GetSelectionSet()

private