Thu, 04/23/2015 - 20:29
Forums:
Hi,
Sometimes it's very useful in a 3D view to be able to change the names of the axis X, Y and Z in something else. I've found the function MyView->GraduatedTrihedronDisplay(...) which refers to the "Names of axes" but I've found it really difficult to use. Do you know about a way to do this ?
Best regards,
Fri, 04/24/2015 - 11:37
Hi Vinocell,
have a look at ViewerTest_ViewerCommands.cxx.
Pawel
Wed, 05/20/2015 - 15:03
Thanks a lot for your advice ! It solved my problem, here is the line people can modify :
myView->GraduatedTrihedronDisplay(alabelx, alabely, alabelz, Standard_True, Standard_True, Standard_True, Standard_True, Standard_True, Standard_True, grid, Standard_True,10,10,10,10,10,10,80,80,80, Standard_True, Standard_True, Standard_True, 10, 10, 10, Quantity_NOC_SNOW, Quantity_NOC_RED, Quantity_NOC_GREEN, Quantity_NOC_SKYBLUE, Quantity_NOC_RED, Quantity_NOC_GREEN, Quantity_NOC_SKYBLUE,"Arial",Font_FA_Regular,20,"Arial", Font_FA_Regular,14);
Attached is the 3D view to see what it does