-//=====
+//=====
// 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 __bbcreaMaracasVisuTubeFilter_h_INCLUDED__
#define __bbcreaMaracasVisuTubeFilter_h_INCLUDED__
#include "bbcreaMaracasVisu_EXPORT.h"
#include <vtkProp3D.h>
#include <vtkRenderer.h>
#include <vtkTransform.h>
+#include <vtkActor.h>
+#include <vtkLinearTransform.h>
+#include <vtkSmartPointer.h>
namespace bbcreaMaracasVisu
{
public:
MaracasTubeFilter();
~MaracasTubeFilter();
-
+
void SetvtkRenderer( vtkRenderer *render);
void SetlstPoints( std::vector<double> lstPointX , std::vector<double> lstPointY , std::vector<double> lstPointZ );
void SetlstRadius( std::vector<double> lstRadius );
+ void SetOpacity(double opacity);
+ void SetTransform( vtkLinearTransform* transform );
+ vtkActor *GetActor();
void Run();
-
+
vtkRenderer *renderer;
-
+ vtkSmartPointer<vtkActor> actor;
+
+ double opacity;
+ vtkLinearTransform *transform;
std::vector<double> lstPointX;
std::vector<double> lstPointY;
std::vector<double> lstPointZ;
std::vector<double> lstRadius;
-
+
};
-
+
class bbcreaMaracasVisu_EXPORT TubeFilter
- :
+ :
public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(TubeFilter,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(lstPointX,std::vector<double>);
BBTK_DECLARE_INPUT(lstPointY,std::vector<double>);
BBTK_DECLARE_INPUT(lstPointZ,std::vector<double>);
BBTK_DECLARE_INPUT(lstRadio ,std::vector<double>);
+ BBTK_DECLARE_INPUT(Opacity,double);
BBTK_DECLARE_INPUT(Colour ,std::vector<double>);
BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
+
BBTK_DECLARE_OUTPUT(OutAxis,vtkProp3D *);
BBTK_PROCESS(Process);
void Process();
-
+
MaracasTubeFilter *tubefilter;
-//=====
+//=====
// 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(TubeFilter,bbtk::AtomicBlackBox);
- BBTK_NAME("TubeFilter");
- BBTK_AUTHOR("Info-Dev");
- BBTK_DESCRIPTION("vtk Tube Filter");
+ BBTK_NAME("TubeFilter");
+ BBTK_AUTHOR("Info-Dev");
+ BBTK_DESCRIPTION("vtk Tube Filter");
BBTK_CATEGORY("actor");
BBTK_INPUT(TubeFilter,Renderer,"Renderer",vtkRenderer*,"");
BBTK_INPUT(TubeFilter,lstPointX,"lstPointX",std::vector<double>,"");
BBTK_INPUT(TubeFilter,lstRadio,"lstRadio",std::vector<double>,"");
BBTK_INPUT(TubeFilter,Colour,"Colour",std::vector<double>,"");
BBTK_INPUT(TubeFilter,Transform,"vtkTransform", vtkLinearTransform *,"");
+ BBTK_INPUT(TubeFilter,Opacity,"Opacity",double,"");
BBTK_OUTPUT(TubeFilter,OutAxis,"Tube Actor",vtkProp3D *,"");
- BBTK_END_DESCRIBE_BLACK_BOX(TubeFilter);
-//=====
+BBTK_END_DESCRIBE_BLACK_BOX(TubeFilter);
+//=====
// 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