]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkPolyDataToActor.h
#3507 BackFace in PolyDataToActor Box
[bbtk.git] / packages / vtk / src / bbvtkPolyDataToActor.h
index b62a3ff9960d41cf2cc18eac2188acedda95c2cb..f0c9beb6b5387c35a65439470ac04224294f2661 100644 (file)
@@ -62,6 +62,8 @@
 #include "vtkProp3D.h"
 #include "vtkActor.h"
 #include "vtkScalarsToColors.h"
+#include "vtkProperty.h"
+
 #include <vector>
 
 #include "bbtkAtomicBlackBox.h"
@@ -76,13 +78,15 @@ namespace bbvtk
     bool              actorAdded;
     vtkPolyDataMapper *polydatamapper;
     vtkActor          *vtkactor; 
-    
+    vtkProperty       *backfaceproperty;
+      
     BBTK_BLACK_BOX_INTERFACE(PolyDataToActor,bbtk::AtomicBlackBox);
     
     BBTK_DECLARE_INPUT(Active,bool);
     BBTK_DECLARE_INPUT(In,vtkPolyData *);
     BBTK_DECLARE_INPUT(Opacity,double);
     BBTK_DECLARE_INPUT(Colour,std::vector<double>);
+    BBTK_DECLARE_INPUT(BackFaceColour,std::vector<double>);
     BBTK_DECLARE_INPUT(Renderer,vtkRenderer *);
     BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
     BBTK_DECLARE_INPUT(Representation, int);
@@ -111,6 +115,7 @@ namespace bbvtk
   BBTK_INPUT(PolyDataToActor,Active,"Active true/false (default true)",bool,"");
   BBTK_INPUT(PolyDataToActor,Opacity,"Opacity",double,"");
   BBTK_INPUT(PolyDataToActor,Colour,"r g b",vectorcolour,"colour");
+  BBTK_INPUT(PolyDataToActor,BackFaceColour,"(default EMPTY) [r g b]  (0..1)",vectorcolour,"colour");
   BBTK_INPUT(PolyDataToActor,Renderer,"3D scene in which to insert the surface",vtkRenderer*,"");
   BBTK_INPUT(PolyDataToActor,Transform,"Linear Transform (4x4 homogeneous)",vtkLinearTransform*,"");
   BBTK_INPUT(PolyDataToActor,Representation,"0 points,1 wireframe, 2(default) surface",int,"");