MouseWheelOperator

class HPS.MouseWheelOperator : public HPS.Operator

Public Types

enum ZoomType

Values:

Fast

The operator optimizes for time. It is possible to zoom through geometry.

Accurate

The operator optimizes zooming so that it is not possible to zoom through geometry.

Public Functions

override void Dispose ()
override string GetName ()

Returns the name of the Operator.

MouseWheelOperator ()

Constructor for MouseWheelOperator

MouseWheelOperator (HPS.MouseWheelOperator in_that)
MouseWheelOperator (HPS.MouseWheelOperator.ZoomType in_default_type)

Constructor for MouseWheelOperator

Param in_default_type

The default zoom type for this operator.

MouseWheelOperator (HPS.MouseWheelOperator.ZoomType in_default_type, HPS.ModifierKeys in_alternate_type_modifiers)

Constructor for MouseWheelOperator

Param in_default_type

The default zoom type for this operator.

Param in_alternate_type_modifiers

The modifier button that, when pressed, will activate the zoom type opposite to that specified in in_default_type. Passing an empty ModifierKey object prevents the zoom type from being anything but what was specified in in_default_type.

override void OnModelAttached ()

This function is called whenever a model is attached to the view that is attached to this operator. If no view is attached to this operator, this function will not be called.

override bool OnMouseWheel (HPS.MouseState in_state)

This function is called whenever HPS receives a MouseEvent that signals the mouse wheel was scrolled.

Param in_state

A MouseState object describing the current mouse 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.

void UpdateZoomLimit ()

Call when scene bounds changes to update the mouse wheel zoom limit