SilverScreen Solid Modeler

prompt_primitive

prompt_primitive

Previous topic Next topic  

prompt_primitive

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int prompt_primitive ( char *message, int p_type, char *buf )

 

char *message;    // prompt message string

int   p_type;     // primitive type mask

char *buf;        // address of buffer to receive primitive path

 

 




Synopsis

#include "silver.h"

 

The prompt_primitive function allows the user to select a primitive, based on the p_type filter. The prompt specified by message is displayed at the bottom of the screen. This function uses either pick mode or scan mode to select an entity, depending on the current pick/scan setting.

 

 

Parameters

message is a null-terminated string containing a prompt message. buf is the address of a character buffer that is to receive the path of the selected primitive. p_type is an integer specifying the types of primitives that are to be considered for selection. p_type may be composed of any of the following flags or'ed together (as defined in silver.h):

 

Name

Meaning

BITS_ARC

select arcs

BITS_BEZIER

select beziers

BITS_CIRCLE

select circles

BITS_LINE

select lines

BITS_POLYGON

select polygons

BITS_POLYLINE

select polylines

BITS_SPLINE

select splines

BITS_SPOINT

select spline points

BITS_BPOINT

select bezier points

BITS_POINT

select points

BITS_ROUND

select arcs and circles

 

 

Return Value

If a selection is sucessfully made, the prompt_primitive returns 1 and the path of the selected primitive is copied into buf ; otherwise 0 is returned.

 

 

See Also

pick_primitive , scan_primitive, prompt_pgroup