#ifndef PRIMITIVEEDITOR_H #define PRIMITIVEEDITOR_H #include #include "qglview.h" namespace Ui { class PrimitiveEditor; } class PrimitiveEditor : public QWidget { Q_OBJECT public: enum PrimitiveType { Plane, Cube, Ellipsoid, Disc, Cone, Cylinder, Torus }; Q_ENUMS(PrimitiveType) explicit PrimitiveEditor(QWidget *parent = nullptr); ~PrimitiveEditor(); void assignQGLView(QGLView * v); protected: void showEditors(); Ui::PrimitiveEditor *ui; QGLView * view; QMap > editors; QList all_editors; private slots: void on_buttonAdd_clicked(); void on_comboPrimitives_currentIndexChanged(int index); }; #endif // PRIMITIVEEDITOR_H