]> Creatis software - creaMaracasVisu.git/commitdiff
Axe opacity property added
authorEsteban CORREA <correa@creatis.insa-lyon.fr>
Mon, 13 May 2013 16:22:02 +0000 (18:22 +0200)
committerEsteban CORREA <correa@creatis.insa-lyon.fr>
Mon, 13 May 2013 16:22:02 +0000 (18:22 +0200)
bbtk/src/bbmaracasvisuDrawAxe3D.cxx
bbtk/src/bbmaracasvisuDrawAxe3D.h

index dbc6f4da5f888d40437966dcf4b204506f473af0..9d65ade80712dd580a5db61edbd0472ae07bd1a9 100644 (file)
@@ -72,7 +72,10 @@ void DrawAxe3D::Process()
        mvtkactor->GetProperty()->SetColor( bbGetInputColour()[0],  
                                bbGetInputColour()[1], 
                                bbGetInputColour()[2] );
-
+       //EC Axe Opacity property added
+       ///Default Values
+       double opacity=bbGetInputOpacity();
+       mvtkactor->GetProperty()->SetOpacity( opacity );
        if ( bbGetInputTransform()!=NULL )
        {
                mvtkactor->SetUserTransform( bbGetInputTransform() );
@@ -98,6 +101,7 @@ void DrawAxe3D::bbUserSetDefaultValues()
     colour.push_back(0.0);
     colour.push_back(0.0);
     bbSetInputColour(colour);
+    bbSetInputOpacity(1.0);
 }
 
 
index a18b95615ca30bb3f10caf9666a0ddd741fed0df..62972a252b26351b40ac7847a4b754947adc6cb5 100644 (file)
@@ -47,6 +47,7 @@ class /*BBTK_EXPORT*/ DrawAxe3D
   BBTK_DECLARE_INPUT(lstPointY,std::vector<double>);
   BBTK_DECLARE_INPUT(lstPointZ,std::vector<double>);
   BBTK_DECLARE_INPUT(Colour,std::vector<double>);
+  BBTK_DECLARE_INPUT(Opacity,double);
   BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
   BBTK_DECLARE_OUTPUT(Out,vtkProp3D *);
 
@@ -72,6 +73,7 @@ BBTK_CATEGORY("actor");
   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,Opacity,"Axe opacity property ",double,"intensity");
   BBTK_INPUT(DrawAxe3D,Transform,"vtkTransform", vtkLinearTransform *,"");
   BBTK_OUTPUT(DrawAxe3D,Out,"Actor",vtkProp3D*,"");
 BBTK_END_DESCRIBE_BLACK_BOX(DrawAxe3D);