Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / Handle_Graphic3d_WNTGraphicDevice in 6.60

Handle_Graphic3d_WNTGraphicDevice in 6.60

Handle_Graphic3d_WNTGraphicDevice in 6.60
David Egan 2013/05/06 19:10
Hi can anyone help me in the best way to convert legacy code for the removal of
Handle_Graphic3d_WNTGraphicDevice.hxx.

Handle_Graphic3d_WNTGraphicDevice activeGraphicDevice     ; // updating from 6.5.3 to 6.6.0

Pawel 2013/05/07 11:04
Hi David,

if you're on Windows you can have a look at the MFC samples. For instance, in OCC_App.cpp you can find the current initialization etc.

Hope this helps,
Pawel
Forum supervisor 2013/05/07 14:22
Dear David,
See Release Notes of OCCT660 (chapter "Porting to version 6.6.0") where the changes explicitly covered:
"Run-time graphic driver library loading mechanism based on CSF_GraphicShr environment variable usage has been replaced by explicit linking against TKOpenGl library. The code sample below shows how the graphic driver should be created and initialized in the application code:
// initialize a new viewer with OpenGl graphic driver
Handle(Graphic3d_GraphicDriver) aGraphicDriver =
new OpenGl_GraphicDriver ("TKOpenGl");
aGraphicDriver->Begin (new Aspect_DisplayConnection());
TCollection_ExtendedString aNameOfViewer ("Visu3D");
Handle(V3d_Viewer) aViewer
= new V3d_Viewer (aGraphicDriver, aNameOfViewer.ToExtString());
aViewer->Init();
...
"
Graphic3d_WNTGraphicDevice previously used to implicitly initialize Graphic3d_GraphicDriver and now should be replaced by explicit OpenGl_GraphicDriver instantiation.
Regards
Timo 2013/05/08 16:25
Dear Forum supervisor,

according to the OCC 6.6.0 release notes the CSF_GraphicShr is not used anymore.
But it is still docmented in the section on System Environment Variables in "Open CASCADE Technology Overview":

"CSF_GraphicShr is required to define the path to the TKOpenGl library;"

Regards
Forum supervisor 2013/05/10 20:40
Dear Timo,
Yes, the reported problem still exists and we are working on it.
See for details the issue 9457 in Mantis BugTraker.
Regards
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map