ValenceHistogramDialog.hh 880 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
/*
 * ValenceHistogramDialog.hh
 *
 *  Created on: Jan 27, 2016
 *      Author: hc
 */

#ifndef PLUGIN_INFOMESHOBJECT_VALENCEHISTOGRAMDIALOG_HH_
#define PLUGIN_INFOMESHOBJECT_VALENCEHISTOGRAMDIALOG_HH_

11
12
13
#include <ObjectTypes/PolyMesh/PolyMeshTypes.hh>
#include <ObjectTypes/TriangleMesh/TriangleMeshTypes.hh>

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "ui_infoValenceHistograms.hh"

#if QT_VERSION >= 0x050000
  #include <QtWidgets>
#else
  #include <QtGui>
#endif


class ValenceHistogramDialog: public QDialog, public Ui::ValenceHistogramsDlg {
    Q_OBJECT

    public:
        ValenceHistogramDialog(TriMesh &mesh, QWidget *parent = 0);
        ValenceHistogramDialog(PolyMesh &mesh, QWidget *parent = 0);

        template<class MeshT> void init(MeshT &mesh);

    private:
        std::vector<size_t> vertex_valence_hist, face_valence_hist;
};

#endif /* PLUGIN_INFOMESHOBJECT_VALENCEHISTOGRAMDIALOG_HH_ */