ISceneNodeAnimatorCameraMaya.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef __I_SCENE_NODE_ANIMATOR_CAMERA_MAYA_H_INCLUDED__
  5. #define __I_SCENE_NODE_ANIMATOR_CAMERA_MAYA_H_INCLUDED__
  6. #include "ISceneNodeAnimator.h"
  7. namespace irr
  8. {
  9. namespace scene
  10. {
  11. //! Special scene node animator for Maya-style cameras
  12. /** This scene node animator can be attached to a camera to make it act like a 3d
  13. modeling tool.
  14. The camera is moving relative to the target with the mouse, by pressing either
  15. of the three buttons.
  16. In order to move the camera, set a new target for the camera. The distance defines
  17. the current orbit radius the camera moves on. Distance can be changed via the setter
  18. or by mouse events.
  19. */
  20. class ISceneNodeAnimatorCameraMaya : public ISceneNodeAnimator
  21. {
  22. public:
  23. //! Returns the speed of movement
  24. virtual f32 getMoveSpeed() const = 0;
  25. //! Sets the speed of movement
  26. virtual void setMoveSpeed(f32 moveSpeed) = 0;
  27. //! Returns the rotation speed
  28. virtual f32 getRotateSpeed() const = 0;
  29. //! Set the rotation speed
  30. virtual void setRotateSpeed(f32 rotateSpeed) = 0;
  31. //! Returns the zoom speed
  32. virtual f32 getZoomSpeed() const = 0;
  33. //! Set the zoom speed
  34. virtual void setZoomSpeed(f32 zoomSpeed) = 0;
  35. //! Returns the current distance, i.e. orbit radius
  36. virtual f32 getDistance() const = 0;
  37. //! Set the distance
  38. virtual void setDistance(f32 distance) = 0;
  39. //! Set the minimal distance to the camera target for zoom
  40. virtual void setTargetMinDistance(f32 minDistance) = 0;
  41. //! Returns the minimal distance to the camera target for zoom
  42. virtual f32 getTargetMinDistance() const = 0;
  43. };
  44. } // end namespace scene
  45. } // end namespace irr
  46. #endif