X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbcreaMaracasVisuManualPaint.h;h=0e66ac22467d4992504500144048065851af049e;hb=dea0efc567d8332b2e7eb936e3ba4ac1c11b2542;hp=cb3b6bf84fb70b8d3af3c86d62e8c05086a71f4d;hpb=24937478048aca664712bb708240bff79879e0d9;p=creaMaracasVisu.git diff --git a/bbtk/src/bbcreaMaracasVisuManualPaint.h b/bbtk/src/bbcreaMaracasVisuManualPaint.h index cb3b6bf..0e66ac2 100644 --- a/bbtk/src/bbcreaMaracasVisuManualPaint.h +++ b/bbtk/src/bbcreaMaracasVisuManualPaint.h @@ -1,3 +1,28 @@ +/*# --------------------------------------------------------------------- +# +# 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.. //===== @@ -7,42 +32,14 @@ #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 @@ -52,25 +49,35 @@ class bbcreaMaracasVisu_EXPORT ManualPaint // 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..