You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

colorvector3d.cpp 758B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #include "colorvector3d.h"
  2. ColorVector3D::ColorVector3D()
  3. : Vector3D(0.0, 0.0, 0.0)
  4. , _color(Qt::black)
  5. {
  6. }
  7. ColorVector3D::ColorVector3D(const QColor &color)
  8. : Vector3D(0.0, 0.0, 0.0)
  9. , _color(color)
  10. {
  11. }
  12. ColorVector3D::ColorVector3D(const QColor &color, double x, double y, double z)
  13. : Vector3D(x, y, z)
  14. , _color(color)
  15. {
  16. }
  17. ColorVector3D::ColorVector3D(const QColor& color, const Vector3D &other)
  18. : Vector3D(other)
  19. , _color(color)
  20. {
  21. }
  22. ColorVector3D::ColorVector3D(const ColorVector3D &other)
  23. : Vector3D(other)
  24. , _color(other._color)
  25. {
  26. }
  27. ColorVector3D::~ColorVector3D()
  28. {
  29. }
  30. QColor ColorVector3D::getColor() const
  31. {
  32. return _color;
  33. }
  34. void ColorVector3D::setColor(const QColor &color)
  35. {
  36. _color = color;
  37. }