#include "wxMaracasMPR.h"
#include "vtkImageData.h"
#include "vtkRenderer.h"
+#include "wxMPRWidget2.h"
namespace bbcreaMaracasVisu
{
class wxWidgetMPR : public wxPanel
{
public:
- wxWidgetMPR(ViewerMPR* box,wxWindow* parent, marImageData *marimagedata);
+ wxWidgetMPR(ViewerMPR* box,wxWindow* parent, marImageData *marimagedata=NULL);
~wxWidgetMPR();
//if the MPR had generated the refresh event
//refreshView
void Refresh();
+
+ void setImageData(vtkImageData* img);
+ void ConfigureVTK();
private:
-
+
ViewerMPR *mbbViewerMPR;
wxMPRWidget2 *wxwidget;
std::vector<int> point;
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ViewerMPR,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(Title,std::string);
BBTK_DECLARE_INPUT(In, vtkImageData *);
BBTK_DECLARE_OUTPUT(Renderer,vtkRenderer *);
private:
wxWidgetMPR *wxwidget;
+ vtkImageData *_img;
};
BBTK_BEGIN_DESCRIBE_BLACK_BOX(ViewerMPR,bbtk::WxBlackBox);