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