]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuColorLayerImageView.h
#3513 ColorLayerImageView2
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuColorLayerImageView.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
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
8 #
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.
15 #
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
20 #  liability.
21 #
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 # ------------------------------------------------------------------------ */
25
26 //=====
27 // Don't edit this file. This file is generated from xml description..
28 //=====
29 #ifdef _USE_WXWIDGETS_
30 #ifndef __bbcreaMaracasVisuColorLayerImageView_h_INCLUDED__
31 #define __bbcreaMaracasVisuColorLayerImageView_h_INCLUDED__
32 #include "bbcreaMaracasVisu_EXPORT.h"
33 #include "bbtkWxBlackBox.h"
34
35 #include "wxVtkBaseView.h"
36 #include <vtkScalarsToColors.h>
37 #include <vtkScalarsToColors.h>
38
39 namespace bbcreaMaracasVisu
40 {
41
42 class bbcreaMaracasVisu_EXPORT ColorLayerImageView
43  :
44    public bbtk::WxBlackBox
45 {
46   BBTK_BLACK_BOX_INTERFACE(ColorLayerImageView,bbtk::WxBlackBox);
47 //=====
48 // Don't edit this file. This file is generated from xml description..
49 //=====
50   BBTK_DECLARE_INPUT(In,vtkImageData*);
51   BBTK_DECLARE_INPUT(Active,bool);
52   BBTK_DECLARE_INPUT(Opacity,int);
53   BBTK_DECLARE_INPUT(TypeControlsInterface,int);
54   BBTK_DECLARE_INPUT(WxVtkBaseView,wxVtkBaseView *);
55   BBTK_DECLARE_INPUT(WxVtkBaseView1,wxVtkBaseView *);
56   BBTK_DECLARE_INPUT(WxVtkBaseView2,wxVtkBaseView *);
57   BBTK_DECLARE_INPUT(lstBaseColor,std::vector<double>);
58   BBTK_DECLARE_INPUT(lstGreyLevelBoundaries,std::vector<double>);
59   BBTK_DECLARE_INPUT(lstTransparenceBoundaries,std::vector<double>);
60   BBTK_DECLARE_INPUT(lstRangeForColorBar,std::vector<double>);
61   BBTK_DECLARE_INPUT(PlainOrGradientColor,bool);
62   BBTK_DECLARE_INPUT(FittingMode,int);
63   BBTK_DECLARE_INPUT(ColorBarPosition,std::vector<int>);
64   BBTK_DECLARE_OUTPUT(NewImage,vtkImageData*);
65   BBTK_DECLARE_OUTPUT(LookupTable,vtkScalarsToColors*);
66   BBTK_DECLARE_OUTPUT(OutOpacity,int);
67   BBTK_PROCESS(Process);
68   void Process();
69   BBTK_CREATE_WIDGET(CreateWidget);
70   void CreateWidget(wxWindow*);
71
72   bool firsttime;
73
74 //=====
75 // Don't edit this file. This file is generated from xml description..
76 //=====
77 };
78
79 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ColorLayerImageView,bbtk::WxBlackBox);
80   BBTK_NAME("ColorLayerImageView");
81   BBTK_AUTHOR("Eduardo DAVILA (Creatis)");
82   BBTK_DESCRIPTION("(wxWidget) Color Layer Image View");
83   BBTK_CATEGORY("__CategoryBlackBox__");
84   BBTK_INPUT(ColorLayerImageView,In,"Input Image",vtkImageData*,"");
85   BBTK_INPUT(ColorLayerImageView,Active,"Active True/False (default True)",bool,"");
86   BBTK_INPUT(ColorLayerImageView,Opacity,"(default 100) 0..100",int,"");
87   BBTK_INPUT(ColorLayerImageView,TypeControlsInterface,"1 (default) All controls, 2 just transparency",int,"");
88   BBTK_INPUT(ColorLayerImageView,WxVtkBaseView," 0 creaMaracasVisuViewer viewer XY,YZ ou XZ",wxVtkBaseView*,"");
89   BBTK_INPUT(ColorLayerImageView,WxVtkBaseView1," 1 creaMaracasVisuViewer viewer XY,YZ ou XZ",wxVtkBaseView*,"");
90   BBTK_INPUT(ColorLayerImageView,WxVtkBaseView2," 2 creaMaracasVisuViewer viewer XY,YZ ou XZ",wxVtkBaseView*,"");
91   BBTK_INPUT(ColorLayerImageView,lstBaseColor,"???EED List of Base Colors in RGB format to define the color map. Requirement: must be of a size being a multiple of 3, with values between 0 and 1. For example, for 2 colors: \"1 0 0 0 0 1\". If not provided as required, the histogram is equally split into three areas, blue, yellow and red.",std::vector<double>,"");
92   BBTK_INPUT(ColorLayerImageView,lstTransparenceBoundaries,"Transparence vector. (The same size of color lst).",std::vector<double>,"");
93
94   BBTK_INPUT(ColorLayerImageView,lstGreyLevelBoundaries,"???EED List of the Grey Level Boundaries to define the color map (grey level outside the color boundaries will not be disayed). Requirement: Must have one more element than the number of colours. For example, for 2 colors: \"50 150 250\". If not provided as required, the histogram is equally split into areas, which number corresponds to the number of colors provided (3 by default).",std::vector<double>,"");
95
96   BBTK_INPUT(ColorLayerImageView,lstRangeForColorBar,"??? EED ",std::vector<double>,"");
97
98
99   BBTK_INPUT(ColorLayerImageView,PlainOrGradientColor,"true=Plane false=Gradient (Default false)",bool,"");
100   BBTK_INPUT(ColorLayerImageView,FittingMode,"Choose the fitting mode between the images, the transformation can be either by Dimension (1), by Spacing (2) or by Pixel (3). If you want to make the choice through a dialog box, choose (-1). Default is by Pixel (3).",int,"");
101
102   BBTK_INPUT(ColorLayerImageView,ColorBarPosition,"default (10,105)",std::vector<int>,"");
103
104   BBTK_OUTPUT(ColorLayerImageView,NewImage,"Image with correct Spacing",vtkImageData*,"");
105   BBTK_OUTPUT(ColorLayerImageView,LookupTable,"LookupTable",vtkScalarsToColors*,"");
106   BBTK_OUTPUT(ColorLayerImageView,OutOpacity,"Opacity",int,"");
107
108 BBTK_END_DESCRIBE_BLACK_BOX(ColorLayerImageView);
109
110 //=====
111 // Don't edit this file. This file is generated from xml description..
112 //=====
113
114 }// EO namespace bbcreaMaracasVisu
115 #endif // __bbcreaMaracasVisuColorLayerImageView_h_INCLUDED__
116 #endif // _USE_WXWIDGETS_
117