HOpCameraManipulateTouch

Functions

HOpCameraManipulateTouch

~HOpCameraManipulateTouch

char const *

GetName

int

OnTouchesDown

int

OnTouchesMove

int

OnTouchesUp

HBaseOperator *

Clone

bool

OperatorStarted

Detailed Description

class HOpCameraManipulateTouch : public HBaseOperator

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.

Public Functions

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()
virtual char const *GetName()
Returns

A pointer to a character string denoting the name of the operator which is ‘HOpCameraManipulateTouch’.

virtual int OnTouchesDown(HEventInfo &hevent)

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 OnTouchesMove(HEventInfo &hevent)

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 OnTouchesUp(HEventInfo &hevent)

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 *Clone()

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 OperatorStarted(void)

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