1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
26 #ifdef _USE_WXWIDGETS_
27 #ifndef __bbcreaMaracasVisuPlaneDirection_h_INCLUDED__
28 #define __bbcreaMaracasVisuPlaneDirection_h_INCLUDED__
29 #include "bbcreaMaracasVisu_EXPORT.h"
30 #include "bbtkWxBlackBox.h"
32 #include <vtkRenderer.h>
33 #include <vtkImageData.h>
35 #include "PlaneDirectionViewer.h"
37 namespace bbcreaMaracasVisu
40 class bbcreaMaracasVisu_EXPORT PlaneDirection
42 public bbtk::WxBlackBox
44 BBTK_BLACK_BOX_INTERFACE(PlaneDirection,bbtk::WxBlackBox);
46 BBTK_DECLARE_INPUT(In,vtkImageData*);
47 BBTK_DECLARE_INPUT(Renderer, vtkRenderer* );
48 BBTK_DECLARE_INPUT(Filename, std::string );
49 BBTK_DECLARE_INPUT( lstPointsX, std::vector<int> );
50 BBTK_DECLARE_INPUT( lstPointsY, std::vector<int> );
51 BBTK_DECLARE_INPUT( lstPointsZ, std::vector<int> );
52 BBTK_DECLARE_INPUT( ArrowSize, int );
53 BBTK_PROCESS(Process);
55 BBTK_CREATE_WIDGET(CreateWidget);
56 void CreateWidget(wxWindow*);
59 PlaneDirectionViewer* _planedir;
65 BBTK_BEGIN_DESCRIBE_BLACK_BOX(PlaneDirection,bbtk::WxBlackBox);
66 BBTK_NAME("PlaneDirection");
67 BBTK_AUTHOR("car-prie@uniandes.edu.co");
68 BBTK_DESCRIPTION("Given a list of points and grouping them in triplets, the box calculates the direction of the plane formed by the three points");
69 BBTK_CATEGORY("actor");
71 BBTK_INPUT(PlaneDirection,In,"Image data to get the spacing, if not found set to 1 1 1",vtkImageData*,"");
72 BBTK_INPUT(PlaneDirection,Renderer,"Renderer",vtkRenderer*,"");
73 BBTK_INPUT(PlaneDirection,Filename,"Filename to save the points of the plane and the direction",std::string,"");
75 BBTK_INPUT(PlaneDirection, lstPointsX, " list of points X ", std::vector<int>, "");
76 BBTK_INPUT(PlaneDirection, lstPointsY, " list of points Y ", std::vector<int>, "");
77 BBTK_INPUT(PlaneDirection, lstPointsZ, " list of points Z ", std::vector<int>, "");
79 BBTK_INPUT(PlaneDirection, ArrowSize, "Size of the arrow ", int, "");
81 BBTK_END_DESCRIBE_BLACK_BOX(PlaneDirection);
83 // EO namespace bbcreaMaracasVisu
85 #endif // __bbcreaMaracasVisuPlaneDirection_h_INCLUDED__
86 #endif // _USE_WXWIDGETS_