Presentation of the Rogue Wave Views Application of this Example
This tutorial has the following steps:
The example is just built above an
IlvGrapher.
You can find the definition of the classes in the files include/ActiveXGraphicAdapterApp.h, include/ActiveXGraphicAdapter.h, and include/makenode.h. The definition of the member functions are in src/ActiveXGraphicAdapterApp.cpp, src/ActiveXGraphicAdapter.cpp, and src/specific.cpp. The data are in the file data/ActiveXGraphicAdapter.ilv. An rc file, src/ActiveXApp.rc, was generated with ilv2data. We'll use it so that we don't worry about the path for the data.
The files src/ActiveXGraphicAdapterApp.cpp and src/ActiveXGraphicAdapter.cpp were generated by ivstudio and modified for the purpose of the application. For more precisions on this part of this application, see the other manuals of Rogue Wave Views. The file src/specific.cpp contains the main part of the subject of this tutorial. This file contains, among other functions, ActiveXGraphicAdapter::specificInitialization. Most of the work of this tutorial will be done in this function.
The application contains a menu and a scrolled grapher rectangle. Through the menu, you can:
Clean the grapher (File/New),
Load a file into the grapher (File/Open),
Store the content of the grapher into a file (File/Save or File/SaveAs),
Quit the application (File/Quit),
Attach an interactor to the grapher in order to build new nodes (Interactors/Node Creation interactor),
Attach an interactor to the grapher in order to build new links (Interactors/Link Creation Interactor),
Attach a selection interactor to the grapher (Interactors/Selection Interactor),
Detach all view interactor in order to use the object interactors, if any(Interactors/Object Interactor),
Print help.
Note: In the code subdirectory for this tutorial, please note that the samples for this overview are in “step1,” those for the first step are in “step2,” and so forth. |
Version 5.7
Copyright © 2013, Rogue Wave Software, Inc. All Rights Reserved.