polydatamapper->SetInput(polydata);
#else
polydatamapper->SetInputData(polydata);
+ polydatamapper->Update();
#endif
vtkactor->SetMapper(polydatamapper);
vtkactor->GetProperty()->SetColor( r,g,b );
} // Law 2 color for each segment
-
if (bbGetInputColourLaw()==3) // color for each point
{
// Setup the colors array
} // Law 3 color for each point
-
vtkactor->GetProperty()->SetLineWidth( bbGetInputLineWidth() );
vtkactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
{
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;
vecVtkPolyDataMaper.clear();
vecVtkActors.clear();
+
for ( iAxis=0 ; iAxis<sizeLstAxis ; iAxis++)
{
numPoints = bbGetInputlstIndexs()[iAxis];
} // if
// } else {// if oldLstSize
+
for (iActor=0 ; iActor<sizeActors; iActor++)
{
vecVtkActors[iActor]->GetProperty()->SetOpacity( bbGetInputOpacity() );
}
// } // if oldLstSize
- printf("EED DrawAxisTree3D::Process end \n");
-
}
void DrawAxisTree3D::bbUserSetDefaultValues()
bbSetInputOpacity(1);
bbSetInputLineWidth(0.5);
bbSetInputColourLaw(1);
+ bbSetInputTransform(NULL);
}