]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx
#3265 creaMaracasVisu Bug New Normal - DrawAxisTree3D box
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuDrawAxisTree3D.cxx
index 33bb1d776f08bac7cbcf4ca07a452cc746da09f7..f56b4164065fab81ce73a0ff4544765802d9bd05 100644 (file)
@@ -54,6 +54,7 @@ void DrawAxisTree3D::DrawOneAxis(int iGeneral,int numPoints, int iAxis)
        polydatamapper->SetInput(polydata);
 #else
        polydatamapper->SetInputData(polydata);
+       polydatamapper->Update();
 #endif
        vtkactor->SetMapper(polydatamapper);
 
@@ -147,7 +148,6 @@ polyline->GetPointIds()->InsertNextId(i-iGeneral);
                vtkactor->GetProperty()->SetColor( r,g,b );
        }  // Law 2  color for each segment
 
-
        if (bbGetInputColourLaw()==3)  // color for each point 
        {
                // Setup the colors array
@@ -171,7 +171,6 @@ polyline->GetPointIds()->InsertNextId(i-iGeneral);
  
        }  // Law 3 color for each point
 
-
        vtkactor->GetProperty()->SetLineWidth( bbGetInputLineWidth() );
        vtkactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
 
@@ -185,18 +184,19 @@ polyline->GetPointIds()->InsertNextId(i-iGeneral);
      {
            bbGetInputRenderer()->AddActor( vtkactor );
      }
+
 }
 
 
 void DrawAxisTree3D::Process()
 {
-       printf("EED DrawAxisTree3D::Process start \n");
 
        int iGeneral=0;
        int iAxis,sizeLstAxis=bbGetInputlstIndexs().size();
     int iActor,sizeActors = vecVtkActors.size();
        int numPoints;
 
+
 //    if (oldLstSize!=sizeLstAxis)
 //      {
 //        oldLstSize=sizeLstAxis;
@@ -214,6 +214,7 @@ void DrawAxisTree3D::Process()
          vecVtkPolyDataMaper.clear();
          vecVtkActors.clear();
 
+
         for ( iAxis=0 ; iAxis<sizeLstAxis ; iAxis++)
         {
             numPoints = bbGetInputlstIndexs()[iAxis];
@@ -235,6 +236,7 @@ void DrawAxisTree3D::Process()
         } // if 
 
  //   } else {// if oldLstSize
+
         for (iActor=0 ; iActor<sizeActors; iActor++)
         {
             vecVtkActors[iActor]->GetProperty()->SetOpacity( bbGetInputOpacity() );
@@ -242,8 +244,6 @@ void DrawAxisTree3D::Process()
         }
 //    } // if oldLstSize
 
-       printf("EED DrawAxisTree3D::Process end \n");
-
 }
 
 void DrawAxisTree3D::bbUserSetDefaultValues()
@@ -281,6 +281,7 @@ void DrawAxisTree3D::bbUserSetDefaultValues()
      bbSetInputOpacity(1);
      bbSetInputLineWidth(0.5);
      bbSetInputColourLaw(1);
+     bbSetInputTransform(NULL);
 
 }