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

#include <HObjects.h>

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)
 
- Public Member Functions inherited from HObject
 HObject ()
 

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::HEdgeVertexSelectionObject ( HBaseView view)

Constructs an HEdgeVertexSelectionObject object and registers callback for mouse events.

Parameters
viewA pointer to the HBaseView object.

Member Function Documentation

◆ GetName()

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

Implements HObject.

◆ GetStaticName()

static const char* HEdgeVertexSelectionObject::GetStaticName ( )
static
Returns
The name of the object which is 'ev_select'.

◆ IncludeEntity()

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.

◆ OnLButtonDown()

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.

◆ OnLButtonUp()

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.

◆ OnMouseMove()

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

◆ m_Point1

HPoint HEdgeVertexSelectionObject::m_Point1
protected

The first edge point.

◆ m_Point2

HPoint HEdgeVertexSelectionObject::m_Point2
protected

The second edge point.

◆ m_pView

HBaseView* HEdgeVertexSelectionObject::m_pView
protected

A pointer to the HBaseView object.

◆ m_SegKey

HC_KEY HEdgeVertexSelectionObject::m_SegKey
protected

The key of the included segment.


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