MouseParameters.h 1.04 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

#ifndef T3D_MOUSE_PARAMS_H
#define T3D_MOUSE_PARAMS_H

#include "I3dMouseParams.h"


class MouseParameters : public I3dMouseParam
{
public:
	MouseParameters();
	~MouseParameters();

	// I3dmouseSensor interface
	bool		IsPanZoom()  const;
	bool		IsRotate()  const;
	ESpeed		GetSpeed()  const;

	void		SetPanZoom(bool isPanZoom);
	void		SetRotate(bool isRotate);
	void		SetSpeed(ESpeed speed);

	// I3dmouseNavigation interface
	ENavigation			GetNavigationMode()  const;
	EPivot				GetPivotMode()  const;
	EPivotVisibility	GetPivotVisibility()  const;
	bool				IsLockHorizon()  const;

	void				SetLockHorizon(bool bOn);
	void				SetNavigationMode(ENavigation navigation);
	void				SetPivotMode(EPivot pivot);
	void				SetPivotVisibility(EPivotVisibility visibility);

private:

	MouseParameters (const MouseParameters&);
	const MouseParameters& operator =(const MouseParameters&);

	ENavigation			fNavigation;
	EPivot				fPivot;
	EPivotVisibility	fPivotVisibility;
	bool				fIsLockHorizon;

	bool				fIsPanZoom;
	bool				fIsRotate;
	ESpeed				fSpeed;
};

#endif