mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0023814: Drop plugin interface for Graphic3d_GraphicDriver instantiation
Drop Graphic3d_GraphicDriver::Begin() and ::End() methods. Initialization is performed within driver constructor. Drop dummy argument for Graphic3d_GraphicDriver constructor with library name. Display connection now should be set instead Drop Graphic3d::InitGraphicDriver() function and Graphic3d.hxx header. Application code should explicitly link against TKOpenGl toolkit and instantiate OpenGl_GraphicDriver class. Drop MetaGraphicDriverFactory implementation within TKOpenGl.
This commit is contained in:
parent
2a40d51c15
commit
fe9fc66996
@ -4,8 +4,6 @@
|
|||||||
//for OCC graphic
|
//for OCC graphic
|
||||||
#include <Aspect_DisplayConnection.hxx>
|
#include <Aspect_DisplayConnection.hxx>
|
||||||
#include <WNT_Window.hxx>
|
#include <WNT_Window.hxx>
|
||||||
#include <Graphic3d.hxx>
|
|
||||||
#include <Graphic3d_GraphicDRiver.hxx>
|
|
||||||
#include <OpenGl_GraphicDriver.hxx>
|
#include <OpenGl_GraphicDriver.hxx>
|
||||||
//for object display
|
//for object display
|
||||||
#include <V3d_Viewer.hxx>
|
#include <V3d_Viewer.hxx>
|
||||||
@ -703,8 +701,7 @@ public:
|
|||||||
myView() = myAISContext()->CurrentViewer()->CreateView();
|
myView() = myAISContext()->CurrentViewer()->CreateView();
|
||||||
if (myGraphicDriver().IsNull())
|
if (myGraphicDriver().IsNull())
|
||||||
{
|
{
|
||||||
Handle(Aspect_DisplayConnection) aDisplayConnection;
|
myGraphicDriver() = new OpenGl_GraphicDriver (Handle(Aspect_DisplayConnection)());
|
||||||
myGraphicDriver() = Graphic3d::InitGraphicDriver (aDisplayConnection);
|
|
||||||
}
|
}
|
||||||
Handle(WNT_Window) aWNTWindow = new WNT_Window (reinterpret_cast<HWND> (theWnd.ToPointer()));
|
Handle(WNT_Window) aWNTWindow = new WNT_Window (reinterpret_cast<HWND> (theWnd.ToPointer()));
|
||||||
myView()->SetWindow(aWNTWindow);
|
myView()->SetWindow(aWNTWindow);
|
||||||
@ -1097,5 +1094,5 @@ private:
|
|||||||
NCollection_Haft<Handle_V3d_Viewer> myViewer;
|
NCollection_Haft<Handle_V3d_Viewer> myViewer;
|
||||||
NCollection_Haft<Handle_V3d_View> myView;
|
NCollection_Haft<Handle_V3d_View> myView;
|
||||||
NCollection_Haft<Handle_AIS_InteractiveContext> myAISContext;
|
NCollection_Haft<Handle_AIS_InteractiveContext> myAISContext;
|
||||||
NCollection_Haft<Handle_Graphic3d_GraphicDriver> myGraphicDriver;
|
NCollection_Haft<Handle_OpenGl_GraphicDriver> myGraphicDriver;
|
||||||
};
|
};
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
#include <AIS_InteractiveContext.hxx>
|
#include <AIS_InteractiveContext.hxx>
|
||||||
#include <AIS_Shape.hxx>
|
#include <AIS_Shape.hxx>
|
||||||
#include <AIS_Point.hxx>
|
#include <AIS_Point.hxx>
|
||||||
#include <Graphic3d.hxx>
|
|
||||||
#include <V3d_Viewer.hxx>
|
#include <V3d_Viewer.hxx>
|
||||||
#include <V3d_View.hxx>
|
#include <V3d_View.hxx>
|
||||||
#include <OpenGl_GraphicDriver.hxx>
|
#include <OpenGl_GraphicDriver.hxx>
|
||||||
|
@ -64,7 +64,6 @@
|
|||||||
#include <Graphic3d_VerticalTextAlignment.hxx>
|
#include <Graphic3d_VerticalTextAlignment.hxx>
|
||||||
#include <Graphic3d_Array1OfVertex.hxx>
|
#include <Graphic3d_Array1OfVertex.hxx>
|
||||||
#include <Graphic3d_ArrayOfPolylines.hxx>
|
#include <Graphic3d_ArrayOfPolylines.hxx>
|
||||||
#include <Graphic3d.hxx>
|
|
||||||
#include <Graphic3d_ExportFormat.hxx>
|
#include <Graphic3d_ExportFormat.hxx>
|
||||||
#include <Graphic3d_ArrayOfPolylines.hxx>
|
#include <Graphic3d_ArrayOfPolylines.hxx>
|
||||||
#include <Graphic3d_AspectFillArea3d.hxx>
|
#include <Graphic3d_AspectFillArea3d.hxx>
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
#include <Aspect_DisplayConnection.hxx>
|
#include <Aspect_DisplayConnection.hxx>
|
||||||
#include <AIS_InteractiveObject.hxx>
|
#include <AIS_InteractiveObject.hxx>
|
||||||
#include <Graphic3d.hxx>
|
|
||||||
#include <Graphic3d_NameOfMaterial.hxx>
|
#include <Graphic3d_NameOfMaterial.hxx>
|
||||||
#include <OpenGl_GraphicDriver.hxx>
|
#include <OpenGl_GraphicDriver.hxx>
|
||||||
#include <TCollection_AsciiString.hxx>
|
#include <TCollection_AsciiString.hxx>
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
#include <AIS_ListOfInteractive.hxx>
|
#include <AIS_ListOfInteractive.hxx>
|
||||||
#include <AIS_ListIteratorOfListOfInteractive.hxx>
|
#include <AIS_ListIteratorOfListOfInteractive.hxx>
|
||||||
#include <Aspect_DisplayConnection.hxx>
|
#include <Aspect_DisplayConnection.hxx>
|
||||||
#include <Graphic3d.hxx>
|
|
||||||
#include <OpenGl_GraphicDriver.hxx>
|
#include <OpenGl_GraphicDriver.hxx>
|
||||||
#include <V3d_DirectionalLight.hxx>
|
#include <V3d_DirectionalLight.hxx>
|
||||||
#include <V3d_AmbientLight.hxx>
|
#include <V3d_AmbientLight.hxx>
|
||||||
|
@ -576,15 +576,4 @@ is
|
|||||||
|
|
||||||
end SortType;
|
end SortType;
|
||||||
|
|
||||||
----------------------------
|
|
||||||
-- Category: Package methods
|
|
||||||
----------------------------
|
|
||||||
|
|
||||||
InitGraphicDriver (theDisplayConnection: DisplayConnection_Handle from Aspect)
|
|
||||||
returns GraphicDriver from Graphic3d
|
|
||||||
raises DriverDefinitionError from Aspect;
|
|
||||||
---Purpose: Initialize graphic driver and returns Handle to it.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end Graphic3d;
|
end Graphic3d;
|
||||||
|
@ -1,79 +0,0 @@
|
|||||||
// Copyright (c) 2013-2014 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// This file is part of Open CASCADE Technology software library.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or modify it under
|
|
||||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
||||||
// by the Free Software Foundation, with special exception defined in the file
|
|
||||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
||||||
// distribution for complete text of the license and disclaimer of any warranty.
|
|
||||||
//
|
|
||||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
||||||
// commercial license or contractual agreement.
|
|
||||||
|
|
||||||
#include <Graphic3d.ixx>
|
|
||||||
|
|
||||||
#include <Aspect_DisplayConnection.hxx>
|
|
||||||
#include <Aspect_DriverDefinitionError.hxx>
|
|
||||||
#include <OSD_Environment.hxx>
|
|
||||||
|
|
||||||
//=======================================================================
|
|
||||||
//function : InitGraphicDriver
|
|
||||||
//purpose :
|
|
||||||
//=======================================================================
|
|
||||||
Handle(Graphic3d_GraphicDriver) Graphic3d::InitGraphicDriver (const Handle(Aspect_DisplayConnection)& theDisplayConnection)
|
|
||||||
{
|
|
||||||
#if !defined(_WIN32) && !defined(__WIN32__) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX))
|
|
||||||
if (theDisplayConnection.IsNull())
|
|
||||||
{
|
|
||||||
Aspect_DriverDefinitionError::Raise ("Null display connection.");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
TCollection_AsciiString aGraphicLibName;
|
|
||||||
|
|
||||||
// Setting the library name. Depends on the platform.
|
|
||||||
#if defined(_WIN32) || defined(__WIN32__)
|
|
||||||
aGraphicLibName = "TKOpenGl.dll";
|
|
||||||
#elif defined(__hpux) || defined(HPUX)
|
|
||||||
aGraphicLibName = "libTKOpenGl.sl";
|
|
||||||
#elif defined(__APPLE__)
|
|
||||||
aGraphicLibName = "libTKOpenGl.dylib";
|
|
||||||
#else
|
|
||||||
aGraphicLibName = "libTKOpenGl.so";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Loading the library.
|
|
||||||
OSD_SharedLibrary aSharedLibrary (aGraphicLibName.ToCString());
|
|
||||||
if (!aSharedLibrary.DlOpen (OSD_RTLD_LAZY))
|
|
||||||
{
|
|
||||||
Aspect_DriverDefinitionError::Raise (aSharedLibrary.DlError());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Retrieving factory function pointer.
|
|
||||||
typedef Handle(Graphic3d_GraphicDriver) (*GraphicDriverFactoryPointer) (Standard_CString);
|
|
||||||
GraphicDriverFactoryPointer aGraphicDriverConstructor = (GraphicDriverFactoryPointer )aSharedLibrary.DlSymb ("MetaGraphicDriverFactory");
|
|
||||||
if (aGraphicDriverConstructor == NULL)
|
|
||||||
{
|
|
||||||
Aspect_DriverDefinitionError::Raise (aSharedLibrary.DlError());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creating driver instance.
|
|
||||||
Handle(Graphic3d_GraphicDriver) aGraphicDriver = aGraphicDriverConstructor (aSharedLibrary.Name());
|
|
||||||
|
|
||||||
// Management of traces.
|
|
||||||
OSD_Environment aTraceEnv ("CSF_GraphicTrace");
|
|
||||||
TCollection_AsciiString aTrace = aTraceEnv.Value();
|
|
||||||
if (aTrace.IsIntegerValue())
|
|
||||||
{
|
|
||||||
aGraphicDriver->SetTrace (aTrace.IntegerValue());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Starting graphic driver.
|
|
||||||
if (!aGraphicDriver->Begin (theDisplayConnection))
|
|
||||||
{
|
|
||||||
Aspect_DriverDefinitionError::Raise ("Cannot connect to graphic library.");
|
|
||||||
}
|
|
||||||
|
|
||||||
return aGraphicDriver;
|
|
||||||
}
|
|
@ -28,8 +28,6 @@ deferred class GraphicDriver from Graphic3d inherits TShared
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
|
|
||||||
SharedLibrary from OSD,
|
|
||||||
|
|
||||||
Array1OfInteger from TColStd,
|
Array1OfInteger from TColStd,
|
||||||
Array1OfReal from TColStd,
|
Array1OfReal from TColStd,
|
||||||
Array2OfReal from TColStd,
|
Array2OfReal from TColStd,
|
||||||
@ -98,24 +96,10 @@ raises
|
|||||||
TransformError from Graphic3d
|
TransformError from Graphic3d
|
||||||
|
|
||||||
is
|
is
|
||||||
Initialize ( AShrName : CString from Standard )
|
Initialize (theDisp : DisplayConnection_Handle from Aspect)
|
||||||
returns GraphicDriver from Graphic3d;
|
returns GraphicDriver from Graphic3d;
|
||||||
---Level: Public
|
---Level: Public
|
||||||
---Purpose: Initialises the Driver
|
---Purpose: Initialises the Driver
|
||||||
|
|
||||||
-------------------------
|
|
||||||
-- Category: Init methods
|
|
||||||
-------------------------
|
|
||||||
|
|
||||||
Begin (me: mutable;
|
|
||||||
theDisplayConnection: DisplayConnection_Handle from Aspect)
|
|
||||||
returns Boolean from Standard
|
|
||||||
is deferred;
|
|
||||||
---Purpose: Starts graphic driver with given connection
|
|
||||||
|
|
||||||
End ( me : mutable )
|
|
||||||
is deferred;
|
|
||||||
---Purpose: call_togl_end
|
|
||||||
|
|
||||||
----------------------------
|
----------------------------
|
||||||
-- Category: Inquire methods
|
-- Category: Inquire methods
|
||||||
@ -767,14 +751,6 @@ is
|
|||||||
returns Integer from Standard
|
returns Integer from Standard
|
||||||
is static;
|
is static;
|
||||||
|
|
||||||
--ListOfAvalableFontNames( me;
|
|
||||||
-- lst: out NListOfHAsciiString from Graphic3d )
|
|
||||||
-- returns Boolean from Standard
|
|
||||||
-- is deferred;
|
|
||||||
-- Purpose: Initialize list of names of avalable system fonts
|
|
||||||
-- returns Standard_False if fails
|
|
||||||
-- ABD Integration support of system fonts (using FTGL and FreeType)
|
|
||||||
|
|
||||||
GetDisplayConnection (me)
|
GetDisplayConnection (me)
|
||||||
returns DisplayConnection_Handle from Aspect;
|
returns DisplayConnection_Handle from Aspect;
|
||||||
---C++: return const &
|
---C++: return const &
|
||||||
@ -791,7 +767,6 @@ is
|
|||||||
fields
|
fields
|
||||||
|
|
||||||
MyTraceLevel : Integer from Standard is protected;
|
MyTraceLevel : Integer from Standard is protected;
|
||||||
MySharedLibrary : SharedLibrary from OSD is protected;
|
|
||||||
myDisplayConnection: DisplayConnection_Handle from Aspect is protected;
|
myDisplayConnection: DisplayConnection_Handle from Aspect is protected;
|
||||||
myDeviceLostFlag : Boolean from Standard is protected;
|
myDeviceLostFlag : Boolean from Standard is protected;
|
||||||
|
|
||||||
|
@ -14,41 +14,14 @@
|
|||||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||||
// commercial license or contractual agreement.
|
// commercial license or contractual agreement.
|
||||||
|
|
||||||
// 11/97 ; CAL : retrait de la dependance avec math
|
|
||||||
|
|
||||||
|
|
||||||
//-Version
|
|
||||||
|
|
||||||
//-Design Declaration des variables specifiques aux Drivers
|
|
||||||
|
|
||||||
//-Warning Un driver encapsule les Pex, Phigs et OpenGl drivers
|
|
||||||
|
|
||||||
//-References
|
|
||||||
|
|
||||||
//-Language C++ 2.0
|
|
||||||
|
|
||||||
//-Declarations
|
|
||||||
|
|
||||||
// for the class
|
|
||||||
#include <Graphic3d_GraphicDriver.ixx>
|
#include <Graphic3d_GraphicDriver.ixx>
|
||||||
|
|
||||||
#include <Aspect_DriverDefinitionError.hxx>
|
Graphic3d_GraphicDriver::Graphic3d_GraphicDriver (const Handle(Aspect_DisplayConnection)& theDisp)
|
||||||
|
: MyTraceLevel (0),
|
||||||
//-Aliases
|
myDisplayConnection (theDisp),
|
||||||
|
myDeviceLostFlag (Standard_False)
|
||||||
//-Global data definitions
|
{
|
||||||
|
//
|
||||||
//-Constructors
|
|
||||||
|
|
||||||
Graphic3d_GraphicDriver::Graphic3d_GraphicDriver (const Standard_CString AShrName) {
|
|
||||||
|
|
||||||
SetTrace (0);
|
|
||||||
MySharedLibrary.SetName (AShrName);
|
|
||||||
myDeviceLostFlag = Standard_False;
|
|
||||||
|
|
||||||
//if (! MySharedLibrary.DlOpen (OSD_RTLD_LAZY))
|
|
||||||
//Aspect_DriverDefinitionError::Raise (MySharedLibrary.DlError ());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//-Internal methods, in order
|
//-Internal methods, in order
|
||||||
|
@ -42,34 +42,14 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_GraphicDriver,Graphic3d_GraphicDriver)
|
|||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
static const Handle(OpenGl_Context) TheNullGlCtx;
|
static const Handle(OpenGl_Context) TheNullGlCtx;
|
||||||
};
|
|
||||||
|
|
||||||
// Pour eviter de "mangler" MetaGraphicDriverFactory, le nom de la
|
|
||||||
// fonction qui cree un Graphic3d_GraphicDriver.
|
|
||||||
// En effet, ce nom est recherche par la methode DlSymb de la
|
|
||||||
// classe OSD_SharedLibrary dans la methode SetGraphicDriver de la
|
|
||||||
// classe Graphic3d_GraphicDevice
|
|
||||||
extern "C" {
|
|
||||||
#if defined(_MSC_VER) // disable MS VC++ warning on C-style function returning C++ object
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable:4190)
|
|
||||||
#endif
|
|
||||||
Standard_EXPORT Handle(Graphic3d_GraphicDriver) MetaGraphicDriverFactory (const Standard_CString theShrName)
|
|
||||||
{
|
|
||||||
Handle(OpenGl_GraphicDriver) aDriver = new OpenGl_GraphicDriver (theShrName);
|
|
||||||
return aDriver;
|
|
||||||
}
|
|
||||||
#if defined(_MSC_VER)
|
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
// function : OpenGl_GraphicDriver
|
// function : OpenGl_GraphicDriver
|
||||||
// purpose :
|
// purpose :
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
OpenGl_GraphicDriver::OpenGl_GraphicDriver (const Handle(Aspect_DisplayConnection)& theDisplayConnection)
|
OpenGl_GraphicDriver::OpenGl_GraphicDriver (const Handle(Aspect_DisplayConnection)& theDisp)
|
||||||
: Graphic3d_GraphicDriver ("TKOpenGl"),
|
: Graphic3d_GraphicDriver (theDisp),
|
||||||
myCaps (new OpenGl_Caps()),
|
myCaps (new OpenGl_Caps()),
|
||||||
myMapOfView (1, NCollection_BaseAllocator::CommonBaseAllocator()),
|
myMapOfView (1, NCollection_BaseAllocator::CommonBaseAllocator()),
|
||||||
myMapOfWS (1, NCollection_BaseAllocator::CommonBaseAllocator()),
|
myMapOfWS (1, NCollection_BaseAllocator::CommonBaseAllocator()),
|
||||||
@ -77,43 +57,13 @@ OpenGl_GraphicDriver::OpenGl_GraphicDriver (const Handle(Aspect_DisplayConnectio
|
|||||||
myUserDrawCallback (NULL),
|
myUserDrawCallback (NULL),
|
||||||
myTempText (new OpenGl_Text())
|
myTempText (new OpenGl_Text())
|
||||||
{
|
{
|
||||||
Begin (theDisplayConnection);
|
#if (!defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)))
|
||||||
}
|
|
||||||
|
|
||||||
// =======================================================================
|
|
||||||
// function : OpenGl_GraphicDriver
|
|
||||||
// purpose :
|
|
||||||
// =======================================================================
|
|
||||||
OpenGl_GraphicDriver::OpenGl_GraphicDriver (const Standard_CString theShrName)
|
|
||||||
: Graphic3d_GraphicDriver (theShrName),
|
|
||||||
myCaps (new OpenGl_Caps()),
|
|
||||||
myMapOfView (1, NCollection_BaseAllocator::CommonBaseAllocator()),
|
|
||||||
myMapOfWS (1, NCollection_BaseAllocator::CommonBaseAllocator()),
|
|
||||||
myMapOfStructure (1, NCollection_BaseAllocator::CommonBaseAllocator()),
|
|
||||||
myUserDrawCallback (NULL),
|
|
||||||
myTempText (new OpenGl_Text())
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
// =======================================================================
|
|
||||||
// function : Begin
|
|
||||||
// purpose :
|
|
||||||
// =======================================================================
|
|
||||||
Standard_Boolean OpenGl_GraphicDriver::Begin (const Handle(Aspect_DisplayConnection)& theDisplayConnection)
|
|
||||||
{
|
|
||||||
myDisplayConnection = theDisplayConnection;
|
|
||||||
if (myDisplayConnection.IsNull())
|
if (myDisplayConnection.IsNull())
|
||||||
{
|
{
|
||||||
#if (!defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)))
|
|
||||||
//Aspect_GraphicDeviceDefinitionError::Raise ("OpenGl_GraphicDriver: cannot connect to X server!");
|
//Aspect_GraphicDeviceDefinitionError::Raise ("OpenGl_GraphicDriver: cannot connect to X server!");
|
||||||
return Standard_False;
|
return;
|
||||||
#else
|
|
||||||
return Standard_True;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (!defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)))
|
|
||||||
Display* aDisplay = myDisplayConnection->GetDisplay();
|
Display* aDisplay = myDisplayConnection->GetDisplay();
|
||||||
Bool toSync = ::getenv ("CSF_GraphicSync") != NULL
|
Bool toSync = ::getenv ("CSF_GraphicSync") != NULL
|
||||||
|| ::getenv ("CALL_SYNCHRO_X") != NULL;
|
|| ::getenv ("CALL_SYNCHRO_X") != NULL;
|
||||||
@ -128,17 +78,6 @@ Standard_Boolean OpenGl_GraphicDriver::Begin (const Handle(Aspect_DisplayConnect
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return Standard_True;
|
|
||||||
}
|
|
||||||
|
|
||||||
// =======================================================================
|
|
||||||
// function : End
|
|
||||||
// purpose :
|
|
||||||
// =======================================================================
|
|
||||||
void OpenGl_GraphicDriver::End()
|
|
||||||
{
|
|
||||||
// deprecated method
|
|
||||||
///myDisplayConnection.Nullify();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
|
@ -94,12 +94,7 @@ class OpenGl_GraphicDriver : public Graphic3d_GraphicDriver
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
//! Constructor
|
//! Constructor
|
||||||
Standard_EXPORT OpenGl_GraphicDriver (const Handle(Aspect_DisplayConnection)& theDisplayConnection);
|
Standard_EXPORT OpenGl_GraphicDriver (const Handle(Aspect_DisplayConnection)& theDisp);
|
||||||
|
|
||||||
//! Constructor
|
|
||||||
Standard_EXPORT OpenGl_GraphicDriver (const Standard_CString theShrName = "TKOpenGl");
|
|
||||||
Standard_EXPORT Standard_Boolean Begin (const Handle(Aspect_DisplayConnection)& theDisplayConnection);
|
|
||||||
Standard_EXPORT void End ();
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer InquireLightLimit ();
|
Standard_EXPORT Standard_Integer InquireLightLimit ();
|
||||||
Standard_EXPORT Standard_Integer InquireViewLimit ();
|
Standard_EXPORT Standard_Integer InquireViewLimit ();
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
#include <AIS_InteractiveContext.hxx>
|
#include <AIS_InteractiveContext.hxx>
|
||||||
#include <Aspect_Window.hxx>
|
#include <Aspect_Window.hxx>
|
||||||
#include <Aspect_DisplayConnection.hxx>
|
#include <Aspect_DisplayConnection.hxx>
|
||||||
#include <Graphic3d.hxx>
|
|
||||||
#include <DBRep.hxx>
|
#include <DBRep.hxx>
|
||||||
#include <Bnd_Box.hxx>
|
#include <Bnd_Box.hxx>
|
||||||
#include <BRepBndLib.hxx>
|
#include <BRepBndLib.hxx>
|
||||||
|
@ -67,7 +67,6 @@
|
|||||||
#include <Aspect_TypeOfLine.hxx>
|
#include <Aspect_TypeOfLine.hxx>
|
||||||
#include <Image_Diff.hxx>
|
#include <Image_Diff.hxx>
|
||||||
#include <Aspect_DisplayConnection.hxx>
|
#include <Aspect_DisplayConnection.hxx>
|
||||||
#include <Graphic3d.hxx>
|
|
||||||
#include <gp_Pnt.hxx>
|
#include <gp_Pnt.hxx>
|
||||||
#include <gp_Dir.hxx>
|
#include <gp_Dir.hxx>
|
||||||
#include <gp_Pln.hxx>
|
#include <gp_Pln.hxx>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user