Class Wizard Versions of the Shape Hierarchy

Class Wizard Versions of the Shape Hierarchy

For access to this article, please select a purchase option:

Buy chapter PDF
(plus tax if applicable)
Buy Knowledge Pack
10 chapters for £75.00
(plus taxes if applicable)

IET members benefit from discounts to all IET publications and free access to E&T Magazine. If you are an IET member, log in to your account and the discounts will automatically be applied.

Learn more about IET membership 

Recommend Title Publication to library

You must fill out fields marked with: *

Librarian details
Your details
Why are you recommending this title?
Select reason:
A Guide to MATLAB® Object-Oriented Programming — Recommend this title to your library

Thank you

Your recommendation has been sent to your librarian.

The primary activity in this paper involves entering data into the various Class Wizard dialog screens. As data are entered, the lower-list box in each dialog shows a line-by-line summary of the data. To assist you in data entry, a screen shot of each completed dialog is included. That way, all variables and functions are provided as you will see them displayed on your screen. The syntax of each line in the lower-list box is easy, and converting from the display to individual fields quickly becomes obvious. In addition, a shorthand table description of the data in each field is provided. The first step is of course entering data. The second step allows Class Wizard to generate class files. At this point, group-of-eight functions are fully functional. Objects can be created and displayed, and direct-link public variables can be accessed and mutated. Even so, this is not the final step. Some files will require postgeneration tailoring. The list of files includes most of the public and private functions that give each class their unique behavior. Enter the names and arguments for these functions, and Class Wizard will give you a head start by generating the initial version. The initial version contains full header comments but not much more. For example, a description for draw can be included in the Public Functions dialog, but until it is tailored, calling draw will not do anything. The implementation isn't complete until code for the application-specific member functions has been added. The example code for this paper includes a copy of the as-generated files in a directory separate from the full solution.

Chapter Contents:

  • 18.1 cLineStyle Class Wizard Definition Data
  • 18.1.1 cLineStyle Header Info
  • 18.1.2 cLineStyle Private Variables
  • 18.1.3 cLineStyle Public Variables
  • 18.1.4 cLineStyle Constructor Functions
  • 18.1.5 cLineStyle Data Dictionary
  • 18.1.6 cLineStyle Build Class Files
  • 18.1.7 cLineStyle Accessor and Mutator Helper Functions
  • 18.2 cShape Class Wizard Definition Data
  • 18.2.1 cShape Header Info
  • 18.2.2 cShape Private Variables
  • 18.2.3 cShape Concealed Variables
  • 18.2.4 cShape Public Variables
  • 18.2.5 cShape Constructor Functions
  • 18.2.6 cShape Public Functions
  • 18.2.7 cShape Data Dictionary
  • 18.2.8 cShape Build Class Files
  • 18.3 cStar Class Wizard Definition Data
  • 18.3.1 cStar Parent
  • 18.3.2 Other cStar Definition Data
  • 18.4 cDiamond Class Wizard Definition Data
  • 18.5 Test Drive
  • 18.6 Summary
  • 18.7 Independent Investigations

Inspec keywords: object-oriented programming

Other keywords: application-specific member function; group-of-eight function; shorthand data table description; object creation; Class Wizard dialog screen; postgeneration tailoring; direct-link public variable; data course entering step; line-by-line data summary; object display; class file generation step; shape hierarchy; Matlab

Subjects: Object-oriented programming

Preview this chapter:
Zoom in

Class Wizard Versions of the Shape Hierarchy, Page 1 of 2

| /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch18-1.gif /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch18-2.gif

Related content

This is a required field
Please enter a valid email address