Trihedron/Triedron axis names

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,

Pawel's picture

Hi Vinocell,

have a look at ViewerTest_ViewerCommands.cxx.

Pawel

Vins Ocell's picture

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

Attachments: