]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuDrawAxe3D.cxx
#3262 creaMaracasVisu Feature New Normal - Export LookupTable fron ColorLayerImageV...
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuDrawAxe3D.cxx
index dbc6f4da5f888d40437966dcf4b204506f473af0..fa7a0cfe5c7ebf9fed64923660ecd44af0e51a30 100644 (file)
@@ -44,6 +44,7 @@ void DrawAxe3D::Process()
        std::vector< double > vecty = bbGetInputlstPointY();
        std::vector< double > vectz = bbGetInputlstPointZ();    
 
+
 //     vtkImageData* img = bbGetInputImage();  
        unsigned int i;
        double spc[3];  
@@ -52,7 +53,8 @@ void DrawAxe3D::Process()
        spc[1]=1;
        spc[2]=1;
 
-       if(!vectx.empty()&&!vecty.empty()&&!vectz.empty()){
+       if(!vectx.empty()&&!vecty.empty()&&!vectz.empty())
+        {
                vtkPoints* allPoints = vtkPoints::New( );
                vtkCellArray* allTopology = vtkCellArray::New( );
                allTopology->InsertNextCell( vectx.size() );
@@ -72,7 +74,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() );
@@ -86,6 +91,9 @@ void DrawAxe3D::Process()
      }
 }
 
+
+
+
 void DrawAxe3D::bbUserSetDefaultValues()
 {
        firsttime        = true;
@@ -98,6 +106,9 @@ void DrawAxe3D::bbUserSetDefaultValues()
     colour.push_back(0.0);
     colour.push_back(0.0);
     bbSetInputColour(colour);
+    bbSetInputOpacity(1.0);
+    bbSetInputRenderer(NULL);
+    bbSetInputTransform(NULL);
 }