Text3D.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using System;
  2. using System.Drawing;
  3. namespace PaintDotNet.Data.SurfacePlot
  4. {
  5. public class Text3D
  6. {
  7. /**
  8. * Creates a new Text3D object.
  9. *
  10. * @param text - the text string
  11. * @param x - x position of the text element
  12. * @param y - y position of the text element
  13. * @param z - z position of the text element
  14. * @param color - color of the text element
  15. * @param size - size the text element
  16. */
  17. public Text3D(String text, double x, double y, double z, Color color, double size)
  18. {
  19. this.text = text;
  20. this.x = x;
  21. this.y = y;
  22. this.z = z;
  23. this.color = color;
  24. this.size = size;
  25. this.number = 1;
  26. }
  27. public Text3D(String text, double x, double y, double z, Color color, double size, int number)
  28. {
  29. this.text = text;
  30. this.x = x;
  31. this.y = y;
  32. this.z = z;
  33. this.color = color;
  34. this.size = size;
  35. this.number = number;
  36. }
  37. /**
  38. * the text string
  39. */
  40. public String text;
  41. /**
  42. * the x position of the text element
  43. */
  44. public double x;
  45. /**
  46. * the y position of the text element
  47. */
  48. public double y;
  49. /**
  50. * the z position of the text element
  51. */
  52. public double z;
  53. /**
  54. * the color of the text element
  55. */
  56. public Color color;
  57. /**
  58. * the size of the text element
  59. */
  60. public double size;
  61. public int number;
  62. }
  63. }