Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dtk_create_triangle(3) [debian man page]

DTK_CREATE_TRIANGLE(3)						Draw Toolkit manual					    DTK_CREATE_TRIANGLE(3)

NAME
dtk_create_triangle - Create and modify triangle shape SYNOPSIS
#include <drawtk.h> dtk_hshape dtk_create_triangle(dtk_hshape shp, float x1, float y1, float x2, float y2, float x3, float y3, int filled, const float *color); DESCRIPTION
dtk_create_triangle() creates a triangle between the vertices (x1,y1), (x2,y2) and (x3,y3). shp, filled and color have the same usage and meaning as for other shape creation function: * shp can be used to modify a previously created shape. If it is non-null, the handle will be used to modify the shape referenced by shp: no new shape is created and the returned value is ensured to be shp in case of success, NULL otherwise. If shp is NULL, the function will attempt to create a new shape. * filled is set to 0 if the described shape should be a continuous line or a non-null value if the shape is supposed to be filled polygon. * color should point to a 4 float array containing a normalized RGBA value (i.e. each component is between 0.0 and 1.0). RETURN VALUE
In case of success these functions return the handle to the newly created or modified shape. If the shp argument is non-null, the handle returned is the same value. In case of error, NULL is returned. SEE ALSO
dtk_destroy_shape(3) EPFL
2011 DTK_CREATE_TRIANGLE(3)

Check Out this Related Man Page

DTK_CREATE_ARROW(3)						Draw Toolkit manual					       DTK_CREATE_ARROW(3)

NAME
dtk_create_arrow - Create and modify arrow shape SYNOPSIS
#include <drawtk.h> dtk_hshape dtk_create_arrow(dtk_hshape shp, float cx, float cy, float width, float height, int filled, const float *color); DESCRIPTION
dtk_create_arrow() creates an arrow pointing to the left with the pointed pointed located at (cx,cy) with a total width of width, a hat of length width/3 , a total height of height and the width of the body being height/2. shp, filled and color have the same usage and meaning as for other shape creation function: * shp can be used to modify a previously created shape. If it is non-null, the handle will be used to modify the shape referenced by shp: no new shape is created and the returned value is ensured to be shp in case of success, NULL otherwise. If shp is NULL, the function will attempt to create a new shape. * filled is set to 0 if the described shape should be a continuous line or a non-null value if the shape is supposed to be filled polygon. * color should point to a 4 float array containing a normalized RGBA value (i.e. each component is between 0.0 and 1.0). RETURN VALUE
In case of success these functions return the handle to the newly created or modified shape. If the shp argument is non-null, the handle returned is the same value. In case of error, NULL is returned. SEE ALSO
dtk_destroy_shape(3) EPFL
2011 DTK_CREATE_ARROW(3)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

V shape

Hi, Im new to UNIX and figured I should sign up to this board to get some help. I was wondering if someone can help me out with a CShell script. Im trying to get it to display a V shape of the word school. Using a while loop i.e S S C C H H OO L (1 Reply)
Discussion started by: SilverFang
1 Replies

2. Shell Programming and Scripting

Help with Kornshell Script

Hi, I'm a novice at programming and need some help with a kornshell script I've been writting. I have an inputdirectory with all my .shp files. In my input directory the shapefiles are named XXXX_original.shp, XXXX_UPDATE.shp ect. In my .ksh script I have created a for loop which... (2 Replies)
Discussion started by: beery
2 Replies

3. Shell Programming and Scripting

.KSH Script Help

Hi, I have a Kornshell Script which I want to execute on a directory with a series of files; eg. XXXX.shp XXXX_MSLINK.shp YYYY.shp YYYY_MSLINK.shp ZZZZ.shp ZZZZ_MSLINK.shp ect. I want to add a condition to my for loop. I only want my for loop to run when I have files which... (1 Reply)
Discussion started by: beery
1 Replies

4. UNIX for Advanced & Expert Users

Transpose Messy Data

I have a messy, pipe-delimited ("|") input dataset. I would like to create a file of ID plus each component of field 4 which is delimited by ";" into a long, skinny shape for easier processing. A couple of complications are that field 4 may contain both commas and linefeed characters from the... (9 Replies)
Discussion started by: 91674io
9 Replies