Refactor Navigation Cube
-Use std commands in menu coming with icons -Only draggable if activated in menu -Remove textures except labels and used gl fill instead -Borders on surrounding buttons -Fix some openGL issues -Remove duplicate parameter managment. Kept and improved the one in View3DSettings -Remove lots of other redundant code -Replaced FontSize param with FontZoom and enabled auto zoom/size on labels. -Merged BorderColor and TextColor to single EmphaseColor parameter -Merged ButtonColor and FrontColor to BaseColor parameter -Added ChamferSize parameter to control edge and corner size -Use glDrawArrays() innstead of glBegin() and glEnd() -Draw butt ends on RGB coordinate system -Fixe issues where cube switch corner on resize window
This commit is contained in:
@@ -1194,19 +1194,11 @@ void View3DInventorViewer::setNaviCubeCorner(int c)
|
||||
naviCube->setCorner(static_cast<NaviCube::Corner>(c));
|
||||
}
|
||||
|
||||
NaviCube* View3DInventorViewer::getNavigationCube() const
|
||||
NaviCube* View3DInventorViewer::getNaviCube() const
|
||||
{
|
||||
return naviCube;
|
||||
}
|
||||
|
||||
void View3DInventorViewer::updateNavigationCube()
|
||||
{
|
||||
if (naviCube) {
|
||||
delete naviCube;
|
||||
naviCube = new NaviCube(this);
|
||||
}
|
||||
}
|
||||
|
||||
void View3DInventorViewer::setAxisCross(bool on)
|
||||
{
|
||||
SoNode* scene = getSceneGraph();
|
||||
|
||||
Reference in New Issue
Block a user