]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/QT/ActorsWidgetInterface.h
6af66eac6a73cf41d0b896eb6b7fb09470843d1f
[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 #include <string>
7 #include <set>
8
9 class vtkRenderWindowInteractor;
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< vtkRenderWindowInteractor* > GetInteractors( ) const = 0;
27
28       virtual std::set< std::string > GetActorsNames( ) const = 0;
29       virtual bool IsWindowLevelImageActor( const std::string& name ) const = 0;
30       virtual bool IsLUTImageActor( const std::string& name ) const = 0;
31       virtual bool Is3DActor( const std::string& name ) const = 0;
32
33       virtual void GetScalarRange( const std::string& name, double r[ 2 ] ) const = 0;
34       virtual void GetWindowLevel( const std::string& name, double wl[ 2 ] ) const = 0;
35       virtual double GetWindow( const std::string& name ) const = 0;
36       virtual double GetLevel( const std::string& name ) const = 0;
37       virtual char GetImageInterpolation( const std::string& name ) const = 0;
38
39       virtual void GetColor( const std::string& name, double& r, double& g, double& b ) const = 0;
40       virtual double GetOpacity( const std::string& name ) const = 0;
41       virtual double GetPointSize( const std::string& name ) const = 0;
42       virtual double GetLineWidth( const std::string& name ) const = 0;
43       virtual int GetRepresentation( const std::string& name ) const = 0;
44
45       virtual void SetScalarRange( const std::string& name, double r[ 2 ] ) = 0;
46       virtual void SetScalarRange( const std::string& name, double min, double max ) = 0;
47       virtual void SetWindowLevel( const std::string& name, double wl[ 2 ] ) = 0;
48       virtual void SetWindowLevel( const std::string& name, double w, double l ) = 0;
49       virtual void SetWindow( const std::string& name, double w ) = 0;
50       virtual void SetLevel( const std::string& name, double l ) = 0;
51       virtual void SetImageInterpolation( const std::string& name, char i ) = 0;
52
53       virtual void SetColor( const std::string& name, double r, double g, double b ) = 0;
54       virtual void SetOpacity( const std::string& name, double o ) = 0;
55       virtual void SetPointSize( const std::string& name, double s ) = 0;
56       virtual void SetLineWidth( const std::string& name, double w ) = 0;
57       virtual void SetRepresentationToPoints( const std::string& name ) = 0;
58       virtual void SetRepresentationToSurface( const std::string& name ) = 0;
59       virtual void SetRepresentationToWireframe( const std::string& name ) = 0;
60     };
61
62   } // ecapseman
63
64 } // ecapseman
65
66 #endif // __cpExtensions__QT__ActorsWidgetInterface__h__
67
68 // eof - $RCSfile$