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.

texturevector3d.cpp 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #include "texturevector3d.h"
  2. TextureVector3D::TextureVector3D()
  3. : ColorVector3D(Qt::white, 0.0, 0.0, 0.0)
  4. , _textureCoord(0.0, 0.0)
  5. {
  6. }
  7. TextureVector3D::TextureVector3D(const Vector2D &textureCoord)
  8. : ColorVector3D(Qt::white, 0.0, 0.0, 0.0)
  9. , _textureCoord(textureCoord)
  10. {
  11. }
  12. TextureVector3D::TextureVector3D(const Vector2D &textureCoord, const QColor &color)
  13. : ColorVector3D(color, 0.0, 0.0, 0.0)
  14. , _textureCoord(textureCoord)
  15. {
  16. }
  17. TextureVector3D::TextureVector3D(const Vector2D &textureCoord, const QColor &color, double x, double y, double z)
  18. : ColorVector3D(color, x, y, z)
  19. , _textureCoord(textureCoord)
  20. {
  21. }
  22. TextureVector3D::TextureVector3D(const Vector2D &textureCoord, const QColor& color, const Vector3D &other)
  23. : ColorVector3D(color, other)
  24. , _textureCoord(textureCoord)
  25. {
  26. }
  27. TextureVector3D::TextureVector3D(const Vector2D &textureCoord, const ColorVector3D &other)
  28. : ColorVector3D(other)
  29. , _textureCoord(textureCoord)
  30. {
  31. }
  32. TextureVector3D::TextureVector3D(const TextureVector3D &other)
  33. : ColorVector3D(other)
  34. , _textureCoord(other._textureCoord)
  35. {
  36. }
  37. TextureVector3D::~TextureVector3D()
  38. {
  39. }
  40. const Vector2D &TextureVector3D::getTextureCoord() const
  41. {
  42. return _textureCoord;
  43. }
  44. void TextureVector3D::setTextureCoord(const Vector2D &textureCoord)
  45. {
  46. _textureCoord = textureCoord;
  47. }