HEdgeVertexSelectionObject

Functions

HEdgeVertexSelectionObject

~HEdgeVertexSelectionObject

int

OnMouseMove

int

OnLButtonDown

int

OnLButtonUp

void

IncludeEntity

char const *

GetName

char const *

GetStaticName

Detailed Description

class HEdgeVertexSelectionObject : public HObject, public HMouseListener

The HEdgeVertexSelectionObject class handles interactive “mouse-over” selection of triangles inside a shell.

This class allows you to see the backsidge edges of a shell while highlighting the closest vertices during a mouse-over.

Public Functions

HEdgeVertexSelectionObject(HBaseView *view)

Constructs an HEdgeVertexSelectionObject object and registers callback for mouse events.

Parameters:

view – A pointer to the HBaseView object.

~HEdgeVertexSelectionObject()
virtual int OnMouseMove(HEventInfo &hevent)

This is the mouse move handler. As the mouse moves, this method identifies if the user has moved the cursor over a shell edge. If the mouse cursor is over a selectable edge, it indentifies and marks the edge.

Parameters:

hevent – An HEventInfo object containing information about the current event

Returns:

An HOperatorReturn indicating the status of the event.

virtual int OnLButtonDown(HEventInfo &hevent)

This is the left button down handler. This method records if the left mouse button was pressed while the shift and control keys were down and the mouse move method had found a selectable edge.

Parameters:

hevent – An HEventInfo object containing information about the current event.

Returns:

An HOperatorReturn indicating the status of the event.

virtual int OnLButtonUp(HEventInfo &hevent)

This is the left button up handler. If the user had pressed the left mouse button while the control and shift keys were down and the cursor was over a selectable edge, then geometry manipulator handles are created.

Parameters:

hevent – An HEventInfo object containing information about the current event.

Returns:

An HOperatorReturn indicating the status of the event.

void IncludeEntity(HBaseView *view, HC_KEY movekey)

This is a helper function for the mouse move handler. It allows for invisible edge display.

Parameters:
  • view – A pointer to the view object.

  • movekey – The segment key to include.

Returns:

An HOperatorReturn indicating the status of the event.

virtual char const *GetName()
Returns:

The name of the object which is ‘ev_select’.

Public Static Functions

static char const *GetStaticName()
Returns:

The name of the object which is ‘ev_select’.