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