]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/ActorPropertiesQtDialog.h
...
[cpPlugins.git] / lib / cpPlugins / ActorPropertiesQtDialog.h
1 #ifndef __CPPLUGINS__ACTORPROPERTIESQTDIALOG__H__
2 #define __CPPLUGINS__ACTORPROPERTIESQTDIALOG__H__
3
4 #include <cpPlugins/ActorProperties.h>
5
6 #ifdef cpPlugins_QT4
7
8 #include <QDialog>
9 #include <QDialogButtonBox>
10 #include <QGridLayout>
11 #include <QLabel>
12 #include <QVBoxLayout>
13 /*
14   #include <set>
15   #include <vtkProp.h>
16   #include <vtkRenderWindow.h>
17   #include <vtkSmartPointer.h>
18
19   #include <QApplication>
20
21   class vtkProp;
22 */
23
24 namespace cpPlugins
25 {
26   /**
27    */
28   class cpPlugins_EXPORT ActorPropertiesQtDialog
29     : public QDialog
30   {
31     Q_OBJECT;
32
33   public:
34     ActorPropertiesQtDialog(
35       QWidget* parent = 0, Qt::WindowFlags f = 0
36       );
37     virtual ~ActorPropertiesQtDialog( );
38
39     virtual bool addActor( vtkProp* obj );
40     virtual bool addRenderWindow( vtkRenderWindow* win );
41     virtual int exec( );
42
43   protected:
44     /* TODO
45        virtual void _addButtons( );
46        virtual void _updateWidgets( );
47
48        virtual bool _configureForAxes( );
49        virtual bool _configureForImage( );
50        virtual bool _configureForMesh( );
51
52        void _setWindow( double w );
53        void _setLevel( double l );
54        void _render( );
55
56        template< class _TActor >
57        inline bool _addActor( vtkProp* obj );
58
59        protected slots:
60        void _boxWindow( double v );
61        void _sldWindow( int v );
62        void _boxLevel( double v );
63        void _sldLevel( int v );
64        void _sldOpacity( int v );
65        void _boxPointSize( int v );
66        void _boxLineWidth( int v );
67        void _scalarVisibility( int v );
68        void _color( );
69     */
70
71     /* TODO
72        virtual void updateParameters( );
73        virtual void updateView( );
74
75        protected:
76        virtual void _addButtons( );
77        virtual void _updateWidgets( );
78
79        protected slots:
80        virtual void _dlg_OpenSingleFile( );
81        virtual void _dlg_SaveSingleFile( );
82        virtual void _dlg_OpenSinglePath( );
83        virtual void _dlg_OpenMultipleFiles( );
84        virtual void _dlg_AddInt( );
85        virtual void _dlg_AddUint( );
86        virtual void _dlg_AddReal( );
87     */
88
89   protected:
90     cpPlugins::ActorProperties* m_MainWidget;
91     QLabel* m_Title;
92     QGridLayout* m_MainLayout;
93     QVBoxLayout* m_ToolsLayout;
94     QDialogButtonBox* m_Buttons;
95   };
96
97 } // ecapseman
98
99 #endif // cpPlugins_QT4
100
101 #endif // __CPPLUGINS__ACTORPROPERTIESQTDIALOG__H__
102
103 // eof - $RCSfile$