First Qt5 compatible NaviCube attempt
This commit is contained in:
@@ -532,6 +532,7 @@ void View3DInventorViewer::init()
|
||||
cursor = QBitmap::fromData(QSize(PAN_WIDTH, PAN_HEIGHT), pan_bitmap);
|
||||
mask = QBitmap::fromData(QSize(PAN_WIDTH, PAN_HEIGHT), pan_mask_bitmap);
|
||||
panCursor = QCursor(cursor, mask, PAN_HOT_X, PAN_HOT_Y);
|
||||
naviCube = new NaviCube(this);
|
||||
}
|
||||
|
||||
View3DInventorViewer::~View3DInventorViewer()
|
||||
@@ -1731,6 +1732,8 @@ void View3DInventorViewer::renderScene(void)
|
||||
draw2DString(stream.str().c_str(), SbVec2s(10,10), SbVec2f(0.1f,0.1f));
|
||||
}
|
||||
|
||||
naviCube->drawNaviCube();
|
||||
|
||||
#if 0 // this breaks highlighting of edges
|
||||
glEnable(GL_LIGHTING);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
@@ -1812,6 +1815,8 @@ void View3DInventorViewer::selectAll()
|
||||
|
||||
bool View3DInventorViewer::processSoEvent(const SoEvent* ev)
|
||||
{
|
||||
if (naviCube->processSoEvent(ev))
|
||||
return true;
|
||||
if (isRedirectedToSceneGraph()) {
|
||||
SbBool processed = inherited::processSoEvent(ev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user