OpenVSPAPI  3.19.0
Functions
Visualization Functions

The following group of functions allow for the OpenVSP GUI to be manipulated through the API.

Click here to return to the main page. More...

Functions

void ScreenGrab (const string &in file_name, int w, int h, bool transparentBG)
 
void SetViewAxis (bool vaxis)
 
void SetShowBorders (bool brdr)
 
void SetGeomDrawType (const string &in geom_id, int type)
 
void SetGeomDisplayType (const string &in geom_id, int type)
 
void SetBackground (double r, double g, double b)
 

Detailed Description

Function Documentation

◆ ScreenGrab()

void ScreenGrab ( const string &in  file_name,
int  w,
int  h,
bool  transparentBG 
)

Capture the specified screen and save to file. Note, VSP_USE_FLTK must be defined

Parameters
[in]file_nameOutput file name
[in]wWidth of screen grab
[in]hHeight of screen grab
[in]transparentBGTransparent background flag

◆ SetBackground()

void SetBackground ( double  r,
double  g,
double  b 
)

Set the background color

Parameters
[in]rRed 8-bit unsigned integer (range: 0-255)
[in]gGreen 8-bit unsigned integer (range: 0-255)
[in]bBlue 8-bit unsigned integer (range: 0-255)

◆ SetGeomDisplayType()

void SetGeomDisplayType ( const string &in  geom_id,
int  type 
)

Set the dispay type of the specified goemetry

See also
DISPLAY_TYPE
Parameters
[in]geom_idGeom ID
[in]typeDisplay type enum (i.e. DISPLAY_BEZIER)

◆ SetGeomDrawType()

void SetGeomDrawType ( const string &in  geom_id,
int  type 
)

Set the draw type of the specified goemetry

See also
DRAW_TYPE
Parameters
[in]geom_idGeom ID
[in]typeDraw type enum (i.e. GEOM_DRAW_SHADE)

◆ SetShowBorders()

void SetShowBorders ( bool  brdr)

Toggle viewing the border frame

Parameters
[in]brdrTrue to show the border frame, false to hide the border frame

◆ SetViewAxis()

void SetViewAxis ( bool  vaxis)

Toggle viewing the axis

Parameters
[in]vaxisTrue to show the axis, false to hide the axis