您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

colorvector3d.h 488B

123456789101112131415161718192021
  1. #ifndef COLORVECTOR3D_H
  2. #define COLORVECTOR3D_H
  3. #include <QColor>
  4. #include "vector3d.h"
  5. class ColorVector3D : public Vector3D
  6. {
  7. public:
  8. ColorVector3D(QColor color = Qt::black, double x = 0.0, double y = 0.0, double z = 0.0);
  9. ColorVector3D(QColor color = Qt::black, const Vector3D& other = Vector3D());
  10. ColorVector3D(const ColorVector3D& other);
  11. QColor getColor() const;
  12. void setColor(const QColor &color);
  13. private:
  14. QColor _color;
  15. };
  16. #endif // COLORVECTOR3D_H