Developer documentation | Axl-2.5.1

axlInspectorObjectEllipsoid.h
Go to the documentation of this file.
1 /* axlInspectorObjectEllipsoid.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 axlInspectorObjectEllipsoid_H
21 #define axlInspectorObjectEllipsoid_H
22 
23 #include "axlGuiExport.h"
25 #include <QtWidgets>
26 
27 class axlEllipsoid;
28 class dtkAbstractData;
29 
30 class axlInspectorObjectEllipsoidPrivate;
31 
33 {
34  Q_OBJECT
35 
36 public:
37  axlInspectorObjectEllipsoid(QWidget *parent = 0);
39 
40  QSize sizeHint(void) const;
41 
42 //signals :
43 // void colorChanged(QColor color, dtkAbstractData *data);
44 // void modifiedProperty(dtkAbstractData *,int);
45 // void dataChangedByGeometry(dtkAbstractData *data);
46 // void update(void);
47 
48 public slots:
49  void onUpdateSemix(double radius);
50  void onUpdateSemiy(double radius);
51  void onUpdateSemiz(double radius);
52 
53  void setData(axlEllipsoid *point);
54  void onCoordDataChanged_x(double x);
55  void onCoordDataChanged_y(double y);
56  void onCoordDataChanged_z(double z);
57 
58  void onSemiXDataChanged(double semixx);
59  void onSemiYDataChanged(double semixy);
60  void onSemiZDataChanged(double semixz);
61 
62  void onColorChanged(QColor color);
63  //void onSizeChanged(int size);
64  void onOpacityChanged(int opacity);
65 
66  void openShader(void);
67  void onShaderStateChanged(bool isShader);
68  void onShaderChanged(QString);
69  void onLineEditShaderChanged(QString);
70 
71  void updateValues(void);
72 
73 private :
74  void updateDataNoSignals(void);
75  void initComboBoxShaderValue(void);
76  void initWidget(void);
77  //int initSizeValue(void);
78  int initOpacityValue(void);
79  QString initShaderValue(void);
80  QColor initColorValue(void);
81 
82 private:
83  axlInspectorObjectEllipsoidPrivate *d;
84 };
85 
86 #endif //axlInspectorObjectEllipsoid_H
#define AXLGUI_EXPORT
Definition: axlGuiExport2.h:15
virtual void setData(dtkAbstractData *data)
void initComboBoxShaderValue(QComboBox *comboBoxShader, QLineEdit *lineEditShader)
Class axlEllipsoid defines 3D ellipsoids.
Definition: axlEllipsoid.h:35