Foundation > Graphic Objects > Creating a new Graphic Object Class
 
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:
*Basic Steps to Subtype a Graphic Object
*Redefining IlvGraphic Member Functions
*Creating the Header File
*Implementing the Object Functions
*Updating the Palettes
*Saving and Loading the Object Description

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.