]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuDrawAxe3D.h
no message
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuDrawAxe3D.h
index 01998b445d16187533b4b93745372d6ff68429d1..a96ad4fb24928cda456fda4bcc13e177c7ce2c8f 100644 (file)
@@ -6,7 +6,8 @@
 
 #include "vtkRenderer.h"
 #include "vtkPolyData.h"
-
+#include "vtkPolyDataMapper.h"
+#include "vtkLinearTransform.h"
 
 namespace bbcreaMaracasVisu
 {
@@ -16,19 +17,12 @@ class /*BBTK_EXPORT*/ DrawAxe3D
    public bbtk::AtomicBlackBox
 {
   BBTK_BLACK_BOX_INTERFACE(DrawAxe3D,bbtk::AtomicBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor();
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
   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(Colour,std::vector<double>);
+  BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
   BBTK_DECLARE_OUTPUT(Out,vtkProp3D *);
 
 //  BBTK_DECLARE_OUTPUT(Out,double);
@@ -36,9 +30,10 @@ virtual void bbUserDestructor();
   void Process();
 
   private:
-    bool                       firsttime;
-    vtkPolyData                *mallData;
-       vtkActor                *mvtkactor;
+    bool                               firsttime;
+    vtkPolyData                        *mallData;
+       vtkActor                        *mvtkactor;
+       vtkPolyDataMapper       *polydatamapper;
 };
 
 
@@ -52,6 +47,7 @@ BBTK_CATEGORY("__CATEGORY__");
   BBTK_INPUT(DrawAxe3D,lstPointY,"list of point Y",std::vector<double>,"");
   BBTK_INPUT(DrawAxe3D,lstPointZ,"list of point Z",std::vector<double>,"");
   BBTK_INPUT(DrawAxe3D,Colour,"Color of the line R(0..1) G(0..1) B(0..1) ",std::vector<double>,"colour");
+  BBTK_INPUT(DrawAxe3D,Transform,"vtkTransform", vtkLinearTransform *,"");
   BBTK_OUTPUT(DrawAxe3D,Out,"Actor",vtkProp3D*,"");
 BBTK_END_DESCRIBE_BLACK_BOX(DrawAxe3D);
 }