> I'm trying to code a project in oop for the first time and 
> I'm having some trouble. Maybe you can help!?

Michael,

It seems to me like your classification of the objects is a bit off.
Normally, when I am defining my objects, I take my project description
and rip out all of the nouns. So, in your case that would give:

Sequence
Image
Number
Order
Frame
Start frame
End frame

Not all of these would be objects, but some of those are properties of
objects. Doing a little classification, I come up with:

oSequence (n)
 --> oFrame (n)
       --> pImage (1)
       --> pNumber (1)
       --> pOrder (1)
       --> pStart Frame (1)
       --> pEnd Frame

(Parenthesis indicate how many values of each will exist. In other
words, a single variable or a list of variables;)

So, a sequence object can have any amount of frame objects. Each frame
will have 1 of each of its properties (pImage, pNumber, etc).

Now that you have a better picture of what the objects are, you can
worry about their functionality. Here you can strip verbs from your
description:

Generate sequence
Export image
Set image
Set start frame
Set end frame
Set number
Set order
Collect data
Perform calculations
Load source images

Now you can classify these functions depending on which of your two
objects they best belong in:

oSequence
 --> Generate sequence
 --> Collect data
 --> Perform calculations
 --> Load source images

oFrame
 --> Export image
 --> Set image
 --> Set start frame
 --> Set end frame
 --> Set number
 --> Set order

This should give you a good starting point for creating your objects.
Granted it is a rather watered down approach, it should help you get
your feet wet before diving in to some of the more advanced features of
OOP like inheritance. (Thirsty yet?)

<br />

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to