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 512B

123456789101112131415161718192021222324252627282930
  1. #include "colorvector3d.h"
  2. ColorVector3D::ColorVector3D(QColor color, double x, double y, double z)
  3. : Vector3D(x, y, z)
  4. , _color(color)
  5. {
  6. }
  7. ColorVector3D::ColorVector3D(QColor color, const Vector3D &other)
  8. : Vector3D(other)
  9. , _color(color)
  10. {
  11. }
  12. ColorVector3D::ColorVector3D(const ColorVector3D &other)
  13. : Vector3D(other)
  14. , _color(other._color)
  15. {
  16. }
  17. QColor ColorVector3D::getColor() const
  18. {
  19. return _color;
  20. }
  21. void ColorVector3D::setColor(const QColor &color)
  22. {
  23. _color = color;
  24. }