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)
4 #ifndef __bbcreaVtkMassProperties_h_INCLUDED__
5 #define __bbcreaVtkMassProperties_h_INCLUDED__
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
11 #include <vtkPolyData.h>
16 class bbcreaVtk_EXPORT MassProperties
18 public bbtk::AtomicBlackBox
20 BBTK_BLACK_BOX_INTERFACE(MassProperties,bbtk::AtomicBlackBox);
22 // 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)
24 BBTK_DECLARE_INPUT(In, vtkPolyData*);
25 BBTK_DECLARE_OUTPUT(SurfaceArea,double);
26 BBTK_DECLARE_OUTPUT(VolumeX,double);
27 BBTK_DECLARE_OUTPUT(VolumeY,double);
28 BBTK_DECLARE_OUTPUT(VolumeZ,double);
29 BBTK_DECLARE_OUTPUT(MinCellArea,double);
30 BBTK_DECLARE_OUTPUT(MaxCellArea,double);
31 BBTK_DECLARE_OUTPUT(NormalizedShapeIndex,double);
32 BBTK_PROCESS(Process);
35 // 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)
39 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MassProperties,bbtk::AtomicBlackBox);
40 BBTK_NAME("MassProperties");
41 BBTK_AUTHOR("InfoDev");
42 BBTK_DESCRIPTION("No Description.");
43 BBTK_CATEGORY("empty");
44 BBTK_INPUT(MassProperties,In,"Mesh PolyData",vtkPolyData*,"");
45 BBTK_OUTPUT(MassProperties,SurfaceArea,"Surface Area",double,"");
46 BBTK_OUTPUT(MassProperties,VolumeX,"VolumeX",double,"");
47 BBTK_OUTPUT(MassProperties,VolumeY,"VolumeY",double,"");
48 BBTK_OUTPUT(MassProperties,VolumeZ,"VolumeZ",double,"");
49 BBTK_OUTPUT(MassProperties,MinCellArea,"MinCellArea",double,"");
50 BBTK_OUTPUT(MassProperties,MaxCellArea,"MaxCellArea",double,"");
51 BBTK_OUTPUT(MassProperties,NormalizedShapeIndex,"NormalizedShapeIndex",double,"");
53 BBTK_END_DESCRIBE_BLACK_BOX(MassProperties);
55 // 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)
58 // EO namespace bbcreaVtk
60 #endif // __bbcreaVtkMassProperties_h_INCLUDED__