A system needs to override some class methods in order to provide proper services for rendering. Specifically, a system that renders needs to create a class that provides vectorization from the library.
An example project named OdaDgnApp is provided. The application is similar to the example Console Application, with additional services provided for rendering the graphics elements.
The best starting point is to observe the OdaDgnAppVectorizer.h file in the example project OdaDgnApp. This is where a class was created from combining a MFC CView and an OdGiContextForDgDatabase — the viewport is generated for Windows with exemplary event handlers.
Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.
|