X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=bbtk%2Fsrc%2FbbcreaMaracasVisuManualPaint.h;h=b48977515f2d9f8d9c1015dc9582365c0ef715e7;hb=d92a7b41bf7a8a91f68ea25a66618fd94742c9c7;hp=cb3b6bf84fb70b8d3af3c86d62e8c05086a71f4d;hpb=24937478048aca664712bb708240bff79879e0d9;p=creaMaracasVisu.git diff --git a/bbtk/src/bbcreaMaracasVisuManualPaint.h b/bbtk/src/bbcreaMaracasVisuManualPaint.h index cb3b6bf..b489775 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,13 +49,16 @@ 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(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.. //===== @@ -68,9 +68,12 @@ 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_CATEGORY("widget"); BBTK_INPUT(ManualPaint,In,"Input image to be modified",vtkImageData*,""); -BBTK_INPUT(ManualPaint,WxVtkBaseView,"creaMaracasVisu viewer",wxVtkBaseView*,""); +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..