ISceneNodeAnimatorCameraMaya.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 IRR_I_SCENE_NODE_ANIMATOR_CAMERA_MAYA_H_INCLUDED
  5. #define IRR_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