qwt_polar.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
  2. * QwtPolar Widget Library
  3. * Copyright (C) 2008 Uwe Rathmann
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the Qwt License, Version 1.0
  7. *****************************************************************************/
  8. #ifndef QWT_POLAR_H
  9. #define QWT_POLAR_H 1
  10. #include "qwt_polar_global.h"
  11. namespace QwtPolar
  12. {
  13. //! Unit of an angle
  14. enum AngleUnit
  15. {
  16. //! 0.0 -> 2_M_PI
  17. Radians,
  18. //! 0.0 -> 360.0
  19. Degrees,
  20. //! 0.0 - 400.0
  21. Gradians,
  22. //! 0.0 - 1.0
  23. Turns
  24. };
  25. //! An enum, that identifies the type of a coordinate
  26. enum Coordinate
  27. {
  28. //! Azimuth
  29. Azimuth,
  30. //! Radius
  31. Radius
  32. };
  33. /*!
  34. Indices used to identify an axis.
  35. \sa Scale
  36. */
  37. enum Axis
  38. {
  39. //! Azimuth axis
  40. AxisAzimuth,
  41. //! Left axis
  42. AxisLeft,
  43. //! Right axis
  44. AxisRight,
  45. //! Top axis
  46. AxisTop,
  47. //! Bottom axis
  48. AxisBottom,
  49. //! Number of available axis
  50. AxesCount
  51. };
  52. /*!
  53. Indices used to identify a scale.
  54. \sa Axis
  55. */
  56. enum Scale
  57. {
  58. //! Azimuth scale
  59. ScaleAzimuth = Azimuth,
  60. //! Radial scale
  61. ScaleRadius = Radius,
  62. //! Number of scales
  63. ScaleCount
  64. };
  65. }
  66. #endif