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 __bbvtkPlaneClipPolyData_h_INCLUDED__
5 #define __bbvtkPlaneClipPolyData_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
10 #include <vtkSmartPointer.h>
11 #include <vtkPolyData.h>
12 #include <vtkClipPolyData.h>
15 #include <vtkDataSetMapper.h>
17 #include <vtkRenderer.h>
18 #include <vtkRenderWindow.h>
19 #include <vtkRenderWindowInteractor.h>
21 #include <vtkCamera.h>
22 #include <vtkPolyDataMapper.h>
24 #include <vtkProperty.h>
25 #include <vtkSphereSource.h>
30 class bbvtk_EXPORT PlaneClipPolyData
32 public bbtk::AtomicBlackBox
34 BBTK_BLACK_BOX_INTERFACE(PlaneClipPolyData,bbtk::AtomicBlackBox);
36 // 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)
38 BBTK_DECLARE_INPUT(PlaneOrigin,std::vector<double>);
39 BBTK_DECLARE_INPUT(PlaneNormal,std::vector<double>);
40 BBTK_DECLARE_INPUT(PolyData,vtkPolyData*);
41 BBTK_DECLARE_OUTPUT(ClippedPolyData,vtkPolyData*);
42 BBTK_PROCESS(Process);
47 // 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)
51 BBTK_BEGIN_DESCRIBE_BLACK_BOX(PlaneClipPolyData,bbtk::AtomicBlackBox);
52 BBTK_NAME("PlaneClipPolyData");
53 BBTK_AUTHOR("Ricardo A Corredor");
54 BBTK_DESCRIPTION("Clips a polydata with a plane determined by the origin and normal given");
56 BBTK_INPUT(PlaneClipPolyData,PlaneOrigin,"Cutting plane origin",std::vector<double>,"");
57 BBTK_INPUT(PlaneClipPolyData,PlaneNormal,"Cutting plane normal",std::vector<double>,"");
58 BBTK_INPUT(PlaneClipPolyData,PolyData,"PolyData to be clipped",vtkPolyData*,"");
59 BBTK_OUTPUT(PlaneClipPolyData,ClippedPolyData,"New PolyData clipped",vtkPolyData*,"");
60 BBTK_END_DESCRIBE_BLACK_BOX(PlaneClipPolyData);
62 // 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)
67 #endif // __bbvtkPlaneClipPolyData_h_INCLUDED__