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) |
Static Public Member Functions | |
static const char * | GetStaticName () |
Protected Attributes | |
HPoint | m_Point1 |
HPoint | m_Point2 |
HBaseView * | m_pView |
HC_KEY | m_SegKey |
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.
HEdgeVertexSelectionObject::HEdgeVertexSelectionObject | ( | HBaseView * | view | ) |
Constructs an HEdgeVertexSelectionObject object and registers callback for mouse events.
view | A pointer to the HBaseView object. |
const char* HEdgeVertexSelectionObject::GetName | ( | ) | [virtual] |
Implements HObject.
static const char* HEdgeVertexSelectionObject::GetStaticName | ( | ) | [static] |
This is a helper function for the mouse move handler. It allows for invisible edge display.
view | A pointer to the view object. |
movekey | The segment key to include. |
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.
hevent | An HEventInfo object containing information about the current 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.
hevent | An HEventInfo object containing information about the current 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.
hevent | An HEventInfo object containing information about the current event |
HPoint HEdgeVertexSelectionObject::m_Point1 [protected] |
The first edge point.
HPoint HEdgeVertexSelectionObject::m_Point2 [protected] |
The second edge point.
HBaseView* HEdgeVertexSelectionObject::m_pView [protected] |
A pointer to the HBaseView object.
HC_KEY HEdgeVertexSelectionObject::m_SegKey [protected] |
The key of the included segment.