+void TubeTreeFilter::SetGraphicProperties()
+{
+ int iTube,sizeLstAxis=bbGetInputlstIndexs().size();
+
+ vtkActor *actorTube;
+ vtkActor *actorSpherEnd;
+ vtkActor *actorSpherStart;
+
+
+ double r,g,b;
+ r = bbGetInputColour()[0];
+ g = bbGetInputColour()[1];
+ b = bbGetInputColour()[2];
+ for (iTube=0 ; iTube<sizeLstAxis; iTube++)
+ {
+ // Get Actor
+ actorTube=vecVtkActors[0+iTube*3];
+ actorSpherEnd=vecVtkActors[1+iTube*3];
+ actorSpherStart=vecVtkActors[2+iTube*3];
+
+ // Set Opacity
+ actorTube->GetProperty()->SetOpacity( bbGetInputOpacity() );
+ actorSpherEnd->GetProperty()->SetOpacity( bbGetInputOpacity() );
+ actorSpherStart->GetProperty()->SetOpacity( bbGetInputOpacity() );
+
+ //Set Colour
+ if ( bbGetInputTransform()!=NULL )
+ {
+ actorTube->SetUserTransform( bbGetInputTransform() );
+ actorSpherEnd->SetUserTransform( bbGetInputTransform() );
+ actorSpherStart->SetUserTransform( bbGetInputTransform() );
+ }
+
+ if (bbGetInputColourLaw()==1) // One solide colour
+ {
+ //
+ }
+
+ if (bbGetInputColourLaw()==2) // color for differents tubes
+ {
+ if ( (iTube*3+1) < (int)(bbGetInputColour().size()) )
+ {
+ r = bbGetInputColour()[0+iTube*3];
+ g = bbGetInputColour()[1+iTube*3];
+ b = bbGetInputColour()[2+iTube*3];
+ } else {
+ r = (rand() % 100) / 100.0;
+ g = (rand() % 100) / 100.0;
+ b = (rand() % 100) / 100.0;
+ }
+ }
+
+ actorTube->GetProperty()->SetColor( r,g,b );
+ actorSpherEnd->GetProperty()->SetColor( r,g,b );
+ actorSpherStart->GetProperty()->SetColor( r,g,b );
+ } // for
+}
+