Developer documentation | Axl-2.5.1

axlInspectorObjectMesh.h
Go to the documentation of this file.
1 /* axlInspectorObjectMesh.h ---
2  *
3  * Author: Meriadeg Perrinel
4  * Copyright (C) 2008 - Meriadeg Perrinel, Inria.
5  * Created: Fri Mar 18 11:18:43 2011 (+0100)
6  * Version: $Id$
7  * Last-Updated: Mon Mar 28 16:57:54 2011 (+0200)
8  * By: Meriadeg Perrinel
9  * Update #: 13
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef axlInspectorObjectMesh_H
21 #define axlInspectorObjectMesh_H
22 
23 #include "axlGuiExport.h"
25 #include <QtWidgets>
26 
27 class axlAbstractData;
28 class dtkAbstractData;
29 
30 class axlMesh;
31 class axlInspectorObjectMeshPrivate;
32 
34 {
35  Q_OBJECT
36 
37 public:
38  axlInspectorObjectMesh(QWidget *parent = 0);
40 
41  QSize sizeHint(void) const;
42 
43 signals:
44  void interpolationChanded(dtkAbstractData *data, int interpolation);
45 
46 // void colorChanged(QColor color, dtkAbstractData *data);
47 // void dataChangedByGeometry(dtkAbstractData *data);
48 // void update(void);
49 // void modifiedProperty(dtkAbstractData *,int);
50 
51 public slots:
52  void setData(axlAbstractData *data);
53  void onColorChanged(QColor color);
54  void onSizeChanged(int size);
55 
56  void onOpacityChanged(int opacity);
57 
58  void openShader(void);
59  void onShaderStateChanged(bool isShader);
60  void onShaderChanged(QString);
61  void onLineEditShaderChanged(QString);
62 
63  void onUpdateGeometry(void);
64 
65 public slots:
66  void onInterpolationChanged(int modeInterpolation);
67 
68 
69 private :
70  void initComboBoxShaderValue(void);
71  void setObjectDataState(void);
72  void initWidget(void);
73  int initSizeValue(void);
74  int initOpacityValue(void);
75  QString initShaderValue(void);
76  QColor initColorValue(void);
77 
78 
79 private:
80  axlInspectorObjectMeshPrivate *d;
81 };
82 
83 #endif //axlInspectorObjectMesh_H
#define AXLGUI_EXPORT
Definition: axlGuiExport2.h:15
virtual void setData(dtkAbstractData *data)
void initComboBoxShaderValue(QComboBox *comboBoxShader, QLineEdit *lineEditShader)
Class axlAbstractData defines an API for all type of axel data.
Class axlMesh defines a piecewise-linear 3D object.
Definition: axlMesh.h:41