Developer documentation | Axl-2.5.1

axlInspectorObjectTorus.h
Go to the documentation of this file.
1 /* axlInspectorObjectTorus.h ---
2  *
3  * Author: Valntin Michelet
4  * Copyright (C) 2008 - Valntin Michelet, Inria.
5  * Created: Tue Nov 9 16:58:59 2010 (+0100)
6  * Version: $Id$
7  * Last-Updated: Mon Dec 6 15:46:18 2010 (+0100)
8  * By: Valntin Michelet
9  * Update #: 21
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLINSPECTOROBJECTTORUS_H
21 #define AXLINSPECTOROBJECTTORUS_H
22 
23 #include "axlGuiExport.h"
24 
25 #include <QtWidgets>
26 
27 class axlTorus;
28 class dtkAbstractData;
29 
30 class axlInspectorObjectTorusPrivate;
31 
32 class AXLGUI_EXPORT axlInspectorObjectTorus : public QFrame {
33  Q_OBJECT
34 
35 public:
36  axlInspectorObjectTorus(QWidget *parent = 0);
37  virtual ~axlInspectorObjectTorus(void);
38 
39  QSize sizeHint(void) const;
40 
41 signals:
42  void colorChanged(QColor color, dtkAbstractData *data);
43 // void dataChangedByShader(dtkAbstractData *data, QString isophoteShaderXml);
44 // void dataChangedByOpacity(dtkAbstractData *data, double opacity);
45 // void dataChangedByColor(dtkAbstractData *data, double red, double green, double blue);
46  void dataChangedByGeometry(dtkAbstractData *data);
47 
48  void update(void);
49  void modifiedProperty(dtkAbstractData *,int);
50 
51 public slots:
52  void setData(axlTorus* torus);
53 
54  void onCoordDataChangedCenter_x(double x);
55  void onCoordDataChangedCenter_y(double y);
56  void onCoordDataChangedCenter_z(double z);
57 
58  void onCoordDataChangedDirection_x(double x);
59  void onCoordDataChangedDirection_y(double y);
60  void onCoordDataChangedDirection_z(double z);
61 
62  void onRingRadiusChanged(double ringRadius);
63  void onCrossSectionRadiusChanged(double crossSectionRadius);
64 
65  void onColorChanged(QColor color);
66  void onOpacityChanged(int opacity);
67 
68  void openShader(void);
69  void onShaderStateChanged(bool isShader);
70  void onShaderChanged(QString shader);
71  void onLineEditShaderChanged(QString shader);
72  void updateValues(void);
73 
74 private:
75  void initComboBoxShaderValue(void);
76  void initWidget(void);
77  int initOpacityValue(void);
78  QString initShaderValue(void);
79  QColor initColorValue(void);
80 
81 private:
82  axlInspectorObjectTorusPrivate* d;
83 };
84 
85 #endif // AXLINSPECTOROBJECTTORUS_H
#define AXLGUI_EXPORT
Definition: axlGuiExport2.h:15