]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbmaracasvisuAnimationSphere.h
#3262 creaMaracasVisu Feature New Normal - Export LookupTable fron ColorLayerImageV...
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuAnimationSphere.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 #ifndef __bbmaracasvisuAnimationSphere_h_INCLUDED__
27 #define __bbmaracasvisuAnimationSphere_h_INCLUDED__
28 #include "bbtkAtomicBlackBox.h"
29 #include "iostream"
30
31
32 #include <vtkRenderer.h>
33 #include <vtkActor.h>
34 #include <vtkSphereSource.h>
35 #include <vtkLinearTransform.h>
36
37
38 namespace bbcreaMaracasVisu
39 {
40
41 class /*BBTK_EXPORT*/ AnimationSphere
42  : 
43    public bbtk::AtomicBlackBox
44 {
45   BBTK_BLACK_BOX_INTERFACE(AnimationSphere,bbtk::AtomicBlackBox);
46   BBTK_DECLARE_INPUT(Renderer ,vtkRenderer*);
47   BBTK_DECLARE_INPUT(Index,int);
48   BBTK_DECLARE_INPUT(Step,int);
49   BBTK_DECLARE_INPUT(lstIndexs,std::vector<int>);
50   BBTK_DECLARE_INPUT(lstPointX,std::vector<double>);
51   BBTK_DECLARE_INPUT(lstPointY,std::vector<double>);
52   BBTK_DECLARE_INPUT(lstPointZ,std::vector<double>);
53   BBTK_DECLARE_INPUT(lstRadio ,std::vector<double>);
54   BBTK_DECLARE_INPUT(Colour   ,std::vector<double>);
55   BBTK_DECLARE_INPUT(Opacity  ,double);
56   BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
57 //  BBTK_DECLARE_OUTPUT(Out,double);
58   BBTK_PROCESS(Process);
59   void Process();
60
61   vtkActor                      *sphereActor;
62   vtkSphereSource       *vtksphere;
63
64 };
65
66 BBTK_BEGIN_DESCRIBE_BLACK_BOX(AnimationSphere,bbtk::AtomicBlackBox);
67 BBTK_NAME("AnimationSphere");
68 BBTK_AUTHOR("InfoTeam  CREATIS-LRMN");
69 BBTK_DESCRIPTION("Animation Sphere");
70 BBTK_CATEGORY("Animation");
71 BBTK_INPUT(AnimationSphere,Renderer,"Renderer",vtkRenderer*,"");
72 BBTK_INPUT(AnimationSphere,Index,"Indexs",int,"");
73 BBTK_INPUT(AnimationSphere,Step,"Step",int,"");
74 BBTK_INPUT(AnimationSphere,lstIndexs,"list of Indexs",std::vector<int>,"");
75 BBTK_INPUT(AnimationSphere,lstPointX,"lstPointX",std::vector<double>,"");
76 BBTK_INPUT(AnimationSphere,lstPointY,"lstPointY",std::vector<double>,"");
77 BBTK_INPUT(AnimationSphere,lstPointZ,"lstPointZ",std::vector<double>,"");
78 BBTK_INPUT(AnimationSphere,lstRadio,"lstRadio",std::vector<double>,"");
79 BBTK_INPUT(AnimationSphere,Colour,"Colour",std::vector<double>,"");
80 BBTK_INPUT(AnimationSphere,Opacity,"Opacity of the sphere",double,"");
81 BBTK_INPUT(AnimationSphere,Transform,"vtkTransform", vtkLinearTransform *,"");
82 //BBTK_OUTPUT(AnimationSphere,Out,"First output",double,"");
83 BBTK_END_DESCRIBE_BLACK_BOX(AnimationSphere);
84 }
85 // EO namespace bbcreaMaracasVisu
86
87 #endif // __bbmaracasvisuAnimationSphere_h_INCLUDED__
88