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.

wavefrontobj.h 498B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef WAVEFRONTOBJ_H
  2. #define WAVEFRONTOBJ_H
  3. #include <QObject>
  4. #include <QIODevice>
  5. #include "utils/vector3d.h"
  6. class WaveFrontObj : public QObject
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit WaveFrontObj(QObject *parent = 0);
  11. signals:
  12. public slots:
  13. bool openFile(const QString& filename);
  14. bool load(QIODevice& device);
  15. private:
  16. QString _error;
  17. };
  18. struct WaveFrontObjData
  19. {
  20. QList<Vector3D> _vertexes;
  21. QList<QList<int> > _faces;
  22. QString _error;
  23. };
  24. #endif // WAVEFRONTOBJ_H