SilverScreen Solid Modeler

flash_bos

flash_bos

Previous topic Next topic  

flash_bos

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

void flash_bos ( BOS_NODE *bos, int milliseconds )

 

BOS_NODE *bos;           // An entity pointer

int      milliseconds;   // Number of milliseconds to highlight

 

 




Synopsis

#include "silver.h"

#include "ssnodes.h"

 

The flash_bos function highlights an entity on the screen for milliseconds milliseconds. Typically this function is used to bring an entity to the attention of the user.

 

 

Parameters

bos is a pointer to the entity that is to be highlighted

milliseconds is the number of milliseconds to highlight the entity bos

 

 

Return Value

none

 

Remarks

If the user presses a key while the entity is being highlighted, its original state will be restored and the function will return as if milliseconds milliseconds have passed.

 


See Also

flash_prim

 

 

Example

The following code will allow the user to select an object, then highlight the object for one second:

C / C++ Code

 

 #include "silver.h

 #include "ssnodes.h"

 

 .

 .

 .

 

 char        obj_path[256];

 OBJECT_NODE *obj;

 

 if ( pick_entity("Pick an object to flash", BITS_OBJECT, obj_path) )

    {

    if ( obj = (OBJECT_NODE *)get_bos(obj_path) )

       flash_bos((BOS_NODE *)obj, 1000);

    }