]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbmaracasvisuAnimationSphere.h
6b1716ab80608f371236ebf745bb562f2d0ee651
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuAnimationSphere.h
1 #ifndef __bbmaracasvisuAnimationSphere_h_INCLUDED__
2 #define __bbmaracasvisuAnimationSphere_h_INCLUDED__
3 #include "bbtkAtomicBlackBox.h"
4 #include "iostream"
5
6
7 #include <vtkRenderer.h>
8 #include <vtkActor.h>
9 #include <vtkSphereSource.h>
10 #include <vtkLinearTransform.h>
11
12
13 namespace bbcreaMaracasVisu
14 {
15
16 class /*BBTK_EXPORT*/ AnimationSphere
17  : 
18    public bbtk::AtomicBlackBox
19 {
20   BBTK_BLACK_BOX_INTERFACE(AnimationSphere,bbtk::AtomicBlackBox);
21   BBTK_DECLARE_INPUT(Renderer ,vtkRenderer*);
22   BBTK_DECLARE_INPUT(Index,int);
23   BBTK_DECLARE_INPUT(Step,int);
24   BBTK_DECLARE_INPUT(lstIndexs,std::vector<int>);
25   BBTK_DECLARE_INPUT(lstPointX,std::vector<double>);
26   BBTK_DECLARE_INPUT(lstPointY,std::vector<double>);
27   BBTK_DECLARE_INPUT(lstPointZ,std::vector<double>);
28   BBTK_DECLARE_INPUT(lstRadio ,std::vector<double>);
29   BBTK_DECLARE_INPUT(Colour   ,std::vector<double>);
30   BBTK_DECLARE_INPUT(Opacity  ,double);
31   BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
32 //  BBTK_DECLARE_OUTPUT(Out,double);
33   BBTK_PROCESS(Process);
34   void Process();
35
36   vtkActor                      *sphereActor;
37   vtkSphereSource       *vtksphere;
38
39 };
40
41 BBTK_BEGIN_DESCRIBE_BLACK_BOX(AnimationSphere,bbtk::AtomicBlackBox);
42 BBTK_NAME("AnimationSphere");
43 BBTK_AUTHOR("InfoTeam  CREATIS-LRMN");
44 BBTK_DESCRIPTION("Animation Sphere");
45 BBTK_CATEGORY("Animation");
46 BBTK_INPUT(AnimationSphere,Renderer,"Renderer",vtkRenderer*,"");
47 BBTK_INPUT(AnimationSphere,Index,"Indexs",int,"");
48 BBTK_INPUT(AnimationSphere,Step,"Step",int,"");
49 BBTK_INPUT(AnimationSphere,lstIndexs,"list of Indexs",std::vector<int>,"");
50 BBTK_INPUT(AnimationSphere,lstPointX,"lstPointX",std::vector<double>,"");
51 BBTK_INPUT(AnimationSphere,lstPointY,"lstPointY",std::vector<double>,"");
52 BBTK_INPUT(AnimationSphere,lstPointZ,"lstPointZ",std::vector<double>,"");
53 BBTK_INPUT(AnimationSphere,lstRadio,"lstRadio",std::vector<double>,"");
54 BBTK_INPUT(AnimationSphere,Colour,"Colour",std::vector<double>,"");
55 BBTK_INPUT(AnimationSphere,Opacity,"Opacity of the sphere",double,"");
56 BBTK_INPUT(AnimationSphere,Transform,"vtkTransform", vtkLinearTransform *,"");
57 //BBTK_OUTPUT(AnimationSphere,Out,"First output",double,"");
58 BBTK_END_DESCRIBE_BLACK_BOX(AnimationSphere);
59 }
60 // EO namespace bbcreaMaracasVisu
61
62 #endif // __bbmaracasvisuAnimationSphere_h_INCLUDED__
63