Creating a New Graphic Object Class
Here is an example of how you can subtype graphic objects, creating new graphic object classes.
The Example: ShadowEllipse
In this example a new graphic object,
ShadowEllipse, will be created, which inherits from
IlvSimpleGraphic:
The
ShadowEllipse object is a normal
IlvEllipse object with a drop shadow underneath.
This example shows how you can design such an object from scratch by implementing a subtype of the
IlvSimpleGraphic class, which is the procedure most commonly used. We will show how to implement member functions that deal with geometric properties and drawing, how to manipulate the object’s palette, and how to make this object persistent.
Stepping through the Example
The example is developed in:
Version 6.0
Copyright © 2015, Rogue Wave Software, Inc. All Rights Reserved.