Developer documentation | Axl-2.5.1

axlInspector.h
Go to the documentation of this file.
1 /* axlInspector.h ---
2  *
3  * Author: Meriadeg Perrinel
4  * Copyright (C) 2008 - Julien Wintz, Inria.
5  * Created: Mon Mar 14 18:22:02 2011 (+0100)
6  * Version: $Id$
7  * Last-Updated: Wed Nov 9 10:59:16 2011 (+0100)
8  * By: Julien Wintz
9  * Update #: 51
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLINSPECTOR_H
21 #define AXLINSPECTOR_H
22 
23 #include "axlGuiExport.h"
24 
25 #include <QtWidgets>
26 
27 class axlAbstractData;
28 class dtkAbstractData;
29 class axlDouble;
30 
31 class axlAbstractView;
32 class axlInspectorPrivate;
33 
34 class AXLGUI_EXPORT axlInspector : public QFrame
35 {
36  Q_OBJECT
37 
38 public:
39  axlInspector(QWidget *parent = 0);
40  virtual ~axlInspector(void);
41 
42 public:
43  QSize sizeHint(void) const;
44 
45 public:
46  void insertData(axlAbstractData *data);
47  void insertDataSet(QList<axlAbstractData *> dataSet);
48  QList<dtkAbstractData *> dataSet(void);
49 
50  void setView(axlAbstractView *view);
51  void updateView(void);
52 
53  void sendFieldSignal(QList<axlAbstractData *> dataSet, QString fieldName);
54  void removeData(dtkAbstractData *data);
55 
56  void clearScene(void);
57 
58 signals:
59  void update(void);
60  void inserted(void);
61 
62  void selected(dtkAbstractData *data);
63  void stateChanged(dtkAbstractData *data, int mode);
64  void actorVisibilityChanged(dtkAbstractData *data, bool actorVisibility);
65 
66  void dataInserted(axlAbstractData *data);
67  void dataSetRemoved(QList<dtkAbstractData *> dataSetRemoved);
68 
69  void dataChanged(dtkAbstractData *data);
70  void dataChangedByControlPoints(dtkAbstractData *data);
71  void dataChangedByGeometry(dtkAbstractData *data);
72 // void dataChangedByShader(dtkAbstractData *data, QString isophoteShaderXml);
73 // void dataChangedByShaderFromString(dtkAbstractData *data, QString isophoteShaderXml);
74 // void dataChangedByOpacity(dtkAbstractData *data, double opacity);
75 // void dataChangedBySize(dtkAbstractData *data, double size);
76 // void dataChangedByColor(dtkAbstractData *data, double red, double green, double blue);
77  void modifiedProperty(dtkAbstractData *, int);
78 
79  void interpolationChanded(dtkAbstractData *data, int interpolation);
80 
81 
82  void showCurrentPoint(double u, double v, dtkAbstractData *data);
83  void moveCurrentPoint(double u, double v, dtkAbstractData *data);
84  void hideCurrentPoint(double u, double v, dtkAbstractData *data);
85 
86  void worldCamera(void);
87  void objectCamera(void);
88  void trackballCamera(void);
89  void joystickCamera(void);
90  void switchFullScreen(void);
91 
92 public slots:
93  void onStateChanged(dtkAbstractData *data ,int mode);
94 
95 protected slots:
96  void onShowInspector(bool);
97  void onShowSettings(bool);
98 
99 private:
100  axlInspectorPrivate *d;
101 };
102 
103 #endif
#define AXLGUI_EXPORT
Definition: axlGuiExport2.h:15
Class axlDouble defines a double.
Definition: axlDouble.h:29
Class axlAbstractData defines an API for all type of axel data.