mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0027763: Visualization - remove V3d_View::Print() method
Dependency from FreeImagePlus.dll (but not FreeImage.dll) has been removed. Method V3d_View::Export() has been marked as deprecated. Added Standard_DISABLE_DEPRECATION_WARNINGS and Standard_ENABLE_DEPRECATION_WARNINGS to eliminate compiler warnings for using deprecated APIs within Draw Harness for testing. compatibility with gcc 4.5-
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
#include <OpenGl_Trihedron.hxx>
|
||||
#include <OpenGl_GraduatedTrihedron.hxx>
|
||||
#include <OpenGl_PrimitiveArray.hxx>
|
||||
#include <OpenGl_PrinterContext.hxx>
|
||||
#include <OpenGl_ShaderManager.hxx>
|
||||
#include <OpenGl_ShaderProgram.hxx>
|
||||
#include <OpenGl_Structure.hxx>
|
||||
@@ -1116,17 +1115,6 @@ void OpenGl_View::renderScene (Graphic3d_Camera::Projection theProjection,
|
||||
{
|
||||
const Handle(OpenGl_Context)& aContext = myWorkspace->GetGlContext();
|
||||
|
||||
#ifdef _WIN32
|
||||
// set printing scale/tiling transformation
|
||||
Handle(OpenGl_PrinterContext) aPrintContext = myWorkspace->PrinterContext();
|
||||
if (!aPrintContext.IsNull())
|
||||
{
|
||||
aContext->ProjectionState.Push();
|
||||
aContext->ProjectionState.SetCurrent (aPrintContext->ProjTransformation() * aContext->ProjectionState.Current());
|
||||
aContext->ApplyProjectionMatrix();
|
||||
}
|
||||
#endif
|
||||
|
||||
// Specify clipping planes in view transformation space
|
||||
aContext->ChangeClipping().RemoveAll (aContext);
|
||||
if (!myClipPlanes.IsEmpty())
|
||||
@@ -1239,15 +1227,6 @@ void OpenGl_View::renderScene (Graphic3d_Camera::Projection theProjection,
|
||||
{
|
||||
aContext->ShaderManager()->RevertClippingState();
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
// set printing scale/tiling transformation
|
||||
if (!aPrintContext.IsNull())
|
||||
{
|
||||
aContext->ProjectionState.Pop();
|
||||
aContext->ApplyProjectionMatrix();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
|
Reference in New Issue
Block a user