ZoomFitTouchOperator
-
class
ZoomFitTouchOperator
: public HPS::Operator The ZoomFitTouchOperator class defines an operator which fits the camera to the model currently loaded. This Operator works for touch-driven devices only. Touch-Driven Devices: Double Tap: Fits the camera to the model currently loaded.
Public Functions
-
virtual bool
OnTouchDown
(TouchState const &in_state) This function is called whenever HPS receives a TouchEvent that signals the device was touched. This function starts the operator and fits the camera to the model currently loaded, if a double tap was received.
Parameters: in_state – A TouchState object describing the current touch state. Returns: true if the input event was handled, false otherwise.
-
virtual bool
OnTouchUp
(TouchState const &in_state) This function is called whenever HPS receives a TouchEvent that signals a point of contact has been released. This function stops the operator.
Parameters: in_state – A TouchState object describing the current touch state. Returns: true if the input event was handled, false otherwise.
-
ZoomFitTouchOperator
()
-
virtual bool