DrGeoII object model: Representation of a point

classic Classic list List threaded Threaded
2 messages Options
HJH
Reply | Threaded
Open this post in threaded view
|

DrGeoII object model: Representation of a point

HJH
This post was updated on .
Hello Hilaire

I'd like to learn more how the DrGeo object model looks like.

I found out that for representing a point the following objects are used:

(A) aDrGeoWrappedPoint   --> (B) aDrGeoPointCostume <--> (C) aDrGPointMorph
                                                    |
                                                    v
                                        (D)  aDrGPointFreeItem    --> (E) aPoint


I understand that when writing a script I deal with the aDrGeoWrappedPoint (A) most of the time as it is  what the construction method produces as the result. (E) was used for constructing it.

In this casae we have (D) as aDrGPointFreeItem. Which other types of objects could be in this position?

Do the other geometric objects also have 4 or 5 objects representing them?

--Hannes
Reply | Threaded
Open this post in threaded view
|

Re: DrGeoII object model: Representation of a point

Hilaire Fernandes
Administrator
Le 19/10/2018 à 09:27, HJH [via Dr. Geo Forum] a écrit :

> I'd like to learn more how the DrGeo object model looks like.
>
> I found out that for representing a point the following objects are used:
>
> (A) aDrGeoWrappedPoint   --> (B) aDrGeoPointCostume <--> (C)
> aDrGPointMorph
>                                                     |
>                                                     v
>                                         (D)  aDrGPointFreeItem    -->
> (E) aPoint
>
>
> I understand that when writing a script I deal with the
> aDrGeoWrappedPoint most of the time with (A) after it has been
> constructed. (E) is used for constructing it.
>
> Do the other geometric objects also have 4 or 5 objects representing
> them?


That's about it.

From a Smalltalk sketch perspective, the Wrapped object encapsulate the
underneath complexity to facilitate access to useful when writing a sketch.

A Costume also knows about the style of the object: colours, line or
point shapes. Again the wrapped point directly gave access to these
features through dedicated messages.

Hilaire

Was this message helpful?
Tell us!