Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HEdgeVertexSelectionObject Class Reference

The HEdgeVertexSelectionObject class handles interactive "mouse-over" selection of triangles inside a shell. More...

#include <HObjects.h>

List of all members.

Public Member Functions

const char * GetName ()
 HEdgeVertexSelectionObject (HBaseView *view)
void IncludeEntity (HBaseView *view, HC_KEY movekey)
virtual int OnLButtonDown (HEventInfo &hevent)
virtual int OnLButtonUp (HEventInfo &hevent)
virtual int OnMouseMove (HEventInfo &hevent)

Static Public Member Functions

static const char * GetStaticName ()

Protected Attributes

HPoint m_Point1
HPoint m_Point2
HBaseViewm_pView
HC_KEY m_SegKey

Detailed Description

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.


Constructor & Destructor Documentation

HEdgeVertexSelectionObject::HEdgeVertexSelectionObject ( HBaseView view)

Constructs an HEdgeVertexSelectionObject object and registers callback for mouse events.

Parameters:
viewA pointer to the HBaseView object.

Member Function Documentation

const char* HEdgeVertexSelectionObject::GetName ( ) [virtual]
Returns:
The name of the object which is 'ev_select'.

Implements HObject.

static const char* HEdgeVertexSelectionObject::GetStaticName ( ) [static]
Returns:
The name of the object which is 'ev_select'.
void HEdgeVertexSelectionObject::IncludeEntity ( HBaseView view,
HC_KEY  movekey 
)

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

Parameters:
viewA pointer to the view object.
movekeyThe segment key to include.
Returns:
An HOperatorReturn indicating the status of the event.
virtual int HEdgeVertexSelectionObject::OnLButtonDown ( HEventInfo hevent) [virtual]

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:
heventAn HEventInfo object containing information about the current event.
Returns:
An HOperatorReturn indicating the status of the event.
virtual int HEdgeVertexSelectionObject::OnLButtonUp ( HEventInfo hevent) [virtual]

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:
heventAn HEventInfo object containing information about the current event.
Returns:
An HOperatorReturn indicating the status of the event.
virtual int HEdgeVertexSelectionObject::OnMouseMove ( HEventInfo hevent) [virtual]

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:
heventAn HEventInfo object containing information about the current event
Returns:
An HOperatorReturn indicating the status of the event.

Member Data Documentation

The first edge point.

The second edge point.

A pointer to the HBaseView object.

The key of the included segment.


The documentation for this class was generated from the following file: