BsHandleSliderLine.h 598 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsHandleSlider.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_ED_EXPORT HandleSliderLine : public HandleSlider
  7. {
  8. public:
  9. HandleSliderLine(const Vector3& direction, float length, float snapValue, bool fixedScale);
  10. ~HandleSliderLine();
  11. Vector3 updateDelta(const Vector3& oldValue) const;
  12. float getDelta() const { return 0.0f; /* TODO */ }
  13. Vector3 getNewPosition() const { return mPosition; /* TODO */ }
  14. protected:
  15. static const float CAPSULE_RADIUS;
  16. static const float SPHERE_RADIUS;
  17. Vector3 mDirection;
  18. float mLength;
  19. };
  20. }