]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/QT/ActorsWidgetInterface.h
...
[cpPlugins.git] / lib / cpExtensions / QT / ActorsWidgetInterface.h
1 #ifndef __cpExtensions__QT__ActorsWidgetInterface__h__
2 #define __cpExtensions__QT__ActorsWidgetInterface__h__
3
4 #include <cpExtensions/Config.h>
5
6 #ifdef cpExtensions_QT4
7
8 #include <string>
9 #include <set>
10
11 namespace cpExtensions
12 {
13   namespace QT
14   {
15     /**
16      */
17     class cpExtensions_EXPORT ActorsWidgetInterface
18     {
19     public:
20       typedef ActorsWidgetInterface Self;
21
22     public:
23       ActorsWidgetInterface( ) { }
24       virtual ~ActorsWidgetInterface( ) { }
25
26       virtual std::set< std::string > GetActorsNames( ) const = 0;
27       virtual bool IsWindowLevelImageActor( const std::string& name ) const = 0;
28       virtual bool IsLUTImageActor( const std::string& name ) const = 0;
29       virtual bool Is3DActor( const std::string& name ) const = 0;
30
31       virtual void GetScalarRange( const std::string& name, double r[ 2 ] ) const = 0;
32       virtual void GetWindowLevel( const std::string& name, double wl[ 2 ] ) const = 0;
33       virtual double GetWindow( const std::string& name ) const = 0;
34       virtual double GetLevel( const std::string& name ) const = 0;
35       virtual char GetImageInterpolation( const std::string& name ) const = 0;
36
37       virtual void GetColor( const std::string& name, double& r, double& g, double& b ) const = 0;
38       virtual double GetOpacity( const std::string& name ) const = 0;
39       virtual double GetPointSize( const std::string& name ) const = 0;
40       virtual double GetLineWidth( const std::string& name ) const = 0;
41       virtual int GetRepresentation( const std::string& name ) const = 0;
42
43       virtual void SetScalarRange( const std::string& name, double r[ 2 ] ) = 0;
44       virtual void SetScalarRange( const std::string& name, double min, double max ) = 0;
45       virtual void SetWindowLevel( const std::string& name, double wl[ 2 ] ) = 0;
46       virtual void SetWindowLevel( const std::string& name, double w, double l ) = 0;
47       virtual void SetWindow( const std::string& name, double w ) = 0;
48       virtual void SetLevel( const std::string& name, double l ) = 0;
49       virtual void SetImageInterpolation( const std::string& name, char i ) = 0;
50
51       virtual void SetColor( const std::string& name, double r, double g, double b ) = 0;
52       virtual void SetOpacity( const std::string& name, double o ) = 0;
53       virtual void SetPointSize( const std::string& name, double s ) = 0;
54       virtual void SetLineWidth( const std::string& name, double w ) = 0;
55       virtual void SetRepresentationToPoints( const std::string& name ) = 0;
56       virtual void SetRepresentationToSurface( const std::string& name ) = 0;
57       virtual void SetRepresentationToWireframe( const std::string& name ) = 0;
58     };
59
60   } // ecapseman
61
62 } // ecapseman
63
64 #endif // cpExtensions_QT4
65
66 #endif // __cpExtensions__QT__ActorsWidgetInterface__h__
67
68 // eof - $RCSfile$