]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/BaseMPRWidget.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / BaseMPRWidget.h
index a5ba35c31bebd7e5243a7651831b704eb7cb96c0..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( );
@@ -121,11 +123,8 @@ namespace cpPlugins
       {
         enum { IMAGE, MESH } Tag;
         DataObject*          Source;
-        union
-        {
-          vtkImageData* Image;
-          PolyDataActor Mesh;
-        };
+        vtkImageData*        Image;
+        PolyDataActor        Mesh;
 
         Data( );
         virtual ~Data( );