Visualization Functions

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

InitGUI()

StartGUI()

EnableStopGUIMenuItem()

DisableStopGUIMenuItem()

StopGUI()

PopupMsg(std)

UpdateGUI()

IsGUIBuild()

Lock()

Unlock()

IsEventLoopRunning()

ScreenGrab(std, int w, int h, ...)

SetViewAxis(bool vaxis)

SetShowBorders(bool brdr)

SetGeomDrawType(std, int type)

SetGeomWireColor(std, int r, int g, int b)

SetGeomDisplayType(std, int type)

GetGeomDrawType(std)

GetGeomDisplayType(std)

GetGeomWireColor(std)

GetGeomMaterialName(std)

AddMaterial(std, vec3d ambient, ...)

GetMaterialNames()

GetNumLights()

FindLight(int index)

SetBackground(double r, double g, double b)

SetAllViews(int view)

SetView(int viewport, int view)

FitAllViews()

ResetViews()

SetWindowLayout(int r, int c)

SetGUIElementDisable(int e, bool state)

SetGUIScreenDisable(int s, bool state)

SetGeomScreenDisable(int s, bool state)

HideScreen(int s)

ShowScreen(int s)

Details

openvsp.InitGUI()[source]
openvsp.StartGUI()[source]
openvsp.EnableStopGUIMenuItem()[source]
openvsp.DisableStopGUIMenuItem()[source]
openvsp.StopGUI()[source]
openvsp.PopupMsg(std: :string const & msg)[source]
openvsp.UpdateGUI()[source]
openvsp.IsGUIBuild() bool[source]
openvsp.Lock()[source]
openvsp.Unlock()[source]
openvsp.IsEventLoopRunning() bool[source]
openvsp.ScreenGrab(std: :string const & fname, int w, int h, bool transparentBG, bool autocrop=False)[source]
openvsp.SetViewAxis(bool vaxis)[source]
openvsp.SetShowBorders(bool brdr)[source]
openvsp.SetGeomDrawType(std: :string const & geom_id, int type)[source]
openvsp.SetGeomWireColor(std: :string const & geom_id, int r, int g, int b)[source]
openvsp.SetGeomDisplayType(std: :string const & geom_id, int type)[source]
openvsp.GetGeomDrawType(std: :string const & geom_id) int[source]
openvsp.GetGeomDisplayType(std: :string const & geom_id) int[source]
openvsp.GetGeomWireColor(std: :string const & geom_id) vec3d[source]
openvsp.GetGeomMaterialName(std: :string const & geom_id) std::string[source]
openvsp.AddMaterial(std: :string const & name, vec3d ambient, vec3d diffuse, vec3d specular, vec3d emissive, double const & alpha, double const & shininess)[source]
openvsp.GetMaterialNames() StringVector[source]
openvsp.GetNumLights() int[source]
openvsp.FindLight(int index) std::string[source]
openvsp.SetBackground(double r, double g, double b)[source]
openvsp.SetAllViews(int view)[source]
openvsp.SetView(int viewport, int view)[source]
openvsp.FitAllViews()[source]
openvsp.ResetViews()[source]
openvsp.SetWindowLayout(int r, int c)[source]
openvsp.SetGUIElementDisable(int e, bool state)[source]
openvsp.SetGUIScreenDisable(int s, bool state)[source]
openvsp.SetGeomScreenDisable(int s, bool state)[source]
openvsp.HideScreen(int s)[source]
openvsp.ShowScreen(int s)[source]