X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FBaseMPRWidget.h;h=d3b89dd8b097fba87fc354d9b10f27db01770e5d;hb=19a9e1774044cc32c415ad38695800c1d169820d;hp=a5ba35c31bebd7e5243a7651831b704eb7cb96c0;hpb=d87f7bee6741e5211324dfb72ccc0e2e59e91dd7;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/BaseMPRWidget.h b/lib/cpPlugins/Interface/BaseMPRWidget.h index a5ba35c..d3b89dd 100644 --- a/lib/cpPlugins/Interface/BaseMPRWidget.h +++ b/lib/cpPlugins/Interface/BaseMPRWidget.h @@ -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( );