Forum archiveIssue archiveVisualization and 3D Viewer

Archived discussion

AIS_ViewCube hover color

Visualization and 3D ViewerSun, 02/13/2022 - 21:151 reply

Browse this forum
QuestionAuthor

Hello all!

please, could someone tell me how to change the color of the faces when I hover over it with the mouse.

Luxury problem, but drives me nuts

Thank you!

m_viewCube = new AIS_ViewCube();
m_viewCube->SetSize (60.0);
m_viewCube->SetColor (Quantity_NOC_LIGHTGOLDENROD);
m_viewCube->SetInnerColor(Quantity_NOC_RED);
m_viewCube->SetBoxColor (Quantity_NOC_LIGHTGRAY);
m_viewCube->SetDrawAxes(true);
//m_viewCube->Set ????
m_myContext->Display(m_viewCube, Standard_True);

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1
m_viewCube->DynamicHilightAttributes()->ShadingAspect()->SetColor (Quantity_NOC_RED);
m_viewCube->DynamicHilightAttributes()->SetColor (Quantity_NOC_RED);