X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcpExtensions%2FQT%2FMPR3DWidget.h;fp=lib%2FcpExtensions%2FQT%2FMPR3DWidget.h;h=b9f3ef670f8ea9d1befd21bca0a0ae68e03a8686;hb=3393941bf8f26babc7b592db434b40c1b747a687;hp=0000000000000000000000000000000000000000;hpb=bb04d28d6b6a805d4443dfea6145a396aefb5f6d;p=cpPlugins.git diff --git a/lib/cpExtensions/QT/MPR3DWidget.h b/lib/cpExtensions/QT/MPR3DWidget.h new file mode 100644 index 0000000..b9f3ef6 --- /dev/null +++ b/lib/cpExtensions/QT/MPR3DWidget.h @@ -0,0 +1,57 @@ +#ifndef __cpExtensions__QT__MPR3DWidget__h__ +#define __cpExtensions__QT__MPR3DWidget__h__ + +#include + +#ifdef cpExtensions_QT4 + +// ------------------------------------------------------------------------- +class vtkDataSet; + +// ------------------------------------------------------------------------- +namespace cpExtensions +{ + namespace Visualization { class MPR3DActors; } + + namespace QT + { + /** + */ + class cpExtensions_EXPORT MPR3DWidget + : public cpExtensions::QT::RendererWidget + { + Q_OBJECT; + + public: + typedef MPR3DWidget Self; + typedef cpExtensions::QT::RendererWidget Superclass; + + public: + explicit MPR3DWidget( QWidget* parent = NULL, Qt::WindowFlags f = 0 ); + virtual ~MPR3DWidget( ); + + void SetImage( vtkImageData* image, const std::string& name ); + void Add( vtkDataSet* data, const std::string& name ); + + void SetSliceNumber( int orientation, int slice ); + void SetSlicesNumbers( int x, int y, int z ); + + void SetScalarRange( double r[ 2 ] ); + void SetWindowLevel( double wl[ 2 ] ); + void SetImageOpacity( double o ); + void SetImageInterpolation( unsigned char i ); + + protected: + vtkSmartPointer< cpExtensions::Visualization::MPR3DActors > m_Actors; + std::string m_ImageName; + }; + + } // ecapseman + +} // ecapseman + +#endif // cpExtensions_QT4 + +#endif // __cpExtensions__QT__MPR3DWidget__h__ + +// eof - $RCSfile$