pref->setItemProperty( "min", 0.1, viewcube_dur );
pref->setItemProperty( "max", 10.0, viewcube_dur );
pref->setItemProperty( "step", 0.1, viewcube_dur );
+ // .... -> show view cube axes
+ pref->addPreference( tr( "PREF_VIEWCUBE_AXES" ), occViewCubeGroup,
+ LightApp_Preferences::Bool, "OCCViewer", "viewcube_axes" );
// ... "View cube" group <<end>>
// ... "View cube default (OCCT) attributes" group <<start>>
// .... -> text color
pref->addPreference( tr( "PREF_VIEWCUBE_TEXTCOLOR" ), occViewCubeAttrsGroup,
LightApp_Preferences::Color, "OCCViewer", "viewcube_text_color" );
- // .... -> show view cube axes
- pref->addPreference( tr( "PREF_VIEWCUBE_AXES" ), occViewCubeAttrsGroup,
- LightApp_Preferences::Bool, "OCCViewer", "viewcube_axes" );
// ... "View cube" group <<end>>
// ... -> empty frame (for layout) <<start>>
// Text color
aColor = resMgr->colorValue("OCCViewer", "viewcube_text_color", QColor(0, 0, 0));
myViewCube->SetTextColor(OCCViewer::color(aColor));
-
- // Axes
- myViewCube->SetDrawAxes(resMgr->booleanValue("OCCViewer", "viewcube_axes", true));
}
else {
myViewCube->ResetStyles();
}
+ // Axes
+ myViewCube->SetDrawAxes(resMgr->booleanValue("OCCViewer", "viewcube_axes", false));
+
// Animation duration (sec)
myViewCube->SetDuration(resMgr->doubleValue("OCCViewer", "viewcube_duration", 0.5));