SilverScreen Solid Modeler

SS_VARIABLE        

SS_VARIABLE        

Previous topic Next topic  

SS_VARIABLE        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

SS_VARIABLE

 

Structure

A data type that stores information associated with a system variable (i.e. $area).

 

 

 struct  SS_VARIABLE

    {

    SS_XYZ    xyz;      // value, if type == V_XYZ or V_VALUE

    char     *text;     // value, if type == V_TEXT

    int       type;     // variable type

    } ;

 

 


Members

Member

Description

xyz

double or xyz

text

njull-terminated text

type

A value whose meaning is as follows:

 

Constant

Meaning

V_TEXT

The system variable associated with this structure is a text-based variable whose string is stored in 'text'.

V_VALUE

The system variable associated with this structure is a floating-point variable whose value is stored at the 'x' coordinate of the 'xyz' member.

V_XYZ

The system variable associated with this structure is a 3D point variable whose coordinates are stored in 'xyz'

 

 

Remarks

For text variables, the memory to hold the text string is allocated via malloc , and assigned to the text field of the var parameter. free should be called to deallocate the memory used by the text string when you are finished using it.

 

See Also

load_ss_variable

 

Header

silver.h