2
0

BsHandleSliderDisc.h 709 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsHandleSlider.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_ED_EXPORT HandleSliderDisc : public HandleSlider
  7. {
  8. public:
  9. HandleSliderDisc(const Vector3& normal, float radius, float snapValue, bool fixedScale);
  10. ~HandleSliderDisc();
  11. Quaternion updateDelta(const Quaternion& oldValue) const;
  12. float getDelta() const { return 0.0f; /* TODO */ }
  13. Vector3 getDeltaDirection() const { return Vector3::ZERO; /* TODO */ }
  14. Quaternion getNewRotation() const { return mRotation; /* TODO */ }
  15. virtual const Matrix4& getTransform() const;
  16. protected:
  17. static const float TORUS_RADIUS;
  18. Vector3 mNormal;
  19. float mRadius;
  20. Matrix4 mTorusRotation;
  21. };
  22. }