isoline

isoline — handle the drawing and the computation of isolines.

Functions

Object Hierarchy

    GBoxed
    ╰── VisuLine

Description

TODO

Functions

visu_line_newFromTriangles ()

VisuLine *
visu_line_newFromTriangles (float **data,
                            guint nTriangles,
                            double isoValue);

Create on the fly an isoline from a given set of triangles. If the lines are created, isoline will be allocated and should be freed with visu_line_free() after use.

Parameters

data

the lines to be computed ;

 

nTriangles

the surface to compute isoline from ;

 

isoValue

the value of the computed isoline.

 

Returns

the newly allocated VisuLine or NULL.

Since: 3.6


visu_line_ref ()

VisuLine *
visu_line_ref (VisuLine *line);

Increase the ref counter.

Parameters

line

a VisuLine object.

 

Returns

itself.

Since: 3.7


visu_line_unref ()

void
visu_line_unref (VisuLine *line);

Decrease the ref counter, free all memory if counter reachs zero.

Parameters

line

a VisuLine object.

 

Since: 3.7


visu_line_free ()

void
visu_line_free (VisuLine *line);

Free the line object.

Parameters

line

a set of lines.

 

Since: 3.4


visu_line_draw ()

void
visu_line_draw (VisuLine *line,
                float rgb[3]);

Call the OpenGL routine that will draw this line.

Parameters

line

a set of points forming a line.

 

rgb

a colour.

 

Since: 3.4


visu_line_project ()

float *
visu_line_project (VisuLine *line,
                   VisuPlane *plane,
                   guint *nSeg);

Calculate the projection of each line vertex on plane .

Parameters

line

a VisuLine object.

 

plane

a VisuPlane object.

 

nSeg

a location to store the size of projection.

 

Returns

a newly allocated array of line segments. The size of this array is 4 * nSeg , holding the two plane coordiantes of the two vertices of a line.

Since: 3.6


visu_line_getValue ()

double
visu_line_getValue (VisuLine *line);

Lines are usually created as iso-values line in a mesh.

Parameters

line

a VisuLine object.

 

Returns

the value associated to the line.

Since: 3.6

Types and Values