How to integrate MAthGL and FORTRAN

Asked By 10 points N/A Posted on -
qa-featured

How can be used ‘MAthGL’ with the ‘FORTRAN’. I am having a class and drawing method Foo and draw ‘mglGraph*. How can we use the FLTK / GLUT window? I need to know how to avoid a point or region of plot in the drawing.

SHARE
Answered By 0 points N/A #100736

How to integrate MAthGL and FORTRAN

qa-featured

Please find the answers to your questions as provided below:

How can be used ‘MAthGL’ with the ‘FORTRAN?

Mathgl has c interfaces and can be used with fortran with same names as c functions. We need to add the c++ library using the option -lstdc++ for compilation. Required to pass the function arguments as points if using visual fortran. Otherwise general notation of gfortran is sufficient.

I am having a class and drawing method Foo and draw ‘mglGraph*. How can we use the FLTK / GLUT window ?

Most of the member function has hidden parameters. So, it is required to write a wrapper class and use the function.

Alternatively, you can inherit if from the class mgldraw and use the function. gr->window(argc , argv , foo , "title");

I need to know how to avoid a point or region of plot in the drawing. ?

Use cutmin , cutmax or cutoff() function to define the points that should be omitted.

Alternatively you can use ambient for the point as value "0".

 

 

 

Related Questions