Developer documentation | Axl-2.5.1

axlInspectorObjectCircleArc.h
Go to the documentation of this file.
1 /* axlInspectorObjectCircleArc.h ---
2  *
3  * Author: Valentin Michelet
4  * Copyright (C) 2008 - Valentin 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: Valentin Michelet
9  * Update #: 21
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLINSPECTOROBJECTCIRCLEARC_H
21 #define AXLINSPECTOROBJECTCIRCLEARC_H
22 
23 #include "axlGuiExport.h"
25 #include <QtWidgets>
26 
27 class axlCircleArc;
28 class dtkAbstractData;
29 
30 class axlInspectorObjectCircleArcPrivate;
31 
33 {
34  Q_OBJECT
35 
36 public:
37  axlInspectorObjectCircleArc(QWidget *parent = 0);
38  virtual ~axlInspectorObjectCircleArc(void);
39 
40  QSize sizeHint(void) const;
41 
42 //signals:
43 // void colorChanged(QColor color, dtkAbstractData *data);
44 // void dataChangedByGeometry(dtkAbstractData *data);
45 // void update(void);
46 // void modifiedProperty(dtkAbstractData *,int);
47 
48 public slots:
49  void setData(axlCircleArc *arc);
50 
51  void onCoordDataChangedPoint1_x(double x);
52  void onCoordDataChangedPoint1_y(double y);
53  void onCoordDataChangedPoint1_z(double z);
54 
55  void onCoordDataChangedPoint2_x(double x);
56  void onCoordDataChangedPoint2_y(double y);
57  void onCoordDataChangedPoint2_z(double z);
58 
59  void onCoordDataChangedCenter_x(double x);
60  void onCoordDataChangedCenter_y(double y);
61  void onCoordDataChangedCenter_z(double z);
62 
63  void onCoordDataChangedNormal_x(double x);
64  void onCoordDataChangedNormal_y(double y);
65  void onCoordDataChangedNormal_z(double z);
66 
67  void onSizeChanged(double);
68  void onColorChanged(QColor color);
69  void onOpacityChanged(int opacity);
70 
71  void openShader(void);
72  void onShaderStateChanged(bool isShader);
73  void onShaderChanged(QString shader);
74  void onLineEditShaderChanged(QString shader);
75 
76  void manageNormal(double);
77  void manageCenter(double);
78  void inverseNormal(void);
79 
80 public slots:
81  void updateValues(void);
82 
83 private:
84  void initComboBoxShaderValue(void);
85  void initWidget(void);
86  int initOpacityValue(void);
87  int initSizeValue(void);
88  QString initShaderValue(void);
89  QColor initColorValue(void);
90 
91 private:
92  axlInspectorObjectCircleArcPrivate* d;
93 };
94 
95 #endif // AXLINSPECTOROBJECTCIRCLEARC_H
#define AXLGUI_EXPORT
Definition: axlGuiExport2.h:15
virtual void setData(dtkAbstractData *data)
void initComboBoxShaderValue(QComboBox *comboBoxShader, QLineEdit *lineEditShader)