HOpSelectAreaOOC

Functions

HOpSelectAreaOOC

char const *

GetName

HBaseOperator *

Clone

int

OnLButtonDown

int

OnLButtonUp

Detailed Description

template<typename SelectionSet>
class HOpSelectAreaOOC : public HOpSelectArea

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.

Param SelectionSet

The selection set type used by HSelectionSetOOC<SelectionSet>

Public Functions

inline HOpSelectAreaOOC(HBaseView &view)

Constructs an HOpSelectAreaOOC.

Parameters

view – A reference to an HBaseView object.

inline virtual char const *GetName()
Returns

A pointer to a character string denoting the name of the operator, which is “HOpSelectAreaOOC”.

inline virtual HBaseOperator *Clone()

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.

inline virtual int OnLButtonDown(HEventInfo &e)

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.

inline virtual int OnLButtonUp(HEventInfo &e)

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.