]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/BaseMPRWidget.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / BaseMPRWidget.h
index cd269f41e58f0560569d31f8ec4c585e825543c7..d3b89dd8b097fba87fc354d9b10f27db01770e5d 100644 (file)
@@ -45,6 +45,7 @@ namespace cpPlugins
       Q_OBJECT;
 
     public:
+      typedef BaseMPRWidget Self;
       typedef cpExtensions::Visualization::MPRObjects TMPRObjects;
 
       typedef TMPRObjects::TStyle                   TStyle;
@@ -69,6 +70,7 @@ namespace cpPlugins
         DataObject* data, const std::string& name,
         const std::string& parent
         );
+      const std::string& GetMainImage( ) const;
       bool SetMainImage( const std::string& name );
       void DeleteData( const std::string& name );
       void DeleteAllData( );
@@ -98,6 +100,8 @@ namespace cpPlugins
       void _SyncTop( int a, int b );
 
     protected:
+      static double cm_Colors[ 8 ][ 3 ];
+
       Ui::BaseMPRWidget*             m_UI;
       vtkSmartPointer< TMPRObjects > m_MPRObjects;
       QVTKWidget*                    m_VTK[ 4 ];
@@ -119,11 +123,8 @@ namespace cpPlugins
       {
         enum { IMAGE, MESH } Tag;
         DataObject*          Source;
-        union
-        {
-          vtkImageData* Image;
-          PolyDataActor Mesh;
-        };
+        vtkImageData*        Image;
+        PolyDataActor        Mesh;
 
         Data( );
         virtual ~Data( );