HEdgeVertexSelectionObject
-
class
HEdgeVertexSelectionObject The
HEdgeVertexSelectionObjectclass 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.
Inherits from:
HObject, HMouseListener
Methods
-
HEdgeVertexSelectionObject::HEdgeVertexSelectionObject(HBaseView *view) Constructs an
HEdgeVertexSelectionObjectobject and registers callback for mouse events.Parameters
view: A pointer to theHBaseViewobject.
-
HEdgeVertexSelectionObject::~HEdgeVertexSelectionObject()
-
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
hevent: AnHEventInfoobject containing information about the current eventReturns
AnHOperatorReturnindicating 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
hevent: AnHEventInfoobject containing information about the current event.Returns
AnHOperatorReturnindicating 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
hevent: AnHEventInfoobject containing information about the current event.Returns
AnHOperatorReturnindicating the status of the event.
-
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
view: A pointer to the view object.
movekey: The segment key to include.
Returns
AnHOperatorReturnindicating the status of the event.
-
char const *
HEdgeVertexSelectionObject::GetName() virtual
Returns
The name of the object which is ‘ev_select’.
-
static char const *
HEdgeVertexSelectionObject::GetStaticName() static
Returns
The name of the object which is ‘ev_select’.
Variables
-
HPoint
HEdgeVertexSelectionObject::m_Point1 protected
The first edge point.
-
HPoint
HEdgeVertexSelectionObject::m_Point2 protected
The second edge point.
-
HC_KEY
HEdgeVertexSelectionObject::m_SegKey protected
HC_KEYThe key of the included segment.
-
HBaseView *
HEdgeVertexSelectionObject::m_pView protected
A pointer to the
HBaseViewobject.
-
bool
HEdgeVertexSelectionObject::m_bFound private
bool
-
bool
HEdgeVertexSelectionObject::m_blButtonDown private
bool