Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCameraManipulateTouch Class Reference

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

#include <HOpCameraManipulateTouch.h>

List of all members.

Public Member Functions

virtual HBaseOperatorClone ()
virtual const char * GetName ()
 HOpCameraManipulateTouch (HBaseView *view, int DoRepeat=0, int DoCapture=1, HBaseOperator *orbit=0, HBaseOperator *pan=0, HBaseOperator *zoom=0, HBaseOperator *roll=0)
virtual int OnTouchesDown (HEventInfo &hevent)
virtual int OnTouchesMove (HEventInfo &hevent)
virtual int OnTouchesUp (HEventInfo &hevent)
virtual bool OperatorStarted (void)
 Operator has been started if true, and has not been started if false.

Protected Attributes

HBaseOperatorm_pOrbitOperator
HBaseOperatorm_pPanOperator
HBaseOperatorm_pRollOperator
HBaseOperatorm_pZoomOperator

Detailed Description

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.


Constructor & Destructor Documentation

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:
viewA pointer to an HBaseView object.
DoRepeatAn integer denoting whether this is a repeatable operator. This parameter has been deprecated.
DoCaptureAn 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.
orbitA pointer to an HOpCameraOrbitTouch object. If you pass null, HOpCameraManipulateTouch will make construct a new one.
panA pointer to an HOpCameraPanTouch object. If you pass null, HOpCameraManipulateTouch will make construct a new one.
zoomA pointer to an HOpCameraZoomTouch object. If you pass null, HOpCameraManipulateTouch will make construct a new one.
rollA pointer to an HOpCameraRollTouch object. If you pass null, HOpCameraManipulateTouch will make construct a new one.

Member Function Documentation

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.

Reimplemented from HBaseOperator.

virtual const char* HOpCameraManipulateTouch::GetName ( ) [virtual]
Returns:
A pointer to a character string denoting the name of the operator which is 'HOpCameraManipulateTouch'.

Reimplemented from HBaseOperator.

virtual int HOpCameraManipulateTouch::OnTouchesDown ( HEventInfo hevent) [virtual]

This method handles the touches down event.

Parameters:
heventAn HEventInfo object containing information about the current event.
Returns:
An HOperatorReturn indicating the status of the event.

Reimplemented from HBaseOperator.

virtual int HOpCameraManipulateTouch::OnTouchesMove ( HEventInfo hevent) [virtual]

This method handles the touches moved event

Parameters:
heventAn HEventInfo object containing information about the current event.
Returns:
An HOperatorReturn indicating the status of the event.

Reimplemented from HBaseOperator.

virtual int HOpCameraManipulateTouch::OnTouchesUp ( HEventInfo hevent) [virtual]

This method handles the touches up event.

Parameters:
heventAn HEventInfo object containing information about the current event.
Returns:
An HOperatorReturn indicating the status of the event.

Reimplemented from HBaseOperator.


Member Data Documentation

A pointer to the orbit operator.

A pointer to the pan operator.

A pointer to the zoom operator.

A pointer to the zoom operator.


The documentation for this class was generated from the following file: