| V_Sim API - Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
VisuLine; void visu_line_draw (VisuLine *line,float rgb[3]); void visu_line_free (VisuLine *line); double visu_line_getValue (VisuLine *line); VisuLine * visu_line_newFromTriangles (float **data,guint nTriangles,double isoValue); float * visu_line_project (VisuLine *line,VisuPlane *plane,guint *nSeg); VisuLine * visu_line_ref (VisuLine *line); void visu_line_unref (VisuLine *line);
typedef struct _VisuLine VisuLine;
Structure representing a curved line in 3D, opaque structure.
void visu_line_draw (VisuLine *line,float rgb[3]);
Call the OpenGL routine that will draw this line.
|
a set of points forming a line. |
|
a colour. |
Since 3.4
void visu_line_free (VisuLine *line);
Free the line object.
|
a set of lines. |
Since 3.4
double visu_line_getValue (VisuLine *line);
Lines are usually created as iso-values line in a mesh.
|
a VisuLine object. |
Returns : |
the value associated to the line. |
Since 3.6
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.
|
the lines to be computed ; |
|
the surface to compute isoline from ; |
|
the value of the computed isoline. |
Returns : |
the newly allocated VisuLine or NULL. |
Since 3.6
float * visu_line_project (VisuLine *line,VisuPlane *plane,guint *nSeg);
Calculate the projection of each line vertex on plane.
|
a VisuLine object. |
|
a VisuPlane object. |
|
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
VisuLine * visu_line_ref (VisuLine *line);
Increase the ref counter.
|
a VisuLine object. |
Returns : |
itself. |
Since 3.7