+/*# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+# pour la Sant�)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+# Previous Authors : Laurent Guigues, Jean-Pierre Roux
+# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
+#
+# This software is governed by the CeCILL-B license under French law and
+# abiding by the rules of distribution of free software. You can use,
+# modify and/ or redistribute the software under the terms of the CeCILL-B
+# license as circulated by CEA, CNRS and INRIA at the following URL
+# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+# or in the file LICENSE.txt.
+#
+# As a counterpart to the access to the source code and rights to copy,
+# modify and redistribute granted by the license, users are provided only
+# with a limited warranty and the software's author, the holder of the
+# economic rights, and the successive licensors have only limited
+# liability.
+#
+# The fact that you are presently reading this means that you have had
+# knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------ */
+
//=====
// Don't edit this file. This file is generated from xml description..
//=====
#include "bbcreaMaracasVisu_EXPORT.h"
#include "bbtkWxBlackBox.h"
-#include "wxVtkBaseView.h"
#include "vtkImageData.h"
+#include "wxVtkBaseView.h"
-#include "InteractorStyleMaracas.h"
namespace bbcreaMaracasVisu
{
-
-class vtkInteractorManualPaint : public InteractorStyleMaracas {
-public:
- vtkInteractorManualPaint();
- virtual ~vtkInteractorManualPaint();
-
- virtual bool OnMouseMove();
- virtual bool OnLeftButtonDown();
- virtual bool OnLeftButtonUp();
- void SetImage(vtkImageData *image);
-
-private:
- double _Z;
- int _auxZ;
- bool _state;
- vtkImageData *_image;
- void PaintImage( int px, int py, int pz );
-
-protected:
-
-};
-
-
-
-
-
-
class bbcreaMaracasVisu_EXPORT ManualPaint
:
public bbtk::WxBlackBox
// Don't edit this file. This file is generated from xml description..
//=====
BBTK_DECLARE_INPUT(In,vtkImageData*);
- BBTK_DECLARE_INPUT(WxVtkBaseView,wxVtkBaseView*);
+ BBTK_DECLARE_INPUT(In2,vtkImageData*);
+ BBTK_DECLARE_INPUT(WxVtkBaseView1,wxVtkBaseView*);
+ BBTK_DECLARE_INPUT(WxVtkBaseView2,wxVtkBaseView*);
+ BBTK_DECLARE_INPUT(WxVtkBaseView3,wxVtkBaseView*);
+ BBTK_DECLARE_INPUT(WxVtkBaseView4,wxVtkBaseView*);
BBTK_PROCESS(Process);
void Process();
BBTK_CREATE_WIDGET(CreateWidget);
void CreateWidget(wxWindow*);
- vtkInteractorManualPaint *imp;
+ bool firsttime;
//=====
// Don't edit this file. This file is generated from xml description..
//=====
};
BBTK_BEGIN_DESCRIBE_BLACK_BOX(ManualPaint,bbtk::WxBlackBox);
-BBTK_NAME("ManualPaint");
-BBTK_AUTHOR("eduardo davila (Creatis)");
-BBTK_DESCRIPTION("Voxel manual paint");
-BBTK_CATEGORY("__CategoryBlackBox__");
-BBTK_INPUT(ManualPaint,In,"Input image to be modified",vtkImageData*,"");
-BBTK_INPUT(ManualPaint,WxVtkBaseView,"creaMaracasVisu viewer",wxVtkBaseView*,"");
+ BBTK_NAME("ManualPaint");
+ BBTK_AUTHOR("eduardo davila (Creatis)");
+ BBTK_DESCRIPTION("Voxel manual paint");
+ BBTK_CATEGORY("widget");
+
+ BBTK_INPUT(ManualPaint,In,"Input Image / image result",vtkImageData*,"");
+ BBTK_INPUT(ManualPaint,In2,"Image result",vtkImageData*,"");
+ BBTK_INPUT(ManualPaint,WxVtkBaseView1,"creaMaracasVisu viewer 2D",wxVtkBaseView*,"");
+ BBTK_INPUT(ManualPaint,WxVtkBaseView2,"creaMaracasVisu viewer 2D",wxVtkBaseView*,"");
+ BBTK_INPUT(ManualPaint,WxVtkBaseView3,"creaMaracasVisu viewer 2D",wxVtkBaseView*,"");
+ BBTK_INPUT(ManualPaint,WxVtkBaseView4,"creaMaracasVisu viewer 2D",wxVtkBaseView*,"");
+
BBTK_END_DESCRIBE_BLACK_BOX(ManualPaint);
//=====
// Don't edit this file. This file is generated from xml description..