1 #ifndef __cpExtensions__QT__ActorsWidgetInterface__h__
2 #define __cpExtensions__QT__ActorsWidgetInterface__h__
4 #include <cpExtensions/Config.h>
6 #ifdef cpExtensions_QT4
11 namespace cpExtensions
17 class cpExtensions_EXPORT ActorsWidgetInterface
20 typedef ActorsWidgetInterface Self;
23 ActorsWidgetInterface( ) { }
24 virtual ~ActorsWidgetInterface( ) { }
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;
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;
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;
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;
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;
64 #endif // cpExtensions_QT4
66 #endif // __cpExtensions__QT__ActorsWidgetInterface__h__