BsHandleSliderPlane.h 777 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsHandleSlider.h"
  4. #include "BsRect3.h"
  5. namespace BansheeEngine
  6. {
  7. class BS_ED_EXPORT HandleSliderPlane : public HandleSlider
  8. {
  9. public:
  10. HandleSliderPlane(const Vector3& dir1, const Vector3& dir2, float length, float snapValue, bool fixedScale);
  11. ~HandleSliderPlane();
  12. bool intersects(const Ray& ray, float& t) const;
  13. void update(const HCamera& camera, const Vector2I& pointerPos, const Ray& ray);
  14. float getDelta() const { return 0.0f; /* TODO */ }
  15. Vector3 getDeltaDirection() const { return Vector3::ZERO; /* TODO */ }
  16. Vector3 getNewPosition() const { return mPosition; /* TODO */ }
  17. protected:
  18. void reset();
  19. Vector3 mDirection1;
  20. Vector3 mDirection2;
  21. float mLength;
  22. Rect3 mCollider;
  23. };
  24. }