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...
◆ 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_name | Output file name |
[in] | w | Width of screen grab |
[in] | h | Height of screen grab |
[in] | transparentBG | Transparent background flag |
◆ SetBackground()
void SetBackground |
( |
double |
r, |
|
|
double |
g, |
|
|
double |
b |
|
) |
| |
Set the background color
- Parameters
-
[in] | r | Red 8-bit unsigned integer (range: 0-255) |
[in] | g | Green 8-bit unsigned integer (range: 0-255) |
[in] | b | Blue 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_id | Geom ID |
[in] | type | Display 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_id | Geom ID |
[in] | type | Draw type enum (i.e. GEOM_DRAW_SHADE) |
◆ SetShowBorders()
void SetShowBorders |
( |
bool |
brdr | ) |
|
Toggle viewing the border frame
- Parameters
-
[in] | brdr | True to show the border frame, false to hide the border frame |
◆ SetViewAxis()
void SetViewAxis |
( |
bool |
vaxis | ) |
|
Toggle viewing the axis
- Parameters
-
[in] | vaxis | True to show the axis, false to hide the axis |