mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
Turning on the light to display the shapes of the sample.
This commit is contained in:
parent
4a0c5c25a4
commit
3693361422
@ -15,6 +15,8 @@
|
|||||||
#include <Aspect_DisplayConnection.hxx>
|
#include <Aspect_DisplayConnection.hxx>
|
||||||
#include <Graphic3d.hxx>
|
#include <Graphic3d.hxx>
|
||||||
#include <OpenGl_GraphicDriver.hxx>
|
#include <OpenGl_GraphicDriver.hxx>
|
||||||
|
#include <V3d_DirectionalLight.hxx>
|
||||||
|
#include <V3d_AmbientLight.hxx>
|
||||||
|
|
||||||
static Handle(Graphic3d_GraphicDriver) Viewer_aGraphicDriver;
|
static Handle(Graphic3d_GraphicDriver) Viewer_aGraphicDriver;
|
||||||
|
|
||||||
@ -72,6 +74,9 @@ Viewer::Viewer(QWidget* parent):QWidget(parent)
|
|||||||
setFocusPolicy( Qt::StrongFocus );
|
setFocusPolicy( Qt::StrongFocus );
|
||||||
setAttribute( Qt::WA_PaintOnScreen );
|
setAttribute( Qt::WA_PaintOnScreen );
|
||||||
setAttribute( Qt::WA_NoSystemBackground );
|
setAttribute( Qt::WA_NoSystemBackground );
|
||||||
|
|
||||||
|
aViewer->SetLightOn(new V3d_DirectionalLight(aViewer, V3d_XnegYnegZneg, Quantity_NOC_WHITE, Standard_True));
|
||||||
|
aViewer->SetLightOn(new V3d_AmbientLight(aViewer, Quantity_NOC_WHITE));
|
||||||
}
|
}
|
||||||
|
|
||||||
Viewer::~Viewer()
|
Viewer::~Viewer()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user