Presentation of constructions

Constructions ››
Parent Previous Next

Constructions are one of the most powerful features of MathGraph32.

Constructions are some sort of figures which can be incorporated in other figures.

A construction utilizes objects belonging to the figure the construction is to be implemented  in called sources objects.

It uses internal objects (called intermediary objects) to create new objects (called final objects). The final objects will be available to the user who will be able to use them for creating other objects.

Sources and final objects cab be numerical or graphical objects.

Frames are taken as a numerical object.


Numerical source object are allowed to be :

Graphical sources objects are allowed to be :


To be valid, a construction must obey the following rule :

Final objects are only allowed to be constructed with the sources objects selected and every source object must be used at least one time for the creation of a final object.

Just a single exception to this rule : if final objects are constructed using sources objects and a variable which is not a source object, the construction will be accepted and the variable will be part of intermediary objects.


Constructions are saved in files with extension mgf.

Icons to create and manage constructions are available when clicking on icon on the right of the top toolbar.

Icon purpose is to manage constructions. Clicking on this icon makes a choice dialog box popping up.

Icon purpose  is create a construction. Clicking on this icon makes a choice dialog box popping up.


You can load a construction in the figure from a file with icon and choosing Incorporate construction from file.

You implement a construction of the figure via icon et choosing Implement  construction of the figure.


You save a construction in a file with icon and choosing Save a construction of the figure.


When a construction has been implemented in a figure, it is possible to get all intermediary objects becoming normal objects using icon and choosing Merge constructions of the figure.


How to create a construction.


For a construction to be defined, sources objects must be chosen first.

It is important to understand that, when a construction is implemented numerical objects (if any) will have to be chosen first.

You choose sources objects via icon and Numerical sources objects choice or Graphical sources objects choice. Don't forget to click on the red STOP button when all the objects have been clicked on.


When sources objects have been chosen, you must choose final objects. It is only possible to select final objects constructed only through sources objects.


The choice of final objects is made via icon  and Numerical final objects choice or Numerical final objects choice.


Final and sources objects choice can be canceled via icon  and Reset current construction.


To finalize the construction once sources and final objects chosen, use icon  then choose Finish current construction.


In the commentary of the construction you can enter explanations and indications that will be available to the user when implementing the macro (refer to examples).


Let us say that your construction has three sources objects : a real calculation (representing an angle value), a point and a circle.

You can add the following lines to the commentary of the macro :


#1:the angle value

#2:a point

#3:a circle


How to implement a construction.


You can implement a construction only if this construction has been created in the figure or incorporated in the figure from a file.

To implement a construction, use icon    then choose Implement a construction of the figure.


If the construction contains both graphical and non graphical sources objects, non graphical objects are to be chosen first.


To be noticed : If a construction uses a single non graphical object which is a frame and if only a frame is present in the figure, this frame will be automatically chosen as first source object and the non graphical sources objects dialog box will not appear.