void DrawAxisTree3D::DrawOneAxis(int iGeneral,int numPoints, int iAxis)
{
-printf("EED DrawAxisTree3D::DrawOneAxis Start \n");
vtkPolyData *polydata = vtkPolyData::New( );
vtkPolyDataMapper *polydatamapper = vtkPolyDataMapper::New();
vtkActor *vtkactor = vtkActor::New();
g = bbGetInputColour()[1+iPoint*3]*255.0;
b = bbGetInputColour()[2+iPoint*3]*255.0;
//colors->SetTuple3(iPoint,r,g,b);
-printf("EED DrawAxisTree3D::DrawOneAxis iPoint=%d size=%d rgb=%f% f% f \n", iPoint , bbGetInputColour().size() , r,g,b);
colors->InsertNextTuple3(r,g,b);
}
polydata->GetCellData()->SetScalars(colors);
} // Law 3 color for each point
+
vtkactor->GetProperty()->SetLineWidth( bbGetInputLineWidth() );
vtkactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
{
bbGetInputRenderer()->AddActor( vtkactor );
}
-printf("EED DrawAxisTree3D::DrawOneAxis End \n");
}
for (iActor=0 ; iActor<sizeActors; iActor++)
{
vecVtkActors[iActor]->GetProperty()->SetOpacity( bbGetInputOpacity() );
+ vecVtkActors[iActor]->GetProperty()->SetLineWidth( bbGetInputLineWidth() );
}
}