DefaultHandle.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using bs;
  4. namespace bs.Editor
  5. {
  6. /** @addtogroup Handles
  7. * @{
  8. */
  9. /// <summary>
  10. /// Base class for all the built-in handle types.
  11. /// </summary>
  12. public abstract class DefaultHandle : Handle
  13. {
  14. protected Vector3 position;
  15. protected Quaternion rotation;
  16. /// <summary>
  17. /// World position of the handle.
  18. /// </summary>
  19. public Vector3 Position
  20. {
  21. get { return position; }
  22. set { position = value; }
  23. }
  24. /// <summary>
  25. /// World rotation of the handle.
  26. /// </summary>
  27. public Quaternion Rotation
  28. {
  29. get { return rotation; }
  30. set { rotation = value; }
  31. }
  32. /// <summary>
  33. /// Checks is the handle currently being interacted with.
  34. /// </summary>
  35. /// <returns>True if the handle is being interacted with (dragged or clicked).</returns>
  36. internal abstract bool IsDragged();
  37. }
  38. /** @} */
  39. }