Developer documentation | Axl-2.5.1

axlInspectorObjectSphere.h
Go to the documentation of this file.
1 /* axlInspectorObjectSphere.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 AXLINSPECTOROBJECTSPHERE_H
21 #define AXLINSPECTOROBJECTSPHERE_H
22 
23 #include "axlGuiExport.h"
24 
25 #include <QtWidgets>
26 
27 class axlSphere;
28 class dtkAbstractData;
29 
30 class axlInspectorObjectSpherePrivate;
31 
33 {
34  Q_OBJECT
35 
36 public:
37  axlInspectorObjectSphere(QWidget *parent = 0);
39 
40  QSize sizeHint(void) const;
41 
42 
43 signals :
44 
45  void colorChanged(QColor color, dtkAbstractData *data);
46 
47  void dataChangedByShader(dtkAbstractData *data, QString isophoteShaderXml);
48  void dataChangedByOpacity(dtkAbstractData *data, double opacity);
49 // void dataChangedBySize(dtkAbstractData *data, double size);
50  void dataChangedByColor(dtkAbstractData *data, double red, double green, double blue);
51  void dataChangedByGeometry(dtkAbstractData *data);
52 
53 
54  void update(void);
55  void modifiedProperty(dtkAbstractData *,int);
56 
57 public slots:
58  void setData(axlSphere *point);
59  void onCoordDataChanged_x(double x);
60  void onCoordDataChanged_y(double y);
61  void onCoordDataChanged_z(double z);
62  void onRadiusChanged(double radius);
63 
64  void onColorChanged(QColor color);
65 // void onSizeChanged(int size);
66  void onOpacityChanged(int opacity);
67 
68  void openShader(void);
69  void onShaderStateChanged(bool isShader);
70  void onShaderChanged(QString);
71  void onLineEditShaderChanged(QString);
72 
73  //void onResolutionChanged(int number);
74  void updateValues(void);
75 public slots :
76  void onRecievedDataChanged(void);
77 
78 private :
79  void initComboBoxShaderValue(void);
80  void initWidget(void);
81 // int initSizeValue(void);
82  int initOpacityValue(void);
83  QString initShaderValue(void);
84  QColor initColorValue(void);
85 
86 private:
87  axlInspectorObjectSpherePrivate *d;
88 };
89 
90 #endif //AXLINSPECTOROBJECTSPHERE_H
#define AXLGUI_EXPORT
Definition: axlGuiExport2.h:15
Class axlSphere defines 3D spheres.
Definition: axlSphere.h:33