//===== // 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) //===== #ifndef __bbcreaMaracasVisuTubeTreeFilter_h_INCLUDED__ #define __bbcreaMaracasVisuTubeTreeFilter_h_INCLUDED__ #include "bbcreaMaracasVisu_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include "iostream" #include #include #include "vtkImageData.h" #include "vtkActor.h" #include "vtkPolyData.h" #include "vtkPolyDataMapper.h" #include "vtkPoints.h" #include "vtkCellArray.h" #include "vtkProperty.h" #include "vtkLinearTransform.h" namespace bbcreaMaracasVisu { class bbcreaMaracasVisu_EXPORT TubeTreeFilter : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(TubeTreeFilter,bbtk::AtomicBlackBox); //===== // 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) //===== BBTK_DECLARE_INPUT(Renderer , vtkRenderer*); BBTK_DECLARE_INPUT(lstIndexs , std::vector); BBTK_DECLARE_INPUT(lstPointX , std::vector); BBTK_DECLARE_INPUT(lstPointY , std::vector); BBTK_DECLARE_INPUT(lstPointZ , std::vector); BBTK_DECLARE_INPUT(lstRadio , std::vector); BBTK_DECLARE_INPUT(Colour , std::vector); BBTK_DECLARE_INPUT(ColourLaw , int); BBTK_DECLARE_INPUT(Transform , vtkLinearTransform *); BBTK_DECLARE_INPUT(Opacity , double ); BBTK_DECLARE_INPUT(iTube , int ); BBTK_DECLARE_OUTPUT(OutTube,vtkProp3D *); BBTK_PROCESS(Process); void Process(); private: std::vector vecVtkActors; void DrawOneTube(int iGeneral,int numPoints, int iTube); void SetGraphicProperties(); int oldLstSize; //===== // 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) //===== }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(TubeTreeFilter,bbtk::AtomicBlackBox); BBTK_NAME("TubeTreeFilter"); BBTK_AUTHOR("Info-Dev"); BBTK_DESCRIPTION("vtk Tube Tree Filter"); BBTK_CATEGORY("actor"); BBTK_INPUT(TubeTreeFilter,Renderer,"Renderer",vtkRenderer*,""); BBTK_INPUT(TubeTreeFilter,lstIndexs,"Indexs",std::vector,""); BBTK_INPUT(TubeTreeFilter,lstPointX,"lstPointX",std::vector,""); BBTK_INPUT(TubeTreeFilter,lstPointY,"lstPointY",std::vector,""); BBTK_INPUT(TubeTreeFilter,lstPointZ,"lstPointZ",std::vector,""); BBTK_INPUT(TubeTreeFilter,lstRadio,"lstRadio",std::vector,""); BBTK_INPUT(TubeTreeFilter,Colour,"Colour",std::vector,""); BBTK_INPUT(TubeTreeFilter,ColourLaw,"ColorLaw 1(default) solid color, 2 color by segment, 3 color for each point",int,""); BBTK_INPUT(TubeTreeFilter,Transform,"vtkTransform", vtkLinearTransform *,""); BBTK_INPUT(TubeTreeFilter,iTube,"iTube",int,""); BBTK_INPUT(TubeTreeFilter,Opacity,"Opacity",double,""); BBTK_OUTPUT(TubeTreeFilter,OutTube,"Tube[iTube]",vtkProp3D *,""); BBTK_END_DESCRIBE_BLACK_BOX(TubeTreeFilter); //===== // 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) //===== } // EO namespace bbcreaMaracasVisu #endif // __bbcreaMaracasVisuTubeTreeFilter_h_INCLUDED__