ConstructRectangleOperator

class HPS.ConstructRectangleOperator : public HPS.Operator

Subclassed by HPS.SelectAreaOperator, HPS.ZoomBoxOperator

Public Functions

ConstructRectangleOperator ()
ConstructRectangleOperator (HPS.ConstructRectangleOperator in_that)
ConstructRectangleOperator (HPS.MouseButtons in_mouse_trigger)
ConstructRectangleOperator (HPS.MouseButtons in_mouse_trigger, HPS.ModifierKeys in_modifier_trigger)
ConstructRectangleOperator (HPS.MouseButtons in_mouse_trigger, HPS.ModifierKeys in_modifier_trigger, bool draw_faces)
override void Dispose ()
HPS.Rectangle GetInnerWindowRectangle ()

Returns the rectangle associated with this operator in inner window coordinates. If there is only one view, this is the same as GetWindowRectangle(). If there are multiple views, this is useful for operations done on the inner window level, such as drawing.

override string GetName ()

Returns the name of the Operator.

HPS.Rectangle GetWindowRectangle ()

Returns the rectangle associated with this operator in window coordinates. If there is only one view, this is the same as GetInnerWindowRectangle(). If there are multiple views, this is useful for operations done on the window level, such as selection.

bool IsRectangleValid ()
override bool OnMouseDown (HPS.MouseState in_state)

This function is called whenever HPS receives a MouseEvent that signals a mouse button was pressed.

Param in_state

A MouseState object describing the current mouse state.

Return

true if the input event was handled, false otherwise.

override bool OnMouseMove (HPS.MouseState in_state)

This function is called whenever HPS receives a MouseEvent that signals the mouse moved

Param in_state

A MouseState object describing the current mouse state.

Return

true if the input event was handled, false otherwise.

override bool OnMouseUp (HPS.MouseState in_state)

This function is called whenever HPS receives a MouseEvent that signals a mouse button was released.

Param in_state

A MouseState object describing the current mouse state.

Return

true if the input event was handled, false otherwise.

override bool OnTouchDown (HPS.TouchState in_state)

This function is called whenever HPS receives a TouchEvent that signals the device was touched.

Param in_state

A TouchState object describing the current touch state.

Return

true if the input event was handled, false otherwise.

override bool OnTouchMove (HPS.TouchState in_state)

This function is called whenever HPS receives a TouchEvent that signals a point of contact has moved.

Param in_state

A TouchState object describing the current touch state.

Return

true if the input event was handled, false otherwise.

override bool OnTouchUp (HPS.TouchState in_state)

This function is called whenever HPS receives a TouchEvent that signals a point of contact has been released.

Param in_state

A TouchState object describing the current touch state.

Return

true if the input event was handled, false otherwise.

override void OnViewAttached (HPS.View in_attached_view)

This function is called whenever a view is attached to this operator.

Param in_attached_view

The view attached to this operator.