HOpCameraManipulateTouch

class HOpCameraManipulateTouch

The HOpCameraManipulateTouch class combines the touch versions of the Orbit, Pan and Zoom Operators.

HOpCameraManipulateTouch implements three touch event methods defined on the base class and maps the event information to the touch versions of orbit, pan, zoom and roll of the camera. The current implementation uses a single touch for orbit and two touches for pan, zoom and roll respectively More Detailed Description: see event methods.

Inherits from: HBaseOperator

Methods

HOpCameraManipulateTouch::HOpCameraManipulateTouch(HBaseView *view, int DoRepeat = 0, int DoCapture = 1, HBaseOperator *orbit = 0, HBaseOperator *pan = 0, HBaseOperator *zoom = 0, HBaseOperator *roll = 0)

Constructs an HOpCameraManipulateTouch object.

Parameters

view: A pointer to an HBaseView object.

DoRepeat: An integer denoting whether this is a repeatable operator. This parameter has been deprecated.

DoCapture: An integer denoting whether the mouse state should be captured, which means that all mouse events should be received after a mousedown, even if it leaves the window. This parameter has been deprecated.

orbit: A pointer to an HOpCameraOrbitTouch object. If you pass null, HOpCameraManipulateTouch will make construct a new one.

pan: A pointer to an HOpCameraPanTouch object. If you pass null, HOpCameraManipulateTouch will make construct a new one.

zoom: A pointer to an HOpCameraZoomTouch object. If you pass null, HOpCameraManipulateTouch will make construct a new one.

roll: A pointer to an HOpCameraRollTouch object. If you pass null, HOpCameraManipulateTouch will make construct a new one.

virtual HOpCameraManipulateTouch::~HOpCameraManipulateTouch()

virtual

virtual char const *HOpCameraManipulateTouch::GetName()

virtual

Returns

A pointer to a character string denoting the name of the operator which is ‘HOpCameraManipulateTouch‘.
virtual int HOpCameraManipulateTouch::OnTouchesDown(HEventInfo &hevent)

virtual

This method handles the touches down event.

Parameters

hevent: An HEventInfo object containing information about the current event.

Returns

An HOperatorReturn indicating the status of the event.
virtual int HOpCameraManipulateTouch::OnTouchesMove(HEventInfo &hevent)

virtual

This method handles the touches moved event

Parameters

hevent: An HEventInfo object containing information about the current event.

Returns

An HOperatorReturn indicating the status of the event.
virtual int HOpCameraManipulateTouch::OnTouchesUp(HEventInfo &hevent)

virtual

This method handles the touches up event.

Parameters

hevent: An HEventInfo object containing information about the current event.

Returns

An HOperatorReturn indicating the status of the event.
virtual HBaseOperator *HOpCameraManipulateTouch::Clone()

virtual

Creates a new operator which is a copy of the current operator. The user is responsible for deleting the newly created operator.

Returns

A pointer to the newly created HOpCameraManipulateTouch object.
virtual bool HOpCameraManipulateTouch::OperatorStarted(void)

virtual

Operator has been started if true, and has not been started if false.

Variables

HBaseOperator *HOpCameraManipulateTouch::m_pOrbitOperator

protected

A pointer to the orbit operator.

HBaseOperator *HOpCameraManipulateTouch::m_pPanOperator

protected

A pointer to the pan operator.

HBaseOperator *HOpCameraManipulateTouch::m_pZoomOperator

protected

A pointer to the zoom operator.

HBaseOperator *HOpCameraManipulateTouch::m_pRollOperator

protected

A pointer to the zoom operator.

HEventInfo *HOpCameraManipulateTouch::m_LastEvent

private

float HOpCameraManipulateTouch::m_time

private

float