]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkGlyphPolyDataNormals.h
bdeecfdf870b227b436e4a820bbb37d3b87cef5a
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkGlyphPolyDataNormals.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbcreaVtkGlyphPolyDataNormals_h_INCLUDED__
5 #define __bbcreaVtkGlyphPolyDataNormals_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include "vtkPolyData.h"
12 #include "vtkRenderer.h"
13 #include "vtkProp3D.h"
14 #include "vtkGlyph3D.h"
15 #include "vtkArrowSource.h"
16 #include "vtkPolyDataMapper.h"
17 #include "vtkActor.h"
18 #include "vtkMaskPoints.h"
19
20 namespace bbcreaVtk
21 {
22
23 class bbcreaVtk_EXPORT GlyphPolyDataNormals
24  : 
25    public bbtk::AtomicBlackBox
26 {
27   BBTK_BLACK_BOX_INTERFACE(GlyphPolyDataNormals,bbtk::AtomicBlackBox);
28 //===== 
29 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
30 //===== 
31   BBTK_DECLARE_INPUT(In,vtkPolyData*);
32   BBTK_DECLARE_INPUT(Opacity, double);
33   BBTK_DECLARE_INPUT(MaskRatio, int);
34   BBTK_DECLARE_INPUT(Active, bool);
35   BBTK_DECLARE_INPUT(Color, std::vector<double>);
36   BBTK_DECLARE_INPUT(Size, double);
37   BBTK_DECLARE_INPUT(GlyphType, int);
38   BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
39   BBTK_DECLARE_OUTPUT(Out,vtkProp3D*);
40   BBTK_PROCESS(Process);
41   void Process();
42
43   bool                                  actorAdded;
44   vtkArrowSource                *arrow;
45   vtkMaskPoints                 *ptMask;
46   vtkGlyph3D                    *glyph;
47   vtkPolyDataMapper     *normalsMapper;
48   vtkActor                              *normalsActor;
49   
50 //===== 
51 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
52 //===== 
53 };
54
55 BBTK_BEGIN_DESCRIBE_BLACK_BOX(GlyphPolyDataNormals,bbtk::AtomicBlackBox);
56 BBTK_NAME("GlyphPolyDataNormals");
57 BBTK_AUTHOR("InfoDev");
58 BBTK_DESCRIPTION("No Description.");
59 BBTK_CATEGORY("empty");
60 BBTK_INPUT(GlyphPolyDataNormals,In,"in PolyData, must set normals beforehand",vtkPolyData*,"");
61 BBTK_INPUT(GlyphPolyDataNormals,Opacity,"Opacity",double,"");
62 BBTK_INPUT(GlyphPolyDataNormals,MaskRatio,"Mask Ratio: select every nth point",int,"");
63 BBTK_INPUT(GlyphPolyDataNormals,Size,"Size",double,"");
64 BBTK_INPUT(GlyphPolyDataNormals,Active,"Active",bool,"");
65 BBTK_INPUT(GlyphPolyDataNormals,GlyphType,"Glyph type 0: Line | 1: Arrow",int,"");
66 BBTK_INPUT(GlyphPolyDataNormals,Color,"Color",std::vector<double>,"");
67 BBTK_INPUT(GlyphPolyDataNormals,Renderer,"Renderer",vtkRenderer*,"");
68 BBTK_OUTPUT(GlyphPolyDataNormals,Out,"out vtkProp3D",vtkProp3D*,"");
69 BBTK_END_DESCRIBE_BLACK_BOX(GlyphPolyDataNormals);
70 //===== 
71 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
72 //===== 
73 }
74 // EO namespace bbcreaVtk
75
76 #endif // __bbcreaVtkGlyphPolyDataNormals_h_INCLUDED__
77